@truebit/cli 1.120.0-beta.195 → 1.120.0-beta.196

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.
Files changed (2) hide show
  1. package/build/index.mjs +3 -3
  2. package/package.json +2 -2
package/build/index.mjs CHANGED
@@ -100,7 +100,7 @@ ${e.length}`,"utf-8");return(0,gMe.keccak)(Buffer.concat([t,e]))};ca.hashPersona
100
100
  `)),k=+_.split(" ")[1];Fp("got proxy server response: %o",_),t({statusCode:k,buffered:w})}e.on("error",d),e.on("close",o),e.on("end",l),i()})}Up.default=gOe});var RY=g(gd=>{"use strict";var vOe=gd&&gd.__awaiter||function(e,t,n,a){function r(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function o(p){try{d(a.next(p))}catch(b){s(b)}}function l(p){try{d(a.throw(p))}catch(b){s(b)}}function d(p){p.done?i(p.value):r(p.value).then(o,l)}d((a=a.apply(e,t||[])).next())})},vc=gd&&gd.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(gd,"__esModule",{value:!0});var OY=vc(he("net")),$Y=vc(he("tls")),_Oe=vc(he("url")),xOe=vc(he("assert")),wOe=vc(jb()),AOe=PY(),SOe=vc(kY()),jp=wOe.default("https-proxy-agent:agent"),Sw=class extends AOe.Agent{constructor(t){let n;if(typeof t=="string"?n=_Oe.default.parse(t):n=t,!n)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");jp("creating new HttpsProxyAgent instance: %o",n),super(n);let a=Object.assign({},n);this.secureProxy=n.secureProxy||IOe(a.protocol),a.host=a.hostname||a.host,typeof a.port=="string"&&(a.port=parseInt(a.port,10)),!a.port&&a.host&&(a.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in a)&&(a.ALPNProtocols=["http 1.1"]),a.host&&a.path&&(delete a.path,delete a.pathname),this.proxy=a}callback(t,n){return vOe(this,void 0,void 0,function*(){let{proxy:a,secureProxy:r}=this,i;r?(jp("Creating `tls.Socket`: %o",a),i=$Y.default.connect(a)):(jp("Creating `net.Socket`: %o",a),i=OY.default.connect(a));let s=Object.assign({},a.headers),l=`CONNECT ${`${n.host}:${n.port}`} HTTP/1.1\r
101
101
  `;a.auth&&(s["Proxy-Authorization"]=`Basic ${Buffer.from(a.auth).toString("base64")}`);let{host:d,port:p,secureEndpoint:b}=n;EOe(p,b)||(d+=`:${p}`),s.Host=d,s.Connection="close";for(let D of Object.keys(s))l+=`${D}: ${s[D]}\r
102
102
  `;let w=SOe.default(i);i.write(`${l}\r
103
- `);let{statusCode:A,buffered:_}=yield w;if(A===200){if(t.once("socket",TOe),n.secureEndpoint){let D=n.servername||n.host;if(!D)throw new Error('Could not determine "servername"');return jp("Upgrading socket connection to TLS"),$Y.default.connect(Object.assign(Object.assign({},MOe(n,"host","hostname","path","port")),{socket:i,servername:D}))}return i}i.destroy();let k=new OY.default.Socket;return k.readable=!0,t.once("socket",D=>{jp("replaying proxy buffer for failed request"),xOe.default(D.listenerCount("data")>0),D.push(_),D.push(null)}),k})}};gd.default=Sw;function TOe(e){e.resume()}function EOe(e,t){return!!(!t&&e===80||t&&e===443)}function IOe(e){return typeof e=="string"?/^https:?$/i.test(e):!1}function MOe(e,...t){let n={},a;for(a in e)t.includes(a)||(n[a]=e[a]);return n}});var DY=g((Iw,NY)=>{"use strict";var COe=Iw&&Iw.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Tw=COe(RY());function Ew(e){return new Tw.default(e)}(function(e){e.HttpsProxyAgent=Tw.default,e.prototype=Tw.default.prototype})(Ew||(Ew={}));NY.exports=Ew});var LY=g((GXe,POe)=>{POe.exports={name:"mixpanel",description:"A simple server-side API for mixpanel",keywords:["mixpanel","analytics","api","stats"],version:"0.18.1",homepage:"https://github.com/mixpanel/mixpanel-node",author:"Carl Sverre",license:"MIT",main:"lib/mixpanel-node",directories:{lib:"lib"},repository:{type:"git",url:"git+ssh://git@github.com/mixpanel/mixpanel-node.git"},engines:{node:">=10.0"},scripts:{test:"vitest"},types:"./lib/mixpanel-node.d.ts",devDependencies:{"@vitest/coverage-v8":"^1.6.0",proxyquire:"^1.7.11",vitest:"^1.6.0"},dependencies:{"https-proxy-agent":"5.0.0"}}});var Mw=g(zb=>{zb.async_all=function(e,t,n){var a=e.length,r=null,i=[],s=function(d,p){d&&(r=r||[],r.push(d)),i.push(p),--a===0&&n(r,i)};if(a===0)n(r,i);else for(var o=0,l=e.length;o<l;o++)t(e[o],s)};zb.ensure_timestamp=function(e){if(!(e instanceof Date||typeof e=="number"))throw new Error("`time` property must be a Date or Unix timestamp and is only required for `import` endpoint");return e instanceof Date?e.getTime():e};zb.assert_logger=function(e){if(typeof e!="object")throw new TypeError('"logger" must be a valid Logger object');["trace","debug","info","warn","error"].forEach(t=>{if(typeof e[t]!="function")throw new TypeError(`Logger object missing "${t}" method`)})}});var Pw=g(Cw=>{var Vb=he("util"),{ensure_timestamp:kOe}=Mw();function _c(e,t){return t&&(t.$ignore_alias&&(e.$ignore_alias=t.$ignore_alias),t.$ignore_time&&(e.$ignore_time=t.$ignore_time),t.hasOwnProperty("$ip")&&(e.$ip=t.$ip),t.hasOwnProperty("$time")&&(e.$time=kOe(t.$time)),t.hasOwnProperty("$latitude")&&t.hasOwnProperty("$longitude")&&(e.$latitude=t.$latitude,e.$longitude=t.$longitude)),e}Cw.merge_modifiers=_c;Cw.ProfileHelpers=(e=Object)=>class extends e{get token(){return this.mixpanel.token}get config(){return this.mixpanel.config}_set(t,n,a,r,{identifiers:i,set_once:s=!1}){let o={};typeof t=="object"?(typeof n=="object"?(r=a,a=n):r=n,o=t):(o[t]=n,(typeof a=="function"||!a)&&(r=a));let l={$token:this.token,...i},d=s?"$set_once":"$set";l[d]=o,"ip"in o&&(l.$ip=o.ip,delete o.ip),o.$ignore_time&&(l.$ignore_time=o.$ignore_time,delete o.$ignore_time),l=_c(l,a),this.config.debug&&this.mixpanel.config.logger.debug(`Sending the following data to Mixpanel (${this.endpoint})`,{data:l}),this.mixpanel.send_request({method:"GET",endpoint:this.endpoint,data:l},r)}_delete_profile({identifiers:t,modifiers:n,callback:a}){let r={$delete:"",$token:this.token,...t};typeof n=="function"&&(a=n),r=_c(r,n),this.config.debug&&this.mixpanel.config.logger.debug("Deleting profile",{identifiers:t}),this.mixpanel.send_request({method:"GET",endpoint:this.endpoint,data:r},a)}_remove({identifiers:t,data:n,modifiers:a,callback:r}){let i={};if(typeof n!="object"||Vb.isArray(n)){this.config.debug&&this.mixpanel.config.logger.error("Invalid value passed to #remove - data must be an object with scalar values");return}for(let[s,o]of Object.entries(n))if(typeof o=="string"||typeof o=="number")i[s]=o;else{this.config.debug&&this.mixpanel.config.logger.error("Invalid argument passed to #remove - values must be scalar",{key:s,value:o});return}Object.keys(i).length!==0&&(n={$remove:i,$token:this.token,...t},typeof a=="function"&&(r=a),n=_c(n,a),this.config.debug&&this.mixpanel.config.logger.debug(`Sending the following data to Mixpanel (${this.endpoint})`,{data:n}),this.mixpanel.send_request({method:"GET",endpoint:this.endpoint,data:n},r))}_union({identifiers:t,data:n,modifiers:a,callback:r}){let i={};if(typeof n!="object"||Vb.isArray(n)){this.config.debug&&this.mixpanel.config.logger.error("Invalid value passed to #union - data must be an object with scalar or array values");return}for(let[o,l]of Object.entries(n))if(Vb.isArray(l)){var s=l.filter(function(d){return typeof d=="string"||typeof d=="number"});s.length>0&&(i[o]=s)}else typeof l=="string"||typeof l=="number"?i[o]=[l]:this.config.debug&&this.mixpanel.config.logger.error("Invalid argument passed to #union - values must be a scalar value or array",{key:o,value:l});Object.keys(i).length!==0&&(n={$union:i,$token:this.token,...t},typeof a=="function"&&(r=a),n=_c(n,a),this.config.debug&&this.mixpanel.config.logger.debug(`Sending the following data to Mixpanel (${this.endpoint})`,{data:n}),this.mixpanel.send_request({method:"GET",endpoint:this.endpoint,data:n},r))}_unset({identifiers:t,prop:n,modifiers:a,callback:r}){let i=[];if(Vb.isArray(n))i=n;else if(typeof n=="string")i=[n];else{this.config.debug&&this.mixpanel.config.logger.error("Invalid argument passed to #unset - must be a string or array",{prop:n});return}let s={$unset:i,$token:this.token,...t};typeof a=="function"&&(r=a),s=_c(s,a),this.config.debug&&this.mixpanel.config.logger.debug(`Sending the following data to Mixpanel (${this.endpoint})`,{data:s}),this.mixpanel.send_request({method:"GET",endpoint:this.endpoint,data:s},r)}}});var qY=g(BY=>{var{ProfileHelpers:OOe}=Pw(),kw=class extends OOe(){constructor(t){super(),this.mixpanel=t,this.endpoint="/groups"}set_once(t,n,a,r,i,s){let o={$group_key:t,$group_id:n};this._set(a,r,i,s,{identifiers:o,set_once:!0})}set(t,n,a,r,i,s){let o={$group_key:t,$group_id:n};this._set(a,r,i,s,{identifiers:o})}delete_group(t,n,a,r){let i={$group_key:t,$group_id:n};this._delete_profile({identifiers:i,modifiers:a,callback:r})}remove(t,n,a,r,i){let s={$group_key:t,$group_id:n};this._remove({identifiers:s,data:a,modifiers:r,callback:i})}union(t,n,a,r,i){let s={$group_key:t,$group_id:n};this._union({identifiers:s,data:a,modifiers:r,callback:i})}unset(t,n,a,r,i){let s={$group_key:t,$group_id:n};this._unset({identifiers:s,prop:a,modifiers:r,callback:i})}};BY.MixpanelGroups=kw});var UY=g(FY=>{var{merge_modifiers:Gb,ProfileHelpers:$Oe}=Pw(),Ow=class extends $Oe(){constructor(t){super(),this.mixpanel=t,this.endpoint="/engage"}set_once(t,n,a,r,i){let s={$distinct_id:t};this._set(n,a,r,i,{identifiers:s,set_once:!0})}set(t,n,a,r,i){let s={$distinct_id:t};this._set(n,a,r,i,{identifiers:s})}increment(t,n,a,r,i){var s={};if(typeof n=="object"){typeof a=="object"?(i=r,r=a):i=a;for(let[l,d]of Object.entries(n))isNaN(parseFloat(d))?this.mixpanel.config.debug&&this.mixpanel.config.logger.error("Invalid increment value passed to mixpanel.people.increment - must be a number",{key:l,value:d}):s[l]=d}else typeof a=="number"||!a?(a=a||1,s[n]=a,typeof r=="function"&&(i=r)):typeof a=="function"?(i=a,s[n]=1):(i=r,r=typeof a=="object"?a:{},s[n]=1);var o={$add:s,$token:this.mixpanel.token,$distinct_id:t};o=Gb(o,r),this.mixpanel.config.debug&&this.mixpanel.config.logger.debug("Sending the following data to Mixpanel (Engage)",{data:o}),this.mixpanel.send_request({method:"GET",endpoint:"/engage",data:o},i)}append(t,n,a,r,i){var s={};typeof n=="object"?(typeof a=="object"?(i=r,r=a):i=a,Object.keys(n).forEach(function(l){s[l]=n[l]})):(s[n]=a,typeof r=="function"&&(i=r));var o={$append:s,$token:this.mixpanel.token,$distinct_id:t};o=Gb(o,r),this.mixpanel.config.debug&&this.mixpanel.config.logger.debug("Sending the following data to Mixpanel (Engage)",{data:o}),this.mixpanel.send_request({method:"GET",endpoint:"/engage",data:o},i)}track_charge(t,n,a,r,i){if(typeof a=="function"||!a?(i=a||void 0,a={}):(typeof r=="function"||!r)&&(i=r||void 0,(a.$ignore_time||a.hasOwnProperty("$ip"))&&(r={},Object.keys(a).forEach(function(l){r[l]=a[l],delete a[l]}))),typeof n!="number"&&(n=parseFloat(n),isNaN(n))){this.mixpanel.config.logger.error("Invalid value passed to mixpanel.people.track_charge - must be a number");return}if(a.$amount=n,a.hasOwnProperty("$time")){var s=a.$time;Object.prototype.toString.call(s)==="[object Date]"&&(a.$time=s.toISOString())}var o={$append:{$transactions:a},$token:this.mixpanel.token,$distinct_id:t};o=Gb(o,r),this.mixpanel.config.debug&&this.mixpanel.config.logger.debug("Sending the following data to Mixpanel (Engage)",{data:o}),this.mixpanel.send_request({method:"GET",endpoint:"/engage",data:o},i)}clear_charges(t,n,a){var r={$set:{$transactions:[]},$token:this.mixpanel.token,$distinct_id:t};typeof n=="function"&&(a=n),r=Gb(r,n),this.mixpanel.config.debug&&this.mixpanel.config.logger.debug("Clearing this user's charges",{$distinct_id:t}),this.mixpanel.send_request({method:"GET",endpoint:"/engage",data:r},a)}delete_user(t,n,a){let r={$distinct_id:t};this._delete_profile({identifiers:r,modifiers:n,callback:a})}remove(t,n,a,r){let i={$distinct_id:t};this._remove({identifiers:i,data:n,modifiers:a,callback:r})}union(t,n,a,r){let i={$distinct_id:t};this._union({identifiers:i,data:n,modifiers:a,callback:r})}unset(t,n,a,r){let i={$distinct_id:t};this._unset({identifiers:i,prop:n,modifiers:a,callback:r})}};FY.MixpanelPeople=Ow});var zY=g((JXe,HY)=>{var ROe=he("querystring"),$w=he("buffer").Buffer,jY=he("http"),Rw=he("https"),NOe=DY(),DOe=he("url"),LOe=LY(),{async_all:BOe,ensure_timestamp:Nw,assert_logger:qOe}=Mw(),{MixpanelGroups:FOe}=qY(),{MixpanelPeople:UOe}=UY(),jOe={test:!1,debug:!1,verbose:!1,host:"api.mixpanel.com",protocol:"https",path:"",keepAlive:!0,geolocate:!1,logger:console},HOe=function(e,t){if(!e)throw new Error("The Mixpanel Client needs a Mixpanel token: `init(token)`");let n={token:e,config:{...jOe}},{keepAlive:a}=n.config,r=50,i={http:jY,https:Rw},s={http:new jY.Agent({keepAlive:a}),https:new Rw.Agent({keepAlive:a})},o=process.env.HTTPS_PROXY||process.env.HTTP_PROXY,l=o?new NOe(Object.assign(DOe.parse(o),{keepAlive:a})):null;n.send_request=function(b,w){w=w||function(){};let A=$w.from(JSON.stringify(b.data)).toString("base64"),_=b.endpoint,k=(b.method||"GET").toUpperCase(),D={ip:n.config.geolocate?1:0,verbose:n.config.verbose?1:0},F=n.config.key,H=n.config.secret,B=i[n.config.protocol],z={host:n.config.host,port:n.config.port,headers:{},method:k},fe;if(!B)throw new Error("Mixpanel Initialization Error: Unsupported protocol "+n.config.protocol+". Supported protocols are: "+Object.keys(i));if(k==="POST"?(A="data="+A,z.headers["Content-Type"]="application/x-www-form-urlencoded",z.headers["Content-Length"]=$w.byteLength(A)):k==="GET"&&(D.data=A),H){if(B!==Rw)throw new Error("Must use HTTPS if authenticating with API Secret");let W=$w.from(H+":").toString("base64");z.headers.Authorization="Basic "+W}else if(F)D.api_key=F;else if(_==="/import")throw new Error("The Mixpanel Client needs a Mixpanel API Secret when importing old events: `init(token, { secret: ... })`");z.agent=l||s[n.config.protocol],n.config.test&&(D.test=1),z.path=n.config.path+_+"?"+ROe.stringify(D),fe=B.request(z,function(W){var ae="";W.on("data",function(X){ae+=X}),W.on("end",function(){var X;if(n.config.verbose)try{var K=JSON.parse(ae);K.status!=1&&(X=new Error("Mixpanel Server Error: "+K.error))}catch{X=new Error("Could not parse response from Mixpanel")}else X=ae!=="1"?new Error("Mixpanel Server Error: "+ae):void 0;w(X)})}),fe.on("error",function(W){n.config.debug&&n.config.logger.error("Got Error: "+W.message),w(W)}),k==="POST"&&fe.write(A),fe.end()},n.send_event_request=function(b,w,A,_){A.token=n.token,A.mp_lib="node",A.$lib_version=LOe.version;var k={event:w,properties:A};n.config.debug&&n.config.logger.debug("Sending the following event to Mixpanel",{data:k}),n.send_request({method:"GET",endpoint:b,data:k},_)};var d=function(b,w){for(var A=[],_=0,k=b.length;_<k;)A.push(b.slice(_,_+=w));return A},p=function(b,w){var A=b.event_list,_=b.endpoint,k=b.max_batch_size?Math.min(r,b.max_batch_size):r,D=b.max_concurrent_requests||b.max_batch_size>r&&Math.ceil(b.max_batch_size/r),F=d(A,k),H=D?d(F,D):[F],B=F.length,z=H.length;function fe(ae,X){ae.length>0&&(ae=ae.map(function(K){var N=K.properties;return(_==="/import"||K.properties.time)&&(K.properties.time=Nw(K.properties.time)),K.properties.token=K.properties.token||n.token,K}),n.send_request({method:"POST",endpoint:_,data:ae},X))}function W(ae){var X=H[ae],K=function(N,y){ae+=1,ae===z?w&&w(N,y):W(ae)};BOe(X,fe,K)}W(0),n.config.debug&&n.config.logger.debug("Sending "+A.length+" events to Mixpanel in "+B+" batches of events and "+z+" batches of requests")};return n.track=function(b,w,A){(!w||typeof w=="function")&&(A=w,w={}),w.time&&(w.time=Nw(w.time)),n.send_event_request("/track",b,w,A)},n.track_batch=function(b,w,A){w=w||{},typeof w=="function"&&(A=w,w={});var _={event_list:b,endpoint:"/track",max_concurrent_requests:w.max_concurrent_requests,max_batch_size:w.max_batch_size};p(_,A)},n.import=function(b,w,A,_){(!A||typeof A=="function")&&(_=A,A={}),A.time=Nw(w),n.send_event_request("/import",b,A,_)},n.import_batch=function(b,w,A){var _;(typeof w=="function"||!w)&&(A=w,w={}),_={event_list:b,endpoint:"/import",max_concurrent_requests:w.max_concurrent_requests,max_batch_size:w.max_batch_size},p(_,A)},n.alias=function(b,w,A){var _={distinct_id:b,alias:w};n.track("$create_alias",_,A)},n.groups=new FOe(n),n.people=new UOe(n),n.set_config=function(b){if(b&&b.logger!==void 0&&qOe(b.logger),Object.assign(n.config,b),b.host){let[w,A]=b.host.split(":");n.config.host=w,A&&(n.config.port=Number(A))}},t&&n.set_config(t),n};HY.exports={init:HOe}});import ye from"colors";var Qie=dt(Dd(),1),e0e=dt(a8(),1),{format:oNe,createLogger:fNe,transports:dNe}=Qie;process.setMaxListeners(0);var $Me=dt(Dd(),1);var Fn;(function(e){e.RUST="rs",e.C="c",e.JS="js",e.API="api",e.PYTHON="py"})(Fn||(Fn={}));var qf;(function(e){e.API="api"})(qf||(qf={}));var t0e={...Fn,...qf};var cNe=Object.values(t0e),uNe=Object.values(Fn);var RM;(function(e){e.JSON="application/json",e.WASM="application/wasm",e.PLAIN_TXT="text/plain",e.JS="application/x-javascript",e.TAR="application/x-tar"})(RM||(RM={}));var NM;(function(e){e.JSON="json",e.WASM="wasm",e.PLAIN_TXT="txt",e.JS="js",e.DTA="dta",e.PY="py",e.TAR="tar"})(NM||(NM={}));var SP=dt(w8(),1);async function TP(e,t){if(!(0,SP.satisfies)(process.version,e)){let n=`Nodejs required version ${e} not satisfied with current version ${process.version}.`;t?t.error(n):console.log(n),process.exit(1)}}import oDe from"node:os";var EP;(function(e){e.LEDGER="ledger",e.HTTP_ADAPTER="http-adapter",e.EVENTS_ADAPTER="events-adapter",e.FILESYSTEM_ADAPTER="filesystem-adapter",e.WASM_CHECKPOINTER="wasm-checkpointer",e.WASM_INSTRUMENTER="wasm-instrumenter",e.WASM_RUNNER="wasm-runner"})(EP||(EP={}));var _2;(function(e){e.FAILED="failed",e.SUCCEED="succeed",e.RUNNING="running"})(_2||(_2={}));var IP;(function(e){e.MINIO="minio",e.S3="s3"})(IP||(IP={}));var MP="1099511627776",CP="65536",PP="524288",kP="1024";var OP;(function(e){e.TASK_CREATED="task_created",e.TASK_SOLVED="task_solved",e.FILE_SYSTEM="file_system",e.DISPATCH_TASK="dispatch_task",e.DISPATCH_API_TASK="dispatch_api_task",e.MESSAGE_SAVED="message_saved",e.COMPUTED_OUTCOME="computed_outcome",e.API_FETCH="api_fetch",e.API_OUTCOME="api_outcome",e.API_SOLVED="api_solved",e.READY_TO_SHUTDOWN="ready_to_shutdown",e.INVOICE="invoice",e.ENTITLEMENT="entitlement",e.HEALTH_CHECK="health_check",e.RUNNER_TASK_EXECUTED="runner_task_executed",e.DEPLOYER_EXECUTE_TASK="deployer_execute_task",e.DEPLOYER_TASK_EXECUTED="deployer_task_executed",e.HTTP_ADAPTER_TASK_EXECUTED="http_adapter_task_executed",e.HTTP_ADAPTER_TASK_INSTRUMENTED="http_adapter_task_instrumented",e.HTTP_ADAPTER_TASK_PUSHED="http_adapter_task_pushed",e.HTTP_ADAPTER_TASK_PULLED="http_adapter_task_pulled",e.HTTP_ADAPTER_TASK_CHECKPOINTED="http_adapter_task_checkpointed",e.HTTP_ADAPTER_TASK_CHECKPOINTS_LISTED="http_adapter_task_checkpoints_listed",e.HTTP_ADAPTER_READY_TO_SHUTDOWN="http_adapter_ready_to_shutdown",e.EVENTS_ADAPTER_TASK_EXECUTED="events_adapter_task_executed",e.EVENTS_ADAPTER_TASK_INSTRUMENTED="events_adapter_task_instrumented",e.EVENTS_ADAPTER_TASK_PUSHED="events_adapter_task_pushed",e.EVENTS_ADAPTER_TASK_PULLED="events_adapter_task_pulled",e.EVENTS_ADAPTER_TASK_CHECKPOINTED="events_adapter_task_checkpointed",e.EVENTS_ADAPTER_TASK_CHECKPOINTS_LISTED="events_adapter_task_checkpoints_listed",e.EVENTS_ADAPTER_COMPUTED_OUTCOME="events_adapter_compute_outcome",e.EVENTS_ADAPTER_TASK_CREATED="events_adapter_task_created",e.EVENTS_ADAPTER_NODE_DEREGISTERED="events_adapter_node_deregistered",e.EVENTS_ADAPTER_SERVICE_STARTED_CHECK="events_adapter_service_started_check",e.DISPATCHER_TASK_SOLVED_CLEAR="dispatcher_task_solved_clear",e.DISPATCHER_TASK_CREATED="dispatcher_task_created",e.WASM_INSTRUMENTER_INSTRUMENT_TASK="wasm_instrumenter_instrument_task",e.WASM_INSTRUMENTER_TASK_INSTRUMENTED="wasm_instrumenter_task_instrumented",e.FILESYSTEM_ADAPTER_PUSH_TASK="filesystem_adapter_push_task",e.FILESYSTEM_ADAPTER_TASK_PUSHED="filesystem_adapter_task_pushed",e.FILESYSTEM_ADAPTER_PULL_TASK="filesystem_adapter_pull_task",e.FILESYSTEM_ADAPTER_TASK_PULLED="filesystem_adapter_task_pulled",e.FILESYSTEM_ADAPTER_SERVICE_STARTED_CHECK="filesystem_adapter_service_started_check",e.WASM_CHECKPOINTER_CHECKPOINT_TASK="wasm_checkpointer_checkpoint_task",e.WASM_CHECKPOINTER_LIST_TASK_CHECKPOINTS="wasm_checkpointer_list_task_checkpoints",e.TRANSCRIPT_WRITER_SAVE_MESSAGE="transcript_writer_save_message",e.TRANSCRIPT_WRITER_INVOICE="transcript_writer_save_invoice",e.SEQUENCER_MESSAGE_SAVED="sequencer_message_saved",e.VERIFICATION_MESSAGE_SAVED="verification_message_saved",e.VERIFICATION_VALIDATE_MESSAGE="verification_validate_message",e.VERIFICATION_REVEAL_SOLUTION="verification_reveal_solution",e.VERIFICATION_ADJUDICATION_OUTCOME="verification_adjudication_outcome",e.VERIFICATION_ERRORS="verification_errors",e.LEDGER_SHUTDOWN="ledger_shutdown",e.LEDGER_SERVICE_STARTED="ledger_service_started"})(OP||(OP={}));var ir;(function(e){e.TASK_INSTRUMENTED="task_instrumented",e.TASK_CREATED="task_created",e.API_TASK_CREATED="api_task_created",e.TASK_EXECUTED="task_executed",e.TASK_PUSHED="task_pushed",e.TASK_PULLED="task_pulled",e.TASK_CHECKPOINTED="task_checkpointed",e.TASK_CHECKPOINTS_LISTED="task_checkpoints_listed",e.COMPUTED_OUTCOME="computed_outcome",e.ADJUDICATION_OUTCOME="adjudication_outcome",e.MESSAGE_SAVED="message_saved",e.TASK_SOLVED="task_solved",e.TASK_SOLVED_CLEAR="task_solved_clear",e.NODE_OUTCOME="node_outcome",e.PLATFORM_ERRORS="errors",e.REVEAL_SOLUTIONS="reveal_solutions",e.SOLUTIONS_REVEALED="solutions_revealed",e.API_FETCHER_OUTCOME="api_fetcher_outcome",e.API_SOLVED="api_solved",e.API_OUTCOME="api_outcome",e.NODE_DEREGISTERED="node_deregistered",e.READY_TO_SHUTDOWN="ready_to_shutdown",e.EXECUTION_COMPLETED="execution_completed",e.SERVICE_STARTED="service_started",e.INVOICE="invoice",e.ENTITLEMENT_REQ="entitlement_req",e.ENTITLEMENT_RES="entitlement_res",e.HEALTH_CHECK="health_check",e.EXECUTION_METADATA="execution_metadata"})(ir||(ir={}));var $P;(function(e){e.SHUTDOWN="shutdown",e.LIST_TASK_CHECKPOINTS="list_task_checkpoints",e.EXECUTE_TASK="execute_task",e.CHECKPOINT_TASK="checkpoint_task",e.INSTRUMENT_TASK="instrument_task",e.PUSH_TASK="push_task",e.PULL_TASK="pull_task",e.DISPATCH_TASK="dispatch_task",e.DISPATCH_API_TASK="dispatch_api_task",e.SAVE_MESSAGE="save_message",e.REVEAL_SOLUTION="reveal_solution",e.VALIDATE_MESSAGE="validate_message",e.API_FETCH="api_fetch",e.ENTITLEMENT="entitlement",e.HEALTH_CHECK="health_check",e.ADJUDICATION_OUTCOME="adjudication_outcome"})($P||($P={}));var RP;(function(e){e.ERRORS="errors",e.TASK_INSTRUMENTED="task_instrumented",e.TASK_CREATED="task_created",e.API_TASK_CREATED="api_task_created",e.TASK_EXECUTED="task_executed",e.TASK_PUSHED="task_pushed",e.TASK_SOLVED="task_solved",e.TASK_SOLVED_CLEAR="task_solved_clear",e.TASK_PULLED="task_pulled",e.TASK_CHECKPOINTED="task_checkpointed",e.TASK_CHECKPOINTS_LISTED="task_checkpoints_listed",e.COMPUTED_OUTCOME="computed_outcome",e.ADJUDICATION_OUTCOME="adjudication_outcome",e.MESSAGE_SAVED="message_saved",e.API_FETCHER_OUTCOME="api_fetcher_outcome",e.API_SOLVED="api_solved",e.API_OUTCOME="api_outcome",e.NODE_DEREGISTERED="node_deregistered",e.READY_TO_SHUTDOWN="ready_to_shutdown",e.SERVICE_STARTED="service_started",e.INVOICES="invoice",e.ENTITLEMENTS_REQ="entitlement_req",e.ENTITLEMENTS_RES="entitlement_res",e.HEALTH_CHECK="health_check",e.SHUTDOWN="shutdown",e.LIST_TASK_CHECKPOINTS="list_task_checkpoints",e.EXECUTE_TASK="execute_task",e.CHECKPOINT_TASK="checkpoint_task",e.INSTRUMENT_TASK="instrument_task",e.PUSH_TASK="push_task",e.PULL_TASK="pull_task",e.DISPATCH_TASK="dispatch_task",e.DISPATCH_API_TASK="dispatch_api_task",e.SAVE_MESSAGE="save_message",e.REVEAL_SOLUTION="reveal_solution",e.VALIDATE_MESSAGE="validate_message",e.API_FETCH="api_fetch",e.DUMMY="DUMMY"})(RP||(RP={}));var NP;(function(e){e.VALIDATION_ERROR="validation_error"})(NP||(NP={}));var lu;(function(e){e.GAME_PENDING="GamePending",e.READY_FOR_INVOICE="ReadyForInvoice",e.ERROR="Error"})(lu||(lu={}));var DP;(function(e){let t;(function(a){a.Pay="pay",a.Charge="charge"})(t=e.Operation||(e.Operation={}));let n;(function(a){a.IS_USER_REGISTER="isUserRegister"})(n=e.EntitlementOperation||(e.EntitlementOperation={}))})(DP||(DP={}));var LP;(function(e){e.Pay="pay",e.Charge="charge"})(LP||(LP={}));var yDe=[ir.TASK_SOLVED,ir.TASK_CREATED,ir.API_TASK_CREATED,ir.NODE_OUTCOME,ir.SOLUTIONS_REVEALED,ir.REVEAL_SOLUTIONS,ir.API_OUTCOME,ir.EXECUTION_COMPLETED,ir.EXECUTION_METADATA,ir.ADJUDICATION_OUTCOME];var Hv=dt(Sa(),1);function j0(){return function(e,t){(0,Hv.registerDecorator)({name:"IsUnixTimestamp",target:e.constructor,propertyName:t,validator:{validate(n){let r=n,i=new Date(r);return!isNaN(i.getTime())&&r>16725312e5}}})}}function zv(){return function(e,t){(0,Hv.registerDecorator)({name:"IsUnixTimestamp",target:e.constructor,propertyName:t,validator:{validate(n){let r=n,i=new Date(r);return!isNaN(i.getTime())&&r>1672531200}}})}}var KUe=dt(po(),1),Jo=dt(mo(),1),me=dt(Sa(),1),gt=function(e,t,n,a){var r=arguments.length,i=r<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,a);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(r<3?s(i):r>3?s(t,n,i):s(t,n))||i);return r>3&&i&&Object.defineProperty(t,n,i),i},vt=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},Yv;(function(e){e.FAILED="failed",e.SUCCEED="succeed",e.RUNNING="running"})(Yv||(Yv={}));var Sr=class{iv;ephemPublicKey;ciphertext;mac;constructor(t,n,a,r){this.iv=t,this.ephemPublicKey=n,this.ciphertext=a,this.mac=r}};gt([(0,me.IsNotEmpty)(),(0,me.IsString)(),vt("design:type",String)],Sr.prototype,"iv",void 0);gt([(0,me.IsNotEmpty)(),(0,me.IsString)(),vt("design:type",String)],Sr.prototype,"ephemPublicKey",void 0);gt([(0,me.IsNotEmpty)(),(0,me.IsString)(),vt("design:type",String)],Sr.prototype,"ciphertext",void 0);gt([(0,me.IsNotEmpty)(),(0,me.IsString)(),vt("design:type",String)],Sr.prototype,"mac",void 0);var Nt=class{v;r;s;constructor(t,n,a){this.v=t,this.r=n,this.s=a}};gt([(0,me.IsNotEmpty)(),(0,me.IsNumber)(),vt("design:type",Number)],Nt.prototype,"v",void 0);gt([(0,me.IsNotEmpty)(),(0,me.IsString)(),vt("design:type",String)],Nt.prototype,"r",void 0);gt([(0,me.IsNotEmpty)(),(0,me.IsString)(),vt("design:type",String)],Nt.prototype,"s",void 0);var Yo=class{memoryGrowDelta;call;frame;steps;constructor(t,n,a,r){this.call=t,this.frame=n,this.steps=a,this.memoryGrowDelta=r}};gt([(0,me.IsNumber)(),(0,me.IsOptional)(),vt("design:type",Number)],Yo.prototype,"memoryGrowDelta",void 0);gt([(0,me.IsNumber)(),(0,me.IsNotEmpty)(),vt("design:type",Number)],Yo.prototype,"call",void 0);gt([(0,me.IsNumber)(),(0,me.IsNotEmpty)(),vt("design:type",Number)],Yo.prototype,"frame",void 0);gt([(0,me.IsNumber)(),(0,me.IsNotEmpty)(),vt("design:type",Number)],Yo.prototype,"steps",void 0);var Zo=class{call;frame;gas;memory;constructor(t,n,a,r){this.call=t,this.frame=n,this.gas=a,this.memory=r}};gt([(0,me.IsNumber)(),(0,me.IsNotEmpty)(),vt("design:type",Number)],Zo.prototype,"call",void 0);gt([(0,me.IsNumber)(),(0,me.IsNotEmpty)(),vt("design:type",Number)],Zo.prototype,"frame",void 0);gt([(0,me.IsNumber)(),(0,me.IsNotEmpty)(),vt("design:type",Number)],Zo.prototype,"gas",void 0);gt([(0,me.IsNumber)(),(0,me.IsNotEmpty)(),vt("design:type",Number)],Zo.prototype,"memory",void 0);var Yf=class{call;frame;memory;constructor(t,n,a){this.call=t,this.frame=n,this.memory=a}};gt([(0,me.IsNumber)(),(0,me.IsNotEmpty)(),vt("design:type",Number)],Yf.prototype,"call",void 0);gt([(0,me.IsNumber)(),(0,me.IsNotEmpty)(),vt("design:type",Number)],Yf.prototype,"frame",void 0);gt([(0,me.IsNumber)(),(0,me.IsNotEmpty)(),vt("design:type",Number)],Yf.prototype,"memory",void 0);var X6=class{protocol;constructor(t){this.protocol=t}};gt([(0,me.IsString)(),(0,me.IsNotEmpty)(),vt("design:type",String)],X6.prototype,"protocol",void 0);var f0=class{last;limits;peak;versions;constructor(t,n,a,r){this.last=t,this.limits=n,this.peak=a,this.versions=r}};gt([(0,me.ValidateNested)(),(0,Jo.Type)(()=>Yo),vt("design:type",Yo)],f0.prototype,"last",void 0);gt([(0,me.ValidateNested)(),(0,Jo.Type)(()=>Zo),vt("design:type",Zo)],f0.prototype,"limits",void 0);gt([(0,me.ValidateNested)(),(0,Jo.Type)(()=>Yf),vt("design:type",Yf)],f0.prototype,"peak",void 0);gt([(0,me.IsOptional)(),(0,me.ValidateNested)(),(0,Jo.Type)(()=>X6),vt("design:type",X6)],f0.prototype,"versions",void 0);var Xo=class{senderAddress;status;output;metering;constructor(t,n,a,r){this.senderAddress=t,this.status=n,this.output=a,this.metering=r}};gt([(0,me.IsNotEmpty)(),(0,me.IsEthereumAddress)(),vt("design:type",String)],Xo.prototype,"senderAddress",void 0);gt([(0,me.IsNotEmpty)(),(0,me.IsEnum)(Yv),vt("design:type",String)],Xo.prototype,"status",void 0);gt([(0,me.IsOptional)(),(0,me.IsString)(),vt("design:type",String)],Xo.prototype,"output",void 0);gt([(0,me.IsOptional)(),(0,me.ValidateNested)(),(0,Jo.Type)(()=>f0),vt("design:type",f0)],Xo.prototype,"metering",void 0);var Ml=class{signature;clearTextSolution;constructor(t,n){this.signature=t,this.clearTextSolution=n}};gt([(0,me.ValidateNested)(),(0,Jo.Type)(()=>Nt),vt("design:type",Nt)],Ml.prototype,"signature",void 0);gt([(0,me.ValidateNested)(),(0,Jo.Type)(()=>Xo),vt("design:type",Xo)],Ml.prototype,"clearTextSolution",void 0);var fr=class{blockNumber;selectionStrategy;setNodes;constructor(t,n,a){this.blockNumber=t,this.selectionStrategy=n,this.setNodes=a}};gt([(0,me.IsNotEmpty)(),(0,me.Min)(0),vt("design:type",Number)],fr.prototype,"blockNumber",void 0);gt([(0,me.IsNotEmpty)(),(0,me.IsString)(),vt("design:type",String)],fr.prototype,"selectionStrategy",void 0);gt([(0,me.ArrayNotEmpty)(),(0,me.IsNotEmpty)({each:!0}),(0,me.IsEthereumAddress)({each:!0}),vt("design:type",Array)],fr.prototype,"setNodes",void 0);var Ba=class{gas;call;frame;memory;constructor(t,n,a,r){this.gas=t,this.call=n,this.frame=a,this.memory=r}};gt([(0,me.IsNotEmpty)(),(0,me.IsString)(),vt("design:type",String)],Ba.prototype,"gas",void 0);gt([(0,me.IsNotEmpty)(),(0,me.IsString)(),vt("design:type",String)],Ba.prototype,"call",void 0);gt([(0,me.IsNotEmpty)(),(0,me.IsString)(),vt("design:type",String)],Ba.prototype,"frame",void 0);gt([(0,me.IsNotEmpty)(),(0,me.IsString)(),vt("design:type",String)],Ba.prototype,"memory",void 0);var qa=class{reward;requiredSolutions;totalSolutions;executionTimeout;constructor(t,n,a,r){this.reward=t,this.requiredSolutions=n,this.totalSolutions=a,this.executionTimeout=r}};gt([(0,me.IsNotEmpty)(),(0,me.IsString)(),vt("design:type",String)],qa.prototype,"reward",void 0);gt([(0,me.Min)(1),(0,me.IsNotEmpty)(),(0,me.IsNumber)(),vt("design:type",Number)],qa.prototype,"requiredSolutions",void 0);gt([(0,me.Min)(1),(0,me.IsNotEmpty)(),(0,me.IsNumber)(),vt("design:type",Number)],qa.prototype,"totalSolutions",void 0);gt([(0,me.Min)(1),(0,me.IsNotEmpty)(),(0,me.IsNumber)(),vt("design:type",Number)],qa.prototype,"executionTimeout",void 0);var Zf=class{request;response;constructor(t,n){this.request=t,this.response=n}};gt([(0,me.IsNotEmpty)(),(0,me.IsNumber)(),vt("design:type",Number)],Zf.prototype,"request",void 0);gt([(0,me.IsNotEmpty)(),(0,me.IsNumber)(),vt("design:type",Number)],Zf.prototype,"response",void 0);var Fj;(function(e){e.MINIO="minio",e.S3="s3"})(Fj||(Fj={}));var Fa=dt(Sa(),1);import{v4 as mSe}from"uuid";var Cl=function(e,t,n,a){var r=arguments.length,i=r<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,a);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(r<3?s(i):r>3?s(t,n,i):s(t,n))||i);return r>3&&i&&Object.defineProperty(t,n,i),i},Pl=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},d0=class{msgType;messageId;payload;msgTimestamp=Date.now();constructor(t,n){this.msgType=this.constructor.name,this.messageId=n||mSe(),this.payload=t}};Cl([(0,Fa.IsNotEmpty)(),(0,Fa.IsString)(),Pl("design:type",String)],d0.prototype,"msgType",void 0);Cl([(0,Fa.IsOptional)(),(0,Fa.IsUUID)(),Pl("design:type",String)],d0.prototype,"messageId",void 0);Cl([(0,Fa.ValidateNested)(),Pl("design:type",Object)],d0.prototype,"payload",void 0);Cl([j0(),Pl("design:type",Number)],d0.prototype,"msgTimestamp",void 0);var sm=class extends d0{error;constructor(t,n,a){super(n,a),this.error=t}};Cl([(0,Fa.IsNotEmpty)(),(0,Fa.IsString)(),Pl("design:type",String)],sm.prototype,"error",void 0);var Zv=class extends d0{error;constructor(t,n,a){super(n,a),this.error=t}};Cl([(0,Fa.IsNotEmpty)(),(0,Fa.IsString)(),Pl("design:type",String)],Zv.prototype,"error",void 0);var eje=dt(po(),1),se=dt(Sa(),1);var bo;(function(e){e.EVM="evm",e.AVALANCHE="avalanche"})(bo||(bo={}));var c0=dt(mo(),1),He=function(e,t,n,a){var r=arguments.length,i=r<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,a);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(r<3?s(i):r>3?s(t,n,i):s(t,n))||i);return r>3&&i&&Object.defineProperty(t,n,i),i},ze=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},l0;(function(e){e.TASK_CREATED="task_created",e.API_TASK_CREATED="api_task_created",e.NODE_OUTCOME="node_outcome",e.TASK_SOLVED="task_solved",e.API_OUTCOME="api_outcome",e.SOLUTIONS_REVEALED="solutions_revealed",e.EXECUTION_COMPLETED="execution_completed",e.ADJUDICATION_OUTCOME="adjudication_outcome"})(l0||(l0={}));var Ua=class{type;executionId;message;msgHash;signature;sequencerAddress;timestamp;constructor(t,n,a,r,i,s,o){this.type=t,this.executionId=n,this.message=r,this.msgHash=a,this.signature=i,this.timestamp=o,this.sequencerAddress=s}};He([(0,se.IsNotEmpty)(),(0,se.IsEnum)(l0),ze("design:type",String)],Ua.prototype,"type",void 0);He([(0,se.IsUUID)(),(0,se.IsNotEmpty)(),ze("design:type",String)],Ua.prototype,"executionId",void 0);He([(0,se.ValidateNested)(),ze("design:type",Object)],Ua.prototype,"message",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsHash)("sha256"),ze("design:type",String)],Ua.prototype,"msgHash",void 0);He([(0,se.ValidateNested)(),(0,c0.Type)(()=>Nt),ze("design:type",Nt)],Ua.prototype,"signature",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsEthereumAddress)(),ze("design:type",String)],Ua.prototype,"sequencerAddress",void 0);He([j0(),(0,se.IsNotEmpty)(),ze("design:type",Number)],Ua.prototype,"timestamp",void 0);var nn=class{type="dispatch_task";taskId;executionId;msgHash;signature;limits;econParams;workers;dispatcherTimestamp;taskRequesterTimestamp;ledgerName;blockHash;blockNumber;chainId;nodeRegistryContractAddress;taskRegistryContractAddress;taskAuthorizationContractAddress;taskRequesterAddress;taskPath;taskVersion;signedRequestBody;senderAddress;input;constructor(t,n,a,r,i,s,o,l,d,p,b,w,A,_,k,D,F,H,B,z,fe,W){this.taskId=t,this.executionId=n,this.msgHash=a,this.signature=r,this.limits=i,this.econParams=s,this.workers=o,this.dispatcherTimestamp=l,this.taskRequesterTimestamp=d,this.ledgerName=p,this.blockHash=b,this.blockNumber=w,this.chainId=A,this.nodeRegistryContractAddress=_,this.taskRegistryContractAddress=k,this.taskAuthorizationContractAddress=D,this.taskRequesterAddress=F,this.taskPath=H,this.taskVersion=B,this.signedRequestBody=W,this.senderAddress=z,this.input=fe}};He([(0,se.IsNotEmpty)(),(0,se.IsString)(),ze("design:type",String)],nn.prototype,"taskId",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsUUID)(),ze("design:type",String)],nn.prototype,"executionId",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsHash)("sha256"),ze("design:type",String)],nn.prototype,"msgHash",void 0);He([(0,se.ValidateNested)(),(0,c0.Type)(()=>Nt),ze("design:type",Nt)],nn.prototype,"signature",void 0);He([(0,se.ValidateNested)(),(0,c0.Type)(()=>Ba),ze("design:type",Ba)],nn.prototype,"limits",void 0);He([(0,se.ValidateNested)(),(0,c0.Type)(()=>qa),ze("design:type",qa)],nn.prototype,"econParams",void 0);He([(0,se.ValidateNested)(),(0,c0.Type)(()=>fr),ze("design:type",fr)],nn.prototype,"workers",void 0);He([(0,se.IsNotEmpty)(),zv(),ze("design:type",Number)],nn.prototype,"dispatcherTimestamp",void 0);He([(0,se.IsNotEmpty)(),zv(),ze("design:type",Number)],nn.prototype,"taskRequesterTimestamp",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsEnum)(bo),ze("design:type",String)],nn.prototype,"ledgerName",void 0);He([(0,se.IsNotEmpty)(),ze("design:type",String)],nn.prototype,"blockHash",void 0);He([(0,se.IsNotEmpty)(),(0,se.Min)(0),ze("design:type",Number)],nn.prototype,"blockNumber",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsString)(),ze("design:type",String)],nn.prototype,"chainId",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsEthereumAddress)(),ze("design:type",String)],nn.prototype,"nodeRegistryContractAddress",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsEthereumAddress)(),ze("design:type",String)],nn.prototype,"taskRegistryContractAddress",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsEthereumAddress)(),ze("design:type",String)],nn.prototype,"taskAuthorizationContractAddress",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsEthereumAddress)(),ze("design:type",String)],nn.prototype,"taskRequesterAddress",void 0);He([(0,se.IsOptional)(),ze("design:type",String)],nn.prototype,"taskPath",void 0);He([(0,se.IsOptional)(),(0,se.Min)(0),ze("design:type",Number)],nn.prototype,"taskVersion",void 0);He([(0,se.IsOptional)(),ze("design:type",Object)],nn.prototype,"signedRequestBody",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsEthereumAddress)(),ze("design:type",String)],nn.prototype,"senderAddress",void 0);He([(0,se.IsOptional)(),(0,se.Allow)(),ze("design:type",String)],nn.prototype,"input",void 0);var In=class{type="dispatch_task";taskId;executionId;msgHash;signature;ledgerName;blockHash;blockNumber;chainId;taskRegistryContractAddress;taskAuthorizationContractAddress;taskRequesterAddress;taskPath;taskVersion;senderAddress;executionTimeout;input;constructor(t,n,a,r,i,s,o,l,d,p,b,w,A,_,k,D){this.taskId=t,this.executionId=n,this.msgHash=a,this.signature=r,this.executionTimeout=k,this.ledgerName=s,this.blockHash=o,this.blockNumber=l,this.chainId=d,this.taskRegistryContractAddress=p,this.taskAuthorizationContractAddress=b,this.taskRequesterAddress=w,this.taskPath=A,this.taskVersion=_,this.senderAddress=i,this.input=D}};He([(0,se.IsNotEmpty)(),(0,se.IsString)(),ze("design:type",String)],In.prototype,"taskId",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsUUID)(),ze("design:type",String)],In.prototype,"executionId",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsHash)("sha256"),ze("design:type",String)],In.prototype,"msgHash",void 0);He([(0,se.ValidateNested)(),(0,c0.Type)(()=>Nt),ze("design:type",Nt)],In.prototype,"signature",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsEnum)(bo),ze("design:type",String)],In.prototype,"ledgerName",void 0);He([(0,se.IsNotEmpty)(),ze("design:type",String)],In.prototype,"blockHash",void 0);He([(0,se.IsNotEmpty)(),(0,se.Min)(0),ze("design:type",Number)],In.prototype,"blockNumber",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsString)(),ze("design:type",String)],In.prototype,"chainId",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsEthereumAddress)(),ze("design:type",String)],In.prototype,"taskRegistryContractAddress",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsEthereumAddress)(),ze("design:type",String)],In.prototype,"taskAuthorizationContractAddress",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsEthereumAddress)(),ze("design:type",String)],In.prototype,"taskRequesterAddress",void 0);He([(0,se.IsOptional)(),ze("design:type",String)],In.prototype,"taskPath",void 0);He([(0,se.IsOptional)(),(0,se.Min)(0),ze("design:type",Number)],In.prototype,"taskVersion",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsEthereumAddress)(),ze("design:type",String)],In.prototype,"senderAddress",void 0);He([(0,se.IsNumber)(),ze("design:type",Number)],In.prototype,"executionTimeout",void 0);He([(0,se.IsOptional)(),(0,se.Allow)(),ze("design:type",String)],In.prototype,"input",void 0);var H0=class{executionId;senderAddress;encryptedSolution;msgHash;signature;constructor(t,n,a,r,i){this.executionId=t,this.signature=i,this.encryptedSolution=a,this.senderAddress=n,this.msgHash=r}};He([(0,se.IsUUID)(),(0,se.IsNotEmpty)(),ze("design:type",String)],H0.prototype,"executionId",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsEthereumAddress)(),ze("design:type",String)],H0.prototype,"senderAddress",void 0);He([(0,se.ValidateNested)(),(0,c0.Type)(()=>Sr),ze("design:type",Sr)],H0.prototype,"encryptedSolution",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsHash)("sha256"),ze("design:type",String)],H0.prototype,"msgHash",void 0);He([(0,se.ValidateNested)(),(0,c0.Type)(()=>Nt),ze("design:type",Nt)],H0.prototype,"signature",void 0);var Tr=class{executionId;senderAddress;bodyResponse;msgHash;signature;tlsHandshakeHash;status;totalTransferredBytes;constructor(t,n,a,r,i,s,o,l){this.executionId=t,this.signature=i,this.bodyResponse=a,this.tlsHandshakeHash=s,this.senderAddress=n,this.msgHash=r,this.status=o,this.totalTransferredBytes=l}};He([(0,se.IsUUID)(),(0,se.IsNotEmpty)(),ze("design:type",String)],Tr.prototype,"executionId",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsEthereumAddress)(),ze("design:type",String)],Tr.prototype,"senderAddress",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsHash)("sha256"),ze("design:type",String)],Tr.prototype,"msgHash",void 0);He([(0,se.ValidateNested)(),(0,c0.Type)(()=>Nt),ze("design:type",Nt)],Tr.prototype,"signature",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsString)(),ze("design:type",String)],Tr.prototype,"tlsHandshakeHash",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsString)(),ze("design:type",String)],Tr.prototype,"status",void 0);He([(0,se.ValidateNested)(),(0,c0.Type)(()=>Zf),ze("design:type",Zf)],Tr.prototype,"totalTransferredBytes",void 0);var rje=dt(po(),1);var _e=dt(Sa(),1),Un=dt(mo(),1);var lt=function(e,t,n,a){var r=arguments.length,i=r<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,a);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(r<3?s(i):r>3?s(t,n,i):s(t,n))||i);return r>3&&i&&Object.defineProperty(t,n,i),i},ct=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},z0=class{executionId;msgHash;signature;limits;econParams;workers;senderAddress;input;constructor(t,n,a,r,i,s,o,l){this.executionId=t,this.msgHash=n,this.signature=a,this.limits=r,this.econParams=i,this.workers=s,this.senderAddress=o,this.input=l}};lt([(0,_e.IsUUID)(),(0,_e.IsNotEmpty)(),ct("design:type",String)],z0.prototype,"executionId",void 0);lt([(0,_e.IsNotEmpty)(),(0,_e.IsHash)("sha256"),ct("design:type",String)],z0.prototype,"msgHash",void 0);lt([(0,_e.ValidateNested)(),(0,Un.Type)(()=>Nt),ct("design:type",Nt)],z0.prototype,"signature",void 0);lt([(0,_e.ValidateNested)(),(0,Un.Type)(()=>Ba),ct("design:type",Ba)],z0.prototype,"limits",void 0);lt([(0,_e.ValidateNested)(),(0,Un.Type)(()=>qa),ct("design:type",qa)],z0.prototype,"econParams",void 0);lt([(0,_e.ValidateNested)(),(0,Un.Type)(()=>fr),ct("design:type",fr)],z0.prototype,"workers",void 0);lt([(0,_e.IsNotEmpty)(),(0,_e.IsString)(),ct("design:type",String)],z0.prototype,"senderAddress",void 0);lt([(0,_e.IsNotEmpty)(),(0,_e.IsString)(),ct("design:type",String)],z0.prototype,"input",void 0);var kl=class{executionId;limits;econParams;workers;input;constructor(t,n,a,r,i){this.executionId=t,this.limits=n,this.econParams=a,this.workers=r,this.input=i}};lt([(0,_e.IsUUID)(),(0,_e.IsNotEmpty)(),ct("design:type",String)],kl.prototype,"executionId",void 0);lt([(0,_e.ValidateNested)(),(0,Un.Type)(()=>Ba),ct("design:type",Ba)],kl.prototype,"limits",void 0);lt([(0,_e.ValidateNested)(),(0,Un.Type)(()=>qa),ct("design:type",qa)],kl.prototype,"econParams",void 0);lt([(0,_e.ValidateNested)(),(0,Un.Type)(()=>fr),ct("design:type",fr)],kl.prototype,"workers",void 0);var Xv=class extends Ua{message;constructor(t,n,a,r,i,s){super(l0.NODE_OUTCOME,t,n,a,r,i,s),this.message=a,this.executionId=t,this.msgHash=n,this.signature=r,this.timestamp=s,this.sequencerAddress=i,this.message=a}};lt([(0,_e.ValidateNested)(),(0,Un.Type)(()=>H0),ct("design:type",H0)],Xv.prototype,"message",void 0);var Jv=class extends Ua{message;constructor(t,n,a,r,i,s){super(l0.API_OUTCOME,t,n,a,r,i,s),this.message=a,this.executionId=t,this.msgHash=n,this.signature=r,this.timestamp=s,this.sequencerAddress=i}};lt([(0,_e.ValidateNested)(),(0,Un.Type)(()=>Tr),ct("design:type",Tr)],Jv.prototype,"message",void 0);var yo=class{type;executionId;transcriptHash;status;signature;signerAddress;timestamp;constructor(t,n,a,r,i,s){this.type=l0.EXECUTION_COMPLETED,this.executionId=t,this.transcriptHash=n,this.status=a,this.signature=r,this.signerAddress=i,this.timestamp=s}};lt([(0,_e.IsNotEmpty)(),(0,_e.IsString)(),ct("design:type",String)],yo.prototype,"type",void 0);lt([(0,_e.IsUUID)(),(0,_e.IsNotEmpty)(),ct("design:type",String)],yo.prototype,"executionId",void 0);lt([(0,_e.IsNotEmpty)(),(0,_e.IsHash)("sha256"),ct("design:type",String)],yo.prototype,"transcriptHash",void 0);lt([(0,_e.IsNotEmpty)(),(0,_e.IsEnum)(lu),ct("design:type",String)],yo.prototype,"status",void 0);lt([(0,_e.ValidateNested)(),(0,Un.Type)(()=>Nt),ct("design:type",Nt)],yo.prototype,"signature",void 0);lt([(0,_e.IsNotEmpty)(),(0,_e.IsString)(),ct("design:type",String)],yo.prototype,"signerAddress",void 0);lt([j0(),(0,_e.IsNotEmpty)(),ct("design:type",Number)],yo.prototype,"timestamp",void 0);var V0=class{type;executionId;status;signature;senderAddress;timestamp;output;metering;constructor(t,n,a,r,i,s,o){this.type=l0.ADJUDICATION_OUTCOME,this.executionId=t,this.status=n,this.signature=a,this.senderAddress=r,this.output=s,this.metering=o,this.timestamp=i}};lt([(0,_e.IsNotEmpty)(),(0,_e.IsString)(),ct("design:type",String)],V0.prototype,"type",void 0);lt([(0,_e.IsUUID)(),(0,_e.IsNotEmpty)(),ct("design:type",String)],V0.prototype,"executionId",void 0);lt([(0,_e.IsNotEmpty)(),(0,_e.IsEnum)(lu),ct("design:type",String)],V0.prototype,"status",void 0);lt([(0,_e.ValidateNested)(),(0,Un.Type)(()=>Nt),ct("design:type",Nt)],V0.prototype,"signature",void 0);lt([(0,_e.IsNotEmpty)(),(0,_e.IsString)(),ct("design:type",String)],V0.prototype,"senderAddress",void 0);lt([j0(),(0,_e.IsNotEmpty)(),ct("design:type",Number)],V0.prototype,"timestamp",void 0);lt([(0,_e.IsOptional)(),(0,_e.IsString)(),ct("design:type",String)],V0.prototype,"output",void 0);lt([(0,_e.IsOptional)(),(0,_e.ValidateNested)(),(0,Un.Type)(()=>f0),ct("design:type",f0)],V0.prototype,"metering",void 0);var Qo=class{type;executionId;signature;clearTextSolutions;sequencerAddress;msgHash;timestamp;constructor(t,n,a,r,i,s){this.type=l0.SOLUTIONS_REVEALED,this.executionId=t,this.signature=n,this.clearTextSolutions=a,this.sequencerAddress=r,this.msgHash=i,this.timestamp=s}};lt([(0,_e.IsUUID)(),(0,_e.IsNotEmpty)(),ct("design:type",String)],Qo.prototype,"executionId",void 0);lt([(0,_e.ValidateNested)(),(0,Un.Type)(()=>Nt),ct("design:type",Nt)],Qo.prototype,"signature",void 0);lt([(0,_e.ValidateNested)({each:!0}),(0,Un.Type)(()=>Ml),ct("design:type",Array)],Qo.prototype,"clearTextSolutions",void 0);lt([(0,_e.IsNotEmpty)(),(0,_e.IsEthereumAddress)(),ct("design:type",String)],Qo.prototype,"sequencerAddress",void 0);lt([(0,_e.IsNotEmpty)(),(0,_e.IsHash)("sha256"),ct("design:type",String)],Qo.prototype,"msgHash",void 0);lt([j0(),(0,_e.IsNotEmpty)(),ct("design:type",Number)],Qo.prototype,"timestamp",void 0);var go=class extends Ua{executionId;msgHash;message;signature;publicKey;sequencerAddress;timestamp;constructor(t,n,a,r,i,s,o){super(l0.TASK_CREATED,t,n,a,r,s,o),this.message=a,this.executionId=t,this.msgHash=n,this.signature=r,this.timestamp=o,this.sequencerAddress=s,this.publicKey=i,this.message=a}};lt([(0,_e.IsNotEmpty)(),(0,_e.IsUUID)(),ct("design:type",String)],go.prototype,"executionId",void 0);lt([(0,_e.IsNotEmpty)(),(0,_e.IsHash)("sha256"),ct("design:type",String)],go.prototype,"msgHash",void 0);lt([(0,_e.ValidateNested)(),(0,Un.Type)(()=>nn),ct("design:type",nn)],go.prototype,"message",void 0);lt([(0,_e.ValidateNested)(),(0,Un.Type)(()=>Nt),ct("design:type",Nt)],go.prototype,"signature",void 0);lt([(0,_e.IsNotEmpty)(),(0,_e.IsString)(),ct("design:type",String)],go.prototype,"publicKey",void 0);lt([(0,_e.IsNotEmpty)(),(0,_e.IsEthereumAddress)(),ct("design:type",String)],go.prototype,"sequencerAddress",void 0);lt([j0(),(0,_e.IsNotEmpty)(),ct("design:type",Number)],go.prototype,"timestamp",void 0);var vo=class extends Ua{executionId;msgHash;message;signature;publicKey;sequencerAddress;timestamp;constructor(t,n,a,r,i,s,o){super(l0.API_TASK_CREATED,t,n,a,r,s,o),this.message=a,this.executionId=t,this.msgHash=n,this.signature=r,this.timestamp=o,this.sequencerAddress=s,this.publicKey=i,this.message=a}};lt([(0,_e.IsNotEmpty)(),(0,_e.IsUUID)(),ct("design:type",String)],vo.prototype,"executionId",void 0);lt([(0,_e.IsNotEmpty)(),(0,_e.IsHash)("sha256"),ct("design:type",String)],vo.prototype,"msgHash",void 0);lt([(0,_e.ValidateNested)(),(0,Un.Type)(()=>In),ct("design:type",In)],vo.prototype,"message",void 0);lt([(0,_e.ValidateNested)(),(0,Un.Type)(()=>Nt),ct("design:type",Nt)],vo.prototype,"signature",void 0);lt([(0,_e.IsNotEmpty)(),(0,_e.IsString)(),ct("design:type",String)],vo.prototype,"publicKey",void 0);lt([(0,_e.IsNotEmpty)(),(0,_e.IsEthereumAddress)(),ct("design:type",String)],vo.prototype,"sequencerAddress",void 0);lt([j0(),(0,_e.IsNotEmpty)(),ct("design:type",Number)],vo.prototype,"timestamp",void 0);var dje=dt(po(),1);var dr=dt(Sa(),1),Qv=dt(mo(),1),J6=function(e,t,n,a){var r=arguments.length,i=r<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,a);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(r<3?s(i):r>3?s(t,n,i):s(t,n))||i);return r>3&&i&&Object.defineProperty(t,n,i),i},Q6=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},Xf=class{executionId;msgHash;signature;senderAddress;encryptedSolution;constructor(t,n,a,r,i){this.executionId=t,this.msgHash=n,this.signature=a,this.senderAddress=r,this.encryptedSolution=i}};J6([(0,dr.IsUUID)(),(0,dr.IsNotEmpty)(),Q6("design:type",String)],Xf.prototype,"executionId",void 0);J6([(0,dr.IsNotEmpty)(),(0,dr.IsHash)("sha256"),Q6("design:type",String)],Xf.prototype,"msgHash",void 0);J6([(0,dr.ValidateNested)(),(0,Qv.Type)(()=>Nt),Q6("design:type",Nt)],Xf.prototype,"signature",void 0);J6([(0,dr.IsNotEmpty)(),(0,dr.IsEthereumAddress)(),Q6("design:type",String)],Xf.prototype,"senderAddress",void 0);J6([(0,dr.ValidateNested)(),(0,Qv.Type)(()=>Sr),Q6("design:type",Sr)],Xf.prototype,"encryptedSolution",void 0);var ke=dt(Sa(),1);var jt=function(e,t,n,a){var r=arguments.length,i=r<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,a);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(r<3?s(i):r>3?s(t,n,i):s(t,n))||i);return r>3&&i&&Object.defineProperty(t,n,i),i},Ht=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},e_=class{taskId;constructor(t){this.taskId=t}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],e_.prototype,"taskId",void 0);var t_=class{taskId;constructor(t){this.taskId=t}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],t_.prototype,"taskId",void 0);var ep=class{input;checkpoint;taskId;constructor(t,n,a){this.taskId=t,this.checkpoint=n,this.input=a}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],ep.prototype,"input",void 0);jt([(0,ke.IsNotEmpty)(),Ht("design:type",Object)],ep.prototype,"checkpoint",void 0);jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],ep.prototype,"taskId",void 0);var om=class{input;taskId;constructor(t,n){this.taskId=t,this.input=n}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],om.prototype,"input",void 0);jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],om.prototype,"taskId",void 0);var tp=class{executionId;input;taskId;constructor(t,n,a){this.taskId=t,this.executionId=n,this.input=a}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsUUID)(),Ht("design:type",String)],tp.prototype,"executionId",void 0);jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],tp.prototype,"input",void 0);jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],tp.prototype,"taskId",void 0);var fm=class{instrumentationId;taskId;constructor(t,n){this.taskId=t,this.instrumentationId=n}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsUUID)(),Ht("design:type",String)],fm.prototype,"instrumentationId",void 0);jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],fm.prototype,"taskId",void 0);var n_=class{taskId;constructor(t){this.taskId=t}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],n_.prototype,"taskId",void 0);var a_=class{taskId;constructor(t){this.taskId=t}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],a_.prototype,"taskId",void 0);var r_=class{taskId;constructor(t){this.taskId=t}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],r_.prototype,"taskId",void 0);var dm=class{checkpointHash;taskId;constructor(t,n){this.taskId=t,this.checkpointHash=n}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],dm.prototype,"checkpointHash",void 0);jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],dm.prototype,"taskId",void 0);var i_=class{taskId;constructor(t){this.taskId=t}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],i_.prototype,"taskId",void 0);var lm=class{checkpointCount;taskId;constructor(t,n){this.taskId=t,this.checkpointCount=n}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsNumber)(),Ht("design:type",Number)],lm.prototype,"checkpointCount",void 0);jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],lm.prototype,"taskId",void 0);var s_=class{taskId;constructor(t,n){this.taskId=n}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],s_.prototype,"taskId",void 0);var np=class{executionId;output;taskId;constructor(t,n,a){this.taskId=t,this.executionId=n,this.output=a}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsUUID)(),Ht("design:type",String)],np.prototype,"executionId",void 0);jt([(0,ke.IsOptional)(),(0,ke.IsString)(),Ht("design:type",String)],np.prototype,"output",void 0);jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],np.prototype,"taskId",void 0);var cm=class{executionId;taskId;constructor(t,n,a){this.taskId=n,this.executionId=a}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsUUID)(),Ht("design:type",String)],cm.prototype,"executionId",void 0);jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],cm.prototype,"taskId",void 0);var Ol=class{instrumentationId;output;taskId;instrumentedTaskId;constructor(t,n,a,r){this.taskId=t,this.instrumentationId=n,this.output=r,this.instrumentedTaskId=a}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsUUID)(),Ht("design:type",String)],Ol.prototype,"instrumentationId",void 0);jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],Ol.prototype,"output",void 0);jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],Ol.prototype,"taskId",void 0);jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],Ol.prototype,"instrumentedTaskId",void 0);var um=class{instrumentationId;taskId;constructor(t,n,a){this.taskId=n,this.instrumentationId=a}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsUUID)(),Ht("design:type",String)],um.prototype,"instrumentationId",void 0);jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],um.prototype,"taskId",void 0);import sze from"axios";import Eje from"axios";var kMe=dt(dd(),1);var Hm=dt(dd(),1);import*as px from"crypto";var ec=class{static hash(t){let n=Buffer.from(t,"utf8");return Hm.keccak256(n)}static hashRandomBits(t){if(!this.isValidSHA256(t.blockHash.replace("0x",""))||t.taskRequesterTimestamp<=0||t.dispatcherTimestamp<=0)throw`Invalid inputs for hashRandomBits:
103
+ `);let{statusCode:A,buffered:_}=yield w;if(A===200){if(t.once("socket",TOe),n.secureEndpoint){let D=n.servername||n.host;if(!D)throw new Error('Could not determine "servername"');return jp("Upgrading socket connection to TLS"),$Y.default.connect(Object.assign(Object.assign({},MOe(n,"host","hostname","path","port")),{socket:i,servername:D}))}return i}i.destroy();let k=new OY.default.Socket;return k.readable=!0,t.once("socket",D=>{jp("replaying proxy buffer for failed request"),xOe.default(D.listenerCount("data")>0),D.push(_),D.push(null)}),k})}};gd.default=Sw;function TOe(e){e.resume()}function EOe(e,t){return!!(!t&&e===80||t&&e===443)}function IOe(e){return typeof e=="string"?/^https:?$/i.test(e):!1}function MOe(e,...t){let n={},a;for(a in e)t.includes(a)||(n[a]=e[a]);return n}});var DY=g((Iw,NY)=>{"use strict";var COe=Iw&&Iw.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Tw=COe(RY());function Ew(e){return new Tw.default(e)}(function(e){e.HttpsProxyAgent=Tw.default,e.prototype=Tw.default.prototype})(Ew||(Ew={}));NY.exports=Ew});var LY=g((GXe,POe)=>{POe.exports={name:"mixpanel",description:"A simple server-side API for mixpanel",keywords:["mixpanel","analytics","api","stats"],version:"0.18.1",homepage:"https://github.com/mixpanel/mixpanel-node",author:"Carl Sverre",license:"MIT",main:"lib/mixpanel-node",directories:{lib:"lib"},repository:{type:"git",url:"git+ssh://git@github.com/mixpanel/mixpanel-node.git"},engines:{node:">=10.0"},scripts:{test:"vitest"},types:"./lib/mixpanel-node.d.ts",devDependencies:{"@vitest/coverage-v8":"^1.6.0",proxyquire:"^1.7.11",vitest:"^1.6.0"},dependencies:{"https-proxy-agent":"5.0.0"}}});var Mw=g(zb=>{zb.async_all=function(e,t,n){var a=e.length,r=null,i=[],s=function(d,p){d&&(r=r||[],r.push(d)),i.push(p),--a===0&&n(r,i)};if(a===0)n(r,i);else for(var o=0,l=e.length;o<l;o++)t(e[o],s)};zb.ensure_timestamp=function(e){if(!(e instanceof Date||typeof e=="number"))throw new Error("`time` property must be a Date or Unix timestamp and is only required for `import` endpoint");return e instanceof Date?e.getTime():e};zb.assert_logger=function(e){if(typeof e!="object")throw new TypeError('"logger" must be a valid Logger object');["trace","debug","info","warn","error"].forEach(t=>{if(typeof e[t]!="function")throw new TypeError(`Logger object missing "${t}" method`)})}});var Pw=g(Cw=>{var Vb=he("util"),{ensure_timestamp:kOe}=Mw();function _c(e,t){return t&&(t.$ignore_alias&&(e.$ignore_alias=t.$ignore_alias),t.$ignore_time&&(e.$ignore_time=t.$ignore_time),t.hasOwnProperty("$ip")&&(e.$ip=t.$ip),t.hasOwnProperty("$time")&&(e.$time=kOe(t.$time)),t.hasOwnProperty("$latitude")&&t.hasOwnProperty("$longitude")&&(e.$latitude=t.$latitude,e.$longitude=t.$longitude)),e}Cw.merge_modifiers=_c;Cw.ProfileHelpers=(e=Object)=>class extends e{get token(){return this.mixpanel.token}get config(){return this.mixpanel.config}_set(t,n,a,r,{identifiers:i,set_once:s=!1}){let o={};typeof t=="object"?(typeof n=="object"?(r=a,a=n):r=n,o=t):(o[t]=n,(typeof a=="function"||!a)&&(r=a));let l={$token:this.token,...i},d=s?"$set_once":"$set";l[d]=o,"ip"in o&&(l.$ip=o.ip,delete o.ip),o.$ignore_time&&(l.$ignore_time=o.$ignore_time,delete o.$ignore_time),l=_c(l,a),this.config.debug&&this.mixpanel.config.logger.debug(`Sending the following data to Mixpanel (${this.endpoint})`,{data:l}),this.mixpanel.send_request({method:"GET",endpoint:this.endpoint,data:l},r)}_delete_profile({identifiers:t,modifiers:n,callback:a}){let r={$delete:"",$token:this.token,...t};typeof n=="function"&&(a=n),r=_c(r,n),this.config.debug&&this.mixpanel.config.logger.debug("Deleting profile",{identifiers:t}),this.mixpanel.send_request({method:"GET",endpoint:this.endpoint,data:r},a)}_remove({identifiers:t,data:n,modifiers:a,callback:r}){let i={};if(typeof n!="object"||Vb.isArray(n)){this.config.debug&&this.mixpanel.config.logger.error("Invalid value passed to #remove - data must be an object with scalar values");return}for(let[s,o]of Object.entries(n))if(typeof o=="string"||typeof o=="number")i[s]=o;else{this.config.debug&&this.mixpanel.config.logger.error("Invalid argument passed to #remove - values must be scalar",{key:s,value:o});return}Object.keys(i).length!==0&&(n={$remove:i,$token:this.token,...t},typeof a=="function"&&(r=a),n=_c(n,a),this.config.debug&&this.mixpanel.config.logger.debug(`Sending the following data to Mixpanel (${this.endpoint})`,{data:n}),this.mixpanel.send_request({method:"GET",endpoint:this.endpoint,data:n},r))}_union({identifiers:t,data:n,modifiers:a,callback:r}){let i={};if(typeof n!="object"||Vb.isArray(n)){this.config.debug&&this.mixpanel.config.logger.error("Invalid value passed to #union - data must be an object with scalar or array values");return}for(let[o,l]of Object.entries(n))if(Vb.isArray(l)){var s=l.filter(function(d){return typeof d=="string"||typeof d=="number"});s.length>0&&(i[o]=s)}else typeof l=="string"||typeof l=="number"?i[o]=[l]:this.config.debug&&this.mixpanel.config.logger.error("Invalid argument passed to #union - values must be a scalar value or array",{key:o,value:l});Object.keys(i).length!==0&&(n={$union:i,$token:this.token,...t},typeof a=="function"&&(r=a),n=_c(n,a),this.config.debug&&this.mixpanel.config.logger.debug(`Sending the following data to Mixpanel (${this.endpoint})`,{data:n}),this.mixpanel.send_request({method:"GET",endpoint:this.endpoint,data:n},r))}_unset({identifiers:t,prop:n,modifiers:a,callback:r}){let i=[];if(Vb.isArray(n))i=n;else if(typeof n=="string")i=[n];else{this.config.debug&&this.mixpanel.config.logger.error("Invalid argument passed to #unset - must be a string or array",{prop:n});return}let s={$unset:i,$token:this.token,...t};typeof a=="function"&&(r=a),s=_c(s,a),this.config.debug&&this.mixpanel.config.logger.debug(`Sending the following data to Mixpanel (${this.endpoint})`,{data:s}),this.mixpanel.send_request({method:"GET",endpoint:this.endpoint,data:s},r)}}});var qY=g(BY=>{var{ProfileHelpers:OOe}=Pw(),kw=class extends OOe(){constructor(t){super(),this.mixpanel=t,this.endpoint="/groups"}set_once(t,n,a,r,i,s){let o={$group_key:t,$group_id:n};this._set(a,r,i,s,{identifiers:o,set_once:!0})}set(t,n,a,r,i,s){let o={$group_key:t,$group_id:n};this._set(a,r,i,s,{identifiers:o})}delete_group(t,n,a,r){let i={$group_key:t,$group_id:n};this._delete_profile({identifiers:i,modifiers:a,callback:r})}remove(t,n,a,r,i){let s={$group_key:t,$group_id:n};this._remove({identifiers:s,data:a,modifiers:r,callback:i})}union(t,n,a,r,i){let s={$group_key:t,$group_id:n};this._union({identifiers:s,data:a,modifiers:r,callback:i})}unset(t,n,a,r,i){let s={$group_key:t,$group_id:n};this._unset({identifiers:s,prop:a,modifiers:r,callback:i})}};BY.MixpanelGroups=kw});var UY=g(FY=>{var{merge_modifiers:Gb,ProfileHelpers:$Oe}=Pw(),Ow=class extends $Oe(){constructor(t){super(),this.mixpanel=t,this.endpoint="/engage"}set_once(t,n,a,r,i){let s={$distinct_id:t};this._set(n,a,r,i,{identifiers:s,set_once:!0})}set(t,n,a,r,i){let s={$distinct_id:t};this._set(n,a,r,i,{identifiers:s})}increment(t,n,a,r,i){var s={};if(typeof n=="object"){typeof a=="object"?(i=r,r=a):i=a;for(let[l,d]of Object.entries(n))isNaN(parseFloat(d))?this.mixpanel.config.debug&&this.mixpanel.config.logger.error("Invalid increment value passed to mixpanel.people.increment - must be a number",{key:l,value:d}):s[l]=d}else typeof a=="number"||!a?(a=a||1,s[n]=a,typeof r=="function"&&(i=r)):typeof a=="function"?(i=a,s[n]=1):(i=r,r=typeof a=="object"?a:{},s[n]=1);var o={$add:s,$token:this.mixpanel.token,$distinct_id:t};o=Gb(o,r),this.mixpanel.config.debug&&this.mixpanel.config.logger.debug("Sending the following data to Mixpanel (Engage)",{data:o}),this.mixpanel.send_request({method:"GET",endpoint:"/engage",data:o},i)}append(t,n,a,r,i){var s={};typeof n=="object"?(typeof a=="object"?(i=r,r=a):i=a,Object.keys(n).forEach(function(l){s[l]=n[l]})):(s[n]=a,typeof r=="function"&&(i=r));var o={$append:s,$token:this.mixpanel.token,$distinct_id:t};o=Gb(o,r),this.mixpanel.config.debug&&this.mixpanel.config.logger.debug("Sending the following data to Mixpanel (Engage)",{data:o}),this.mixpanel.send_request({method:"GET",endpoint:"/engage",data:o},i)}track_charge(t,n,a,r,i){if(typeof a=="function"||!a?(i=a||void 0,a={}):(typeof r=="function"||!r)&&(i=r||void 0,(a.$ignore_time||a.hasOwnProperty("$ip"))&&(r={},Object.keys(a).forEach(function(l){r[l]=a[l],delete a[l]}))),typeof n!="number"&&(n=parseFloat(n),isNaN(n))){this.mixpanel.config.logger.error("Invalid value passed to mixpanel.people.track_charge - must be a number");return}if(a.$amount=n,a.hasOwnProperty("$time")){var s=a.$time;Object.prototype.toString.call(s)==="[object Date]"&&(a.$time=s.toISOString())}var o={$append:{$transactions:a},$token:this.mixpanel.token,$distinct_id:t};o=Gb(o,r),this.mixpanel.config.debug&&this.mixpanel.config.logger.debug("Sending the following data to Mixpanel (Engage)",{data:o}),this.mixpanel.send_request({method:"GET",endpoint:"/engage",data:o},i)}clear_charges(t,n,a){var r={$set:{$transactions:[]},$token:this.mixpanel.token,$distinct_id:t};typeof n=="function"&&(a=n),r=Gb(r,n),this.mixpanel.config.debug&&this.mixpanel.config.logger.debug("Clearing this user's charges",{$distinct_id:t}),this.mixpanel.send_request({method:"GET",endpoint:"/engage",data:r},a)}delete_user(t,n,a){let r={$distinct_id:t};this._delete_profile({identifiers:r,modifiers:n,callback:a})}remove(t,n,a,r){let i={$distinct_id:t};this._remove({identifiers:i,data:n,modifiers:a,callback:r})}union(t,n,a,r){let i={$distinct_id:t};this._union({identifiers:i,data:n,modifiers:a,callback:r})}unset(t,n,a,r){let i={$distinct_id:t};this._unset({identifiers:i,prop:n,modifiers:a,callback:r})}};FY.MixpanelPeople=Ow});var zY=g((JXe,HY)=>{var ROe=he("querystring"),$w=he("buffer").Buffer,jY=he("http"),Rw=he("https"),NOe=DY(),DOe=he("url"),LOe=LY(),{async_all:BOe,ensure_timestamp:Nw,assert_logger:qOe}=Mw(),{MixpanelGroups:FOe}=qY(),{MixpanelPeople:UOe}=UY(),jOe={test:!1,debug:!1,verbose:!1,host:"api.mixpanel.com",protocol:"https",path:"",keepAlive:!0,geolocate:!1,logger:console},HOe=function(e,t){if(!e)throw new Error("The Mixpanel Client needs a Mixpanel token: `init(token)`");let n={token:e,config:{...jOe}},{keepAlive:a}=n.config,r=50,i={http:jY,https:Rw},s={http:new jY.Agent({keepAlive:a}),https:new Rw.Agent({keepAlive:a})},o=process.env.HTTPS_PROXY||process.env.HTTP_PROXY,l=o?new NOe(Object.assign(DOe.parse(o),{keepAlive:a})):null;n.send_request=function(b,w){w=w||function(){};let A=$w.from(JSON.stringify(b.data)).toString("base64"),_=b.endpoint,k=(b.method||"GET").toUpperCase(),D={ip:n.config.geolocate?1:0,verbose:n.config.verbose?1:0},F=n.config.key,H=n.config.secret,B=i[n.config.protocol],z={host:n.config.host,port:n.config.port,headers:{},method:k},fe;if(!B)throw new Error("Mixpanel Initialization Error: Unsupported protocol "+n.config.protocol+". Supported protocols are: "+Object.keys(i));if(k==="POST"?(A="data="+A,z.headers["Content-Type"]="application/x-www-form-urlencoded",z.headers["Content-Length"]=$w.byteLength(A)):k==="GET"&&(D.data=A),H){if(B!==Rw)throw new Error("Must use HTTPS if authenticating with API Secret");let W=$w.from(H+":").toString("base64");z.headers.Authorization="Basic "+W}else if(F)D.api_key=F;else if(_==="/import")throw new Error("The Mixpanel Client needs a Mixpanel API Secret when importing old events: `init(token, { secret: ... })`");z.agent=l||s[n.config.protocol],n.config.test&&(D.test=1),z.path=n.config.path+_+"?"+ROe.stringify(D),fe=B.request(z,function(W){var ae="";W.on("data",function(X){ae+=X}),W.on("end",function(){var X;if(n.config.verbose)try{var K=JSON.parse(ae);K.status!=1&&(X=new Error("Mixpanel Server Error: "+K.error))}catch{X=new Error("Could not parse response from Mixpanel")}else X=ae!=="1"?new Error("Mixpanel Server Error: "+ae):void 0;w(X)})}),fe.on("error",function(W){n.config.debug&&n.config.logger.error("Got Error: "+W.message),w(W)}),k==="POST"&&fe.write(A),fe.end()},n.send_event_request=function(b,w,A,_){A.token=n.token,A.mp_lib="node",A.$lib_version=LOe.version;var k={event:w,properties:A};n.config.debug&&n.config.logger.debug("Sending the following event to Mixpanel",{data:k}),n.send_request({method:"GET",endpoint:b,data:k},_)};var d=function(b,w){for(var A=[],_=0,k=b.length;_<k;)A.push(b.slice(_,_+=w));return A},p=function(b,w){var A=b.event_list,_=b.endpoint,k=b.max_batch_size?Math.min(r,b.max_batch_size):r,D=b.max_concurrent_requests||b.max_batch_size>r&&Math.ceil(b.max_batch_size/r),F=d(A,k),H=D?d(F,D):[F],B=F.length,z=H.length;function fe(ae,X){ae.length>0&&(ae=ae.map(function(K){var N=K.properties;return(_==="/import"||K.properties.time)&&(K.properties.time=Nw(K.properties.time)),K.properties.token=K.properties.token||n.token,K}),n.send_request({method:"POST",endpoint:_,data:ae},X))}function W(ae){var X=H[ae],K=function(N,y){ae+=1,ae===z?w&&w(N,y):W(ae)};BOe(X,fe,K)}W(0),n.config.debug&&n.config.logger.debug("Sending "+A.length+" events to Mixpanel in "+B+" batches of events and "+z+" batches of requests")};return n.track=function(b,w,A){(!w||typeof w=="function")&&(A=w,w={}),w.time&&(w.time=Nw(w.time)),n.send_event_request("/track",b,w,A)},n.track_batch=function(b,w,A){w=w||{},typeof w=="function"&&(A=w,w={});var _={event_list:b,endpoint:"/track",max_concurrent_requests:w.max_concurrent_requests,max_batch_size:w.max_batch_size};p(_,A)},n.import=function(b,w,A,_){(!A||typeof A=="function")&&(_=A,A={}),A.time=Nw(w),n.send_event_request("/import",b,A,_)},n.import_batch=function(b,w,A){var _;(typeof w=="function"||!w)&&(A=w,w={}),_={event_list:b,endpoint:"/import",max_concurrent_requests:w.max_concurrent_requests,max_batch_size:w.max_batch_size},p(_,A)},n.alias=function(b,w,A){var _={distinct_id:b,alias:w};n.track("$create_alias",_,A)},n.groups=new FOe(n),n.people=new UOe(n),n.set_config=function(b){if(b&&b.logger!==void 0&&qOe(b.logger),Object.assign(n.config,b),b.host){let[w,A]=b.host.split(":");n.config.host=w,A&&(n.config.port=Number(A))}},t&&n.set_config(t),n};HY.exports={init:HOe}});import ye from"colors";var Qie=dt(Dd(),1),e0e=dt(a8(),1),{format:oNe,createLogger:fNe,transports:dNe}=Qie;process.setMaxListeners(0);var $Me=dt(Dd(),1);var Fn;(function(e){e.RUST="rs",e.C="c",e.JS="js",e.API="api",e.PYTHON="py"})(Fn||(Fn={}));var qf;(function(e){e.API="api"})(qf||(qf={}));var t0e={...Fn,...qf};var cNe=Object.values(t0e),uNe=Object.values(Fn);var RM;(function(e){e.JSON="application/json",e.WASM="application/wasm",e.PLAIN_TXT="text/plain",e.JS="application/x-javascript",e.TAR="application/x-tar"})(RM||(RM={}));var NM;(function(e){e.JSON="json",e.WASM="wasm",e.PLAIN_TXT="txt",e.JS="js",e.DTA="dta",e.PY="py",e.TAR="tar"})(NM||(NM={}));var SP=dt(w8(),1);async function TP(e,t){if(!(0,SP.satisfies)(process.version,e)){let n=`Nodejs required version ${e} not satisfied with current version ${process.version}.`;t?t.error(n):console.log(n),process.exit(1)}}import oDe from"node:os";var EP;(function(e){e.LEDGER="ledger",e.HTTP_ADAPTER="http-adapter",e.EVENTS_ADAPTER="events-adapter",e.FILESYSTEM_ADAPTER="filesystem-adapter",e.WASM_CHECKPOINTER="wasm-checkpointer",e.WASM_INSTRUMENTER="wasm-instrumenter",e.WASM_RUNNER="wasm-runner"})(EP||(EP={}));var _2;(function(e){e.FAILED="failed",e.SUCCEED="succeed",e.RUNNING="running"})(_2||(_2={}));var IP;(function(e){e.MINIO="minio",e.S3="s3"})(IP||(IP={}));var MP="1099511627776",CP="65536",PP="524288",kP="1024";var OP;(function(e){e.TASK_CREATED="task_created",e.TASK_SOLVED="task_solved",e.FILE_SYSTEM="file_system",e.DISPATCH_TASK="dispatch_task",e.DISPATCH_API_TASK="dispatch_api_task",e.MESSAGE_SAVED="message_saved",e.COMPUTED_OUTCOME="computed_outcome",e.API_FETCH="api_fetch",e.API_OUTCOME="api_outcome",e.API_SOLVED="api_solved",e.READY_TO_SHUTDOWN="ready_to_shutdown",e.INVOICE="invoice",e.SLASH_RESPONSE="slash_response",e.ENTITLEMENT="entitlement",e.HEALTH_CHECK="health_check",e.RUNNER_TASK_EXECUTED="runner_task_executed",e.DEPLOYER_EXECUTE_TASK="deployer_execute_task",e.DEPLOYER_TASK_EXECUTED="deployer_task_executed",e.HTTP_ADAPTER_TASK_EXECUTED="http_adapter_task_executed",e.HTTP_ADAPTER_TASK_INSTRUMENTED="http_adapter_task_instrumented",e.HTTP_ADAPTER_TASK_PUSHED="http_adapter_task_pushed",e.HTTP_ADAPTER_TASK_PULLED="http_adapter_task_pulled",e.HTTP_ADAPTER_TASK_CHECKPOINTED="http_adapter_task_checkpointed",e.HTTP_ADAPTER_TASK_CHECKPOINTS_LISTED="http_adapter_task_checkpoints_listed",e.HTTP_ADAPTER_READY_TO_SHUTDOWN="http_adapter_ready_to_shutdown",e.EVENTS_ADAPTER_TASK_EXECUTED="events_adapter_task_executed",e.EVENTS_ADAPTER_TASK_INSTRUMENTED="events_adapter_task_instrumented",e.EVENTS_ADAPTER_TASK_PUSHED="events_adapter_task_pushed",e.EVENTS_ADAPTER_TASK_PULLED="events_adapter_task_pulled",e.EVENTS_ADAPTER_TASK_CHECKPOINTED="events_adapter_task_checkpointed",e.EVENTS_ADAPTER_TASK_CHECKPOINTS_LISTED="events_adapter_task_checkpoints_listed",e.EVENTS_ADAPTER_COMPUTED_OUTCOME="events_adapter_compute_outcome",e.EVENTS_ADAPTER_TASK_CREATED="events_adapter_task_created",e.EVENTS_ADAPTER_NODE_DEREGISTERED="events_adapter_node_deregistered",e.EVENTS_ADAPTER_SERVICE_STARTED_CHECK="events_adapter_service_started_check",e.DISPATCHER_TASK_SOLVED_CLEAR="dispatcher_task_solved_clear",e.DISPATCHER_TASK_CREATED="dispatcher_task_created",e.WASM_INSTRUMENTER_INSTRUMENT_TASK="wasm_instrumenter_instrument_task",e.WASM_INSTRUMENTER_TASK_INSTRUMENTED="wasm_instrumenter_task_instrumented",e.FILESYSTEM_ADAPTER_PUSH_TASK="filesystem_adapter_push_task",e.FILESYSTEM_ADAPTER_TASK_PUSHED="filesystem_adapter_task_pushed",e.FILESYSTEM_ADAPTER_PULL_TASK="filesystem_adapter_pull_task",e.FILESYSTEM_ADAPTER_TASK_PULLED="filesystem_adapter_task_pulled",e.FILESYSTEM_ADAPTER_SERVICE_STARTED_CHECK="filesystem_adapter_service_started_check",e.WASM_CHECKPOINTER_CHECKPOINT_TASK="wasm_checkpointer_checkpoint_task",e.WASM_CHECKPOINTER_LIST_TASK_CHECKPOINTS="wasm_checkpointer_list_task_checkpoints",e.TRANSCRIPT_WRITER_SAVE_MESSAGE="transcript_writer_save_message",e.TRANSCRIPT_WRITER_INVOICE="transcript_writer_save_invoice",e.SEQUENCER_MESSAGE_SAVED="sequencer_message_saved",e.VERIFICATION_MESSAGE_SAVED="verification_message_saved",e.VERIFICATION_VALIDATE_MESSAGE="verification_validate_message",e.VERIFICATION_REVEAL_SOLUTION="verification_reveal_solution",e.VERIFICATION_ADJUDICATION_OUTCOME="verification_adjudication_outcome",e.VERIFICATION_ERRORS="verification_errors",e.LEDGER_SHUTDOWN="ledger_shutdown",e.LEDGER_SERVICE_STARTED="ledger_service_started"})(OP||(OP={}));var ir;(function(e){e.TASK_INSTRUMENTED="task_instrumented",e.TASK_CREATED="task_created",e.API_TASK_CREATED="api_task_created",e.TASK_EXECUTED="task_executed",e.TASK_PUSHED="task_pushed",e.TASK_PULLED="task_pulled",e.TASK_CHECKPOINTED="task_checkpointed",e.TASK_CHECKPOINTS_LISTED="task_checkpoints_listed",e.COMPUTED_OUTCOME="computed_outcome",e.ADJUDICATION_OUTCOME="adjudication_outcome",e.MESSAGE_SAVED="message_saved",e.TASK_SOLVED="task_solved",e.TASK_SOLVED_CLEAR="task_solved_clear",e.NODE_OUTCOME="node_outcome",e.PLATFORM_ERRORS="errors",e.REVEAL_SOLUTIONS="reveal_solutions",e.SOLUTIONS_REVEALED="solutions_revealed",e.API_FETCHER_OUTCOME="api_fetcher_outcome",e.API_SOLVED="api_solved",e.API_OUTCOME="api_outcome",e.NODE_DEREGISTERED="node_deregistered",e.READY_TO_SHUTDOWN="ready_to_shutdown",e.EXECUTION_COMPLETED="execution_completed",e.SERVICE_STARTED="service_started",e.INVOICE="invoice",e.ENTITLEMENT_REQ="entitlement_req",e.ENTITLEMENT_RES="entitlement_res",e.HEALTH_CHECK="health_check",e.EXECUTION_METADATA="execution_metadata",e.REQUEST_SLASH="request_slash",e.SLASH_RESPONSE="slash_response"})(ir||(ir={}));var $P;(function(e){e.SHUTDOWN="shutdown",e.LIST_TASK_CHECKPOINTS="list_task_checkpoints",e.EXECUTE_TASK="execute_task",e.CHECKPOINT_TASK="checkpoint_task",e.INSTRUMENT_TASK="instrument_task",e.PUSH_TASK="push_task",e.PULL_TASK="pull_task",e.DISPATCH_TASK="dispatch_task",e.DISPATCH_API_TASK="dispatch_api_task",e.SAVE_MESSAGE="save_message",e.REVEAL_SOLUTION="reveal_solution",e.VALIDATE_MESSAGE="validate_message",e.API_FETCH="api_fetch",e.ENTITLEMENT="entitlement",e.HEALTH_CHECK="health_check",e.ADJUDICATION_OUTCOME="adjudication_outcome"})($P||($P={}));var RP;(function(e){e.ERRORS="errors",e.TASK_INSTRUMENTED="task_instrumented",e.TASK_CREATED="task_created",e.API_TASK_CREATED="api_task_created",e.TASK_EXECUTED="task_executed",e.TASK_PUSHED="task_pushed",e.TASK_SOLVED="task_solved",e.TASK_SOLVED_CLEAR="task_solved_clear",e.TASK_PULLED="task_pulled",e.TASK_CHECKPOINTED="task_checkpointed",e.TASK_CHECKPOINTS_LISTED="task_checkpoints_listed",e.COMPUTED_OUTCOME="computed_outcome",e.ADJUDICATION_OUTCOME="adjudication_outcome",e.MESSAGE_SAVED="message_saved",e.API_FETCHER_OUTCOME="api_fetcher_outcome",e.API_SOLVED="api_solved",e.API_OUTCOME="api_outcome",e.NODE_DEREGISTERED="node_deregistered",e.READY_TO_SHUTDOWN="ready_to_shutdown",e.SERVICE_STARTED="service_started",e.INVOICES="invoice",e.ENTITLEMENTS_REQ="entitlement_req",e.ENTITLEMENTS_RES="entitlement_res",e.HEALTH_CHECK="health_check",e.REQUEST_SLASH="request_slash",e.SLASH_RESPONSE="slash_response",e.SHUTDOWN="shutdown",e.LIST_TASK_CHECKPOINTS="list_task_checkpoints",e.EXECUTE_TASK="execute_task",e.CHECKPOINT_TASK="checkpoint_task",e.INSTRUMENT_TASK="instrument_task",e.PUSH_TASK="push_task",e.PULL_TASK="pull_task",e.DISPATCH_TASK="dispatch_task",e.DISPATCH_API_TASK="dispatch_api_task",e.SAVE_MESSAGE="save_message",e.REVEAL_SOLUTION="reveal_solution",e.VALIDATE_MESSAGE="validate_message",e.API_FETCH="api_fetch",e.DUMMY="DUMMY"})(RP||(RP={}));var NP;(function(e){e.VALIDATION_ERROR="validation_error"})(NP||(NP={}));var lu;(function(e){e.GAME_PENDING="GamePending",e.READY_FOR_INVOICE="ReadyForInvoice",e.ERROR="Error"})(lu||(lu={}));var DP;(function(e){let t;(function(a){a.Pay="pay",a.Charge="charge",a.Penalty="penalty"})(t=e.Operation||(e.Operation={}));let n;(function(a){a.IS_USER_REGISTER="isUserRegister"})(n=e.EntitlementOperation||(e.EntitlementOperation={}))})(DP||(DP={}));var LP;(function(e){e.Pay="pay",e.Charge="charge",e.Penalty="penalty"})(LP||(LP={}));var yDe=[ir.TASK_SOLVED,ir.TASK_CREATED,ir.API_TASK_CREATED,ir.NODE_OUTCOME,ir.SOLUTIONS_REVEALED,ir.REVEAL_SOLUTIONS,ir.API_OUTCOME,ir.EXECUTION_COMPLETED,ir.EXECUTION_METADATA,ir.ADJUDICATION_OUTCOME];var Hv=dt(Sa(),1);function j0(){return function(e,t){(0,Hv.registerDecorator)({name:"IsUnixTimestamp",target:e.constructor,propertyName:t,validator:{validate(n){let r=n,i=new Date(r);return!isNaN(i.getTime())&&r>16725312e5}}})}}function zv(){return function(e,t){(0,Hv.registerDecorator)({name:"IsUnixTimestamp",target:e.constructor,propertyName:t,validator:{validate(n){let r=n,i=new Date(r);return!isNaN(i.getTime())&&r>1672531200}}})}}var KUe=dt(po(),1),Jo=dt(mo(),1),me=dt(Sa(),1),gt=function(e,t,n,a){var r=arguments.length,i=r<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,a);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(r<3?s(i):r>3?s(t,n,i):s(t,n))||i);return r>3&&i&&Object.defineProperty(t,n,i),i},vt=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},Yv;(function(e){e.FAILED="failed",e.SUCCEED="succeed",e.RUNNING="running"})(Yv||(Yv={}));var Sr=class{iv;ephemPublicKey;ciphertext;mac;constructor(t,n,a,r){this.iv=t,this.ephemPublicKey=n,this.ciphertext=a,this.mac=r}};gt([(0,me.IsNotEmpty)(),(0,me.IsString)(),vt("design:type",String)],Sr.prototype,"iv",void 0);gt([(0,me.IsNotEmpty)(),(0,me.IsString)(),vt("design:type",String)],Sr.prototype,"ephemPublicKey",void 0);gt([(0,me.IsNotEmpty)(),(0,me.IsString)(),vt("design:type",String)],Sr.prototype,"ciphertext",void 0);gt([(0,me.IsNotEmpty)(),(0,me.IsString)(),vt("design:type",String)],Sr.prototype,"mac",void 0);var Nt=class{v;r;s;constructor(t,n,a){this.v=t,this.r=n,this.s=a}};gt([(0,me.IsNotEmpty)(),(0,me.IsNumber)(),vt("design:type",Number)],Nt.prototype,"v",void 0);gt([(0,me.IsNotEmpty)(),(0,me.IsString)(),vt("design:type",String)],Nt.prototype,"r",void 0);gt([(0,me.IsNotEmpty)(),(0,me.IsString)(),vt("design:type",String)],Nt.prototype,"s",void 0);var Yo=class{memoryGrowDelta;call;frame;steps;constructor(t,n,a,r){this.call=t,this.frame=n,this.steps=a,this.memoryGrowDelta=r}};gt([(0,me.IsNumber)(),(0,me.IsOptional)(),vt("design:type",Number)],Yo.prototype,"memoryGrowDelta",void 0);gt([(0,me.IsNumber)(),(0,me.IsNotEmpty)(),vt("design:type",Number)],Yo.prototype,"call",void 0);gt([(0,me.IsNumber)(),(0,me.IsNotEmpty)(),vt("design:type",Number)],Yo.prototype,"frame",void 0);gt([(0,me.IsNumber)(),(0,me.IsNotEmpty)(),vt("design:type",Number)],Yo.prototype,"steps",void 0);var Zo=class{call;frame;gas;memory;constructor(t,n,a,r){this.call=t,this.frame=n,this.gas=a,this.memory=r}};gt([(0,me.IsNumber)(),(0,me.IsNotEmpty)(),vt("design:type",Number)],Zo.prototype,"call",void 0);gt([(0,me.IsNumber)(),(0,me.IsNotEmpty)(),vt("design:type",Number)],Zo.prototype,"frame",void 0);gt([(0,me.IsNumber)(),(0,me.IsNotEmpty)(),vt("design:type",Number)],Zo.prototype,"gas",void 0);gt([(0,me.IsNumber)(),(0,me.IsNotEmpty)(),vt("design:type",Number)],Zo.prototype,"memory",void 0);var Yf=class{call;frame;memory;constructor(t,n,a){this.call=t,this.frame=n,this.memory=a}};gt([(0,me.IsNumber)(),(0,me.IsNotEmpty)(),vt("design:type",Number)],Yf.prototype,"call",void 0);gt([(0,me.IsNumber)(),(0,me.IsNotEmpty)(),vt("design:type",Number)],Yf.prototype,"frame",void 0);gt([(0,me.IsNumber)(),(0,me.IsNotEmpty)(),vt("design:type",Number)],Yf.prototype,"memory",void 0);var X6=class{protocol;constructor(t){this.protocol=t}};gt([(0,me.IsString)(),(0,me.IsNotEmpty)(),vt("design:type",String)],X6.prototype,"protocol",void 0);var f0=class{last;limits;peak;versions;constructor(t,n,a,r){this.last=t,this.limits=n,this.peak=a,this.versions=r}};gt([(0,me.ValidateNested)(),(0,Jo.Type)(()=>Yo),vt("design:type",Yo)],f0.prototype,"last",void 0);gt([(0,me.ValidateNested)(),(0,Jo.Type)(()=>Zo),vt("design:type",Zo)],f0.prototype,"limits",void 0);gt([(0,me.ValidateNested)(),(0,Jo.Type)(()=>Yf),vt("design:type",Yf)],f0.prototype,"peak",void 0);gt([(0,me.IsOptional)(),(0,me.ValidateNested)(),(0,Jo.Type)(()=>X6),vt("design:type",X6)],f0.prototype,"versions",void 0);var Xo=class{senderAddress;status;output;metering;constructor(t,n,a,r){this.senderAddress=t,this.status=n,this.output=a,this.metering=r}};gt([(0,me.IsNotEmpty)(),(0,me.IsEthereumAddress)(),vt("design:type",String)],Xo.prototype,"senderAddress",void 0);gt([(0,me.IsNotEmpty)(),(0,me.IsEnum)(Yv),vt("design:type",String)],Xo.prototype,"status",void 0);gt([(0,me.IsOptional)(),(0,me.IsString)(),vt("design:type",String)],Xo.prototype,"output",void 0);gt([(0,me.IsOptional)(),(0,me.ValidateNested)(),(0,Jo.Type)(()=>f0),vt("design:type",f0)],Xo.prototype,"metering",void 0);var Ml=class{signature;clearTextSolution;constructor(t,n){this.signature=t,this.clearTextSolution=n}};gt([(0,me.ValidateNested)(),(0,Jo.Type)(()=>Nt),vt("design:type",Nt)],Ml.prototype,"signature",void 0);gt([(0,me.ValidateNested)(),(0,Jo.Type)(()=>Xo),vt("design:type",Xo)],Ml.prototype,"clearTextSolution",void 0);var fr=class{blockNumber;selectionStrategy;setNodes;constructor(t,n,a){this.blockNumber=t,this.selectionStrategy=n,this.setNodes=a}};gt([(0,me.IsNotEmpty)(),(0,me.Min)(0),vt("design:type",Number)],fr.prototype,"blockNumber",void 0);gt([(0,me.IsNotEmpty)(),(0,me.IsString)(),vt("design:type",String)],fr.prototype,"selectionStrategy",void 0);gt([(0,me.ArrayNotEmpty)(),(0,me.IsNotEmpty)({each:!0}),(0,me.IsEthereumAddress)({each:!0}),vt("design:type",Array)],fr.prototype,"setNodes",void 0);var Ba=class{gas;call;frame;memory;constructor(t,n,a,r){this.gas=t,this.call=n,this.frame=a,this.memory=r}};gt([(0,me.IsNotEmpty)(),(0,me.IsString)(),vt("design:type",String)],Ba.prototype,"gas",void 0);gt([(0,me.IsNotEmpty)(),(0,me.IsString)(),vt("design:type",String)],Ba.prototype,"call",void 0);gt([(0,me.IsNotEmpty)(),(0,me.IsString)(),vt("design:type",String)],Ba.prototype,"frame",void 0);gt([(0,me.IsNotEmpty)(),(0,me.IsString)(),vt("design:type",String)],Ba.prototype,"memory",void 0);var qa=class{reward;requiredSolutions;totalSolutions;executionTimeout;constructor(t,n,a,r){this.reward=t,this.requiredSolutions=n,this.totalSolutions=a,this.executionTimeout=r}};gt([(0,me.IsNotEmpty)(),(0,me.IsString)(),vt("design:type",String)],qa.prototype,"reward",void 0);gt([(0,me.Min)(1),(0,me.IsNotEmpty)(),(0,me.IsNumber)(),vt("design:type",Number)],qa.prototype,"requiredSolutions",void 0);gt([(0,me.Min)(1),(0,me.IsNotEmpty)(),(0,me.IsNumber)(),vt("design:type",Number)],qa.prototype,"totalSolutions",void 0);gt([(0,me.Min)(1),(0,me.IsNotEmpty)(),(0,me.IsNumber)(),vt("design:type",Number)],qa.prototype,"executionTimeout",void 0);var Zf=class{request;response;constructor(t,n){this.request=t,this.response=n}};gt([(0,me.IsNotEmpty)(),(0,me.IsNumber)(),vt("design:type",Number)],Zf.prototype,"request",void 0);gt([(0,me.IsNotEmpty)(),(0,me.IsNumber)(),vt("design:type",Number)],Zf.prototype,"response",void 0);var Fj;(function(e){e.MINIO="minio",e.S3="s3"})(Fj||(Fj={}));var Fa=dt(Sa(),1);import{v4 as mSe}from"uuid";var Cl=function(e,t,n,a){var r=arguments.length,i=r<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,a);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(r<3?s(i):r>3?s(t,n,i):s(t,n))||i);return r>3&&i&&Object.defineProperty(t,n,i),i},Pl=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},d0=class{msgType;messageId;payload;msgTimestamp=Date.now();constructor(t,n){this.msgType=this.constructor.name,this.messageId=n||mSe(),this.payload=t}};Cl([(0,Fa.IsNotEmpty)(),(0,Fa.IsString)(),Pl("design:type",String)],d0.prototype,"msgType",void 0);Cl([(0,Fa.IsOptional)(),(0,Fa.IsUUID)(),Pl("design:type",String)],d0.prototype,"messageId",void 0);Cl([(0,Fa.ValidateNested)(),Pl("design:type",Object)],d0.prototype,"payload",void 0);Cl([j0(),Pl("design:type",Number)],d0.prototype,"msgTimestamp",void 0);var sm=class extends d0{error;constructor(t,n,a){super(n,a),this.error=t}};Cl([(0,Fa.IsNotEmpty)(),(0,Fa.IsString)(),Pl("design:type",String)],sm.prototype,"error",void 0);var Zv=class extends d0{error;constructor(t,n,a){super(n,a),this.error=t}};Cl([(0,Fa.IsNotEmpty)(),(0,Fa.IsString)(),Pl("design:type",String)],Zv.prototype,"error",void 0);var eje=dt(po(),1),se=dt(Sa(),1);var bo;(function(e){e.EVM="evm",e.AVALANCHE="avalanche"})(bo||(bo={}));var c0=dt(mo(),1),He=function(e,t,n,a){var r=arguments.length,i=r<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,a);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(r<3?s(i):r>3?s(t,n,i):s(t,n))||i);return r>3&&i&&Object.defineProperty(t,n,i),i},ze=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},l0;(function(e){e.TASK_CREATED="task_created",e.API_TASK_CREATED="api_task_created",e.NODE_OUTCOME="node_outcome",e.TASK_SOLVED="task_solved",e.API_OUTCOME="api_outcome",e.SOLUTIONS_REVEALED="solutions_revealed",e.EXECUTION_COMPLETED="execution_completed",e.ADJUDICATION_OUTCOME="adjudication_outcome"})(l0||(l0={}));var Ua=class{type;executionId;message;msgHash;signature;sequencerAddress;timestamp;constructor(t,n,a,r,i,s,o){this.type=t,this.executionId=n,this.message=r,this.msgHash=a,this.signature=i,this.timestamp=o,this.sequencerAddress=s}};He([(0,se.IsNotEmpty)(),(0,se.IsEnum)(l0),ze("design:type",String)],Ua.prototype,"type",void 0);He([(0,se.IsUUID)(),(0,se.IsNotEmpty)(),ze("design:type",String)],Ua.prototype,"executionId",void 0);He([(0,se.ValidateNested)(),ze("design:type",Object)],Ua.prototype,"message",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsHash)("sha256"),ze("design:type",String)],Ua.prototype,"msgHash",void 0);He([(0,se.ValidateNested)(),(0,c0.Type)(()=>Nt),ze("design:type",Nt)],Ua.prototype,"signature",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsEthereumAddress)(),ze("design:type",String)],Ua.prototype,"sequencerAddress",void 0);He([j0(),(0,se.IsNotEmpty)(),ze("design:type",Number)],Ua.prototype,"timestamp",void 0);var nn=class{type="dispatch_task";taskId;executionId;msgHash;signature;limits;econParams;workers;dispatcherTimestamp;taskRequesterTimestamp;ledgerName;blockHash;blockNumber;chainId;nodeRegistryContractAddress;taskRegistryContractAddress;taskAuthorizationContractAddress;taskRequesterAddress;taskPath;taskVersion;signedRequestBody;senderAddress;input;constructor(t,n,a,r,i,s,o,l,d,p,b,w,A,_,k,D,F,H,B,z,fe,W){this.taskId=t,this.executionId=n,this.msgHash=a,this.signature=r,this.limits=i,this.econParams=s,this.workers=o,this.dispatcherTimestamp=l,this.taskRequesterTimestamp=d,this.ledgerName=p,this.blockHash=b,this.blockNumber=w,this.chainId=A,this.nodeRegistryContractAddress=_,this.taskRegistryContractAddress=k,this.taskAuthorizationContractAddress=D,this.taskRequesterAddress=F,this.taskPath=H,this.taskVersion=B,this.signedRequestBody=W,this.senderAddress=z,this.input=fe}};He([(0,se.IsNotEmpty)(),(0,se.IsString)(),ze("design:type",String)],nn.prototype,"taskId",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsUUID)(),ze("design:type",String)],nn.prototype,"executionId",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsHash)("sha256"),ze("design:type",String)],nn.prototype,"msgHash",void 0);He([(0,se.ValidateNested)(),(0,c0.Type)(()=>Nt),ze("design:type",Nt)],nn.prototype,"signature",void 0);He([(0,se.ValidateNested)(),(0,c0.Type)(()=>Ba),ze("design:type",Ba)],nn.prototype,"limits",void 0);He([(0,se.ValidateNested)(),(0,c0.Type)(()=>qa),ze("design:type",qa)],nn.prototype,"econParams",void 0);He([(0,se.ValidateNested)(),(0,c0.Type)(()=>fr),ze("design:type",fr)],nn.prototype,"workers",void 0);He([(0,se.IsNotEmpty)(),zv(),ze("design:type",Number)],nn.prototype,"dispatcherTimestamp",void 0);He([(0,se.IsNotEmpty)(),zv(),ze("design:type",Number)],nn.prototype,"taskRequesterTimestamp",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsEnum)(bo),ze("design:type",String)],nn.prototype,"ledgerName",void 0);He([(0,se.IsNotEmpty)(),ze("design:type",String)],nn.prototype,"blockHash",void 0);He([(0,se.IsNotEmpty)(),(0,se.Min)(0),ze("design:type",Number)],nn.prototype,"blockNumber",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsString)(),ze("design:type",String)],nn.prototype,"chainId",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsEthereumAddress)(),ze("design:type",String)],nn.prototype,"nodeRegistryContractAddress",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsEthereumAddress)(),ze("design:type",String)],nn.prototype,"taskRegistryContractAddress",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsEthereumAddress)(),ze("design:type",String)],nn.prototype,"taskAuthorizationContractAddress",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsEthereumAddress)(),ze("design:type",String)],nn.prototype,"taskRequesterAddress",void 0);He([(0,se.IsOptional)(),ze("design:type",String)],nn.prototype,"taskPath",void 0);He([(0,se.IsOptional)(),(0,se.Min)(0),ze("design:type",Number)],nn.prototype,"taskVersion",void 0);He([(0,se.IsOptional)(),ze("design:type",Object)],nn.prototype,"signedRequestBody",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsEthereumAddress)(),ze("design:type",String)],nn.prototype,"senderAddress",void 0);He([(0,se.IsOptional)(),(0,se.Allow)(),ze("design:type",String)],nn.prototype,"input",void 0);var In=class{type="dispatch_task";taskId;executionId;msgHash;signature;ledgerName;blockHash;blockNumber;chainId;taskRegistryContractAddress;taskAuthorizationContractAddress;taskRequesterAddress;taskPath;taskVersion;senderAddress;executionTimeout;input;constructor(t,n,a,r,i,s,o,l,d,p,b,w,A,_,k,D){this.taskId=t,this.executionId=n,this.msgHash=a,this.signature=r,this.executionTimeout=k,this.ledgerName=s,this.blockHash=o,this.blockNumber=l,this.chainId=d,this.taskRegistryContractAddress=p,this.taskAuthorizationContractAddress=b,this.taskRequesterAddress=w,this.taskPath=A,this.taskVersion=_,this.senderAddress=i,this.input=D}};He([(0,se.IsNotEmpty)(),(0,se.IsString)(),ze("design:type",String)],In.prototype,"taskId",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsUUID)(),ze("design:type",String)],In.prototype,"executionId",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsHash)("sha256"),ze("design:type",String)],In.prototype,"msgHash",void 0);He([(0,se.ValidateNested)(),(0,c0.Type)(()=>Nt),ze("design:type",Nt)],In.prototype,"signature",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsEnum)(bo),ze("design:type",String)],In.prototype,"ledgerName",void 0);He([(0,se.IsNotEmpty)(),ze("design:type",String)],In.prototype,"blockHash",void 0);He([(0,se.IsNotEmpty)(),(0,se.Min)(0),ze("design:type",Number)],In.prototype,"blockNumber",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsString)(),ze("design:type",String)],In.prototype,"chainId",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsEthereumAddress)(),ze("design:type",String)],In.prototype,"taskRegistryContractAddress",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsEthereumAddress)(),ze("design:type",String)],In.prototype,"taskAuthorizationContractAddress",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsEthereumAddress)(),ze("design:type",String)],In.prototype,"taskRequesterAddress",void 0);He([(0,se.IsOptional)(),ze("design:type",String)],In.prototype,"taskPath",void 0);He([(0,se.IsOptional)(),(0,se.Min)(0),ze("design:type",Number)],In.prototype,"taskVersion",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsEthereumAddress)(),ze("design:type",String)],In.prototype,"senderAddress",void 0);He([(0,se.IsNumber)(),ze("design:type",Number)],In.prototype,"executionTimeout",void 0);He([(0,se.IsOptional)(),(0,se.Allow)(),ze("design:type",String)],In.prototype,"input",void 0);var H0=class{executionId;senderAddress;encryptedSolution;msgHash;signature;constructor(t,n,a,r,i){this.executionId=t,this.signature=i,this.encryptedSolution=a,this.senderAddress=n,this.msgHash=r}};He([(0,se.IsUUID)(),(0,se.IsNotEmpty)(),ze("design:type",String)],H0.prototype,"executionId",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsEthereumAddress)(),ze("design:type",String)],H0.prototype,"senderAddress",void 0);He([(0,se.ValidateNested)(),(0,c0.Type)(()=>Sr),ze("design:type",Sr)],H0.prototype,"encryptedSolution",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsHash)("sha256"),ze("design:type",String)],H0.prototype,"msgHash",void 0);He([(0,se.ValidateNested)(),(0,c0.Type)(()=>Nt),ze("design:type",Nt)],H0.prototype,"signature",void 0);var Tr=class{executionId;senderAddress;bodyResponse;msgHash;signature;tlsHandshakeHash;status;totalTransferredBytes;constructor(t,n,a,r,i,s,o,l){this.executionId=t,this.signature=i,this.bodyResponse=a,this.tlsHandshakeHash=s,this.senderAddress=n,this.msgHash=r,this.status=o,this.totalTransferredBytes=l}};He([(0,se.IsUUID)(),(0,se.IsNotEmpty)(),ze("design:type",String)],Tr.prototype,"executionId",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsEthereumAddress)(),ze("design:type",String)],Tr.prototype,"senderAddress",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsHash)("sha256"),ze("design:type",String)],Tr.prototype,"msgHash",void 0);He([(0,se.ValidateNested)(),(0,c0.Type)(()=>Nt),ze("design:type",Nt)],Tr.prototype,"signature",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsString)(),ze("design:type",String)],Tr.prototype,"tlsHandshakeHash",void 0);He([(0,se.IsNotEmpty)(),(0,se.IsString)(),ze("design:type",String)],Tr.prototype,"status",void 0);He([(0,se.ValidateNested)(),(0,c0.Type)(()=>Zf),ze("design:type",Zf)],Tr.prototype,"totalTransferredBytes",void 0);var rje=dt(po(),1);var _e=dt(Sa(),1),Un=dt(mo(),1);var lt=function(e,t,n,a){var r=arguments.length,i=r<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,a);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(r<3?s(i):r>3?s(t,n,i):s(t,n))||i);return r>3&&i&&Object.defineProperty(t,n,i),i},ct=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},z0=class{executionId;msgHash;signature;limits;econParams;workers;senderAddress;input;constructor(t,n,a,r,i,s,o,l){this.executionId=t,this.msgHash=n,this.signature=a,this.limits=r,this.econParams=i,this.workers=s,this.senderAddress=o,this.input=l}};lt([(0,_e.IsUUID)(),(0,_e.IsNotEmpty)(),ct("design:type",String)],z0.prototype,"executionId",void 0);lt([(0,_e.IsNotEmpty)(),(0,_e.IsHash)("sha256"),ct("design:type",String)],z0.prototype,"msgHash",void 0);lt([(0,_e.ValidateNested)(),(0,Un.Type)(()=>Nt),ct("design:type",Nt)],z0.prototype,"signature",void 0);lt([(0,_e.ValidateNested)(),(0,Un.Type)(()=>Ba),ct("design:type",Ba)],z0.prototype,"limits",void 0);lt([(0,_e.ValidateNested)(),(0,Un.Type)(()=>qa),ct("design:type",qa)],z0.prototype,"econParams",void 0);lt([(0,_e.ValidateNested)(),(0,Un.Type)(()=>fr),ct("design:type",fr)],z0.prototype,"workers",void 0);lt([(0,_e.IsNotEmpty)(),(0,_e.IsString)(),ct("design:type",String)],z0.prototype,"senderAddress",void 0);lt([(0,_e.IsNotEmpty)(),(0,_e.IsString)(),ct("design:type",String)],z0.prototype,"input",void 0);var kl=class{executionId;limits;econParams;workers;input;constructor(t,n,a,r,i){this.executionId=t,this.limits=n,this.econParams=a,this.workers=r,this.input=i}};lt([(0,_e.IsUUID)(),(0,_e.IsNotEmpty)(),ct("design:type",String)],kl.prototype,"executionId",void 0);lt([(0,_e.ValidateNested)(),(0,Un.Type)(()=>Ba),ct("design:type",Ba)],kl.prototype,"limits",void 0);lt([(0,_e.ValidateNested)(),(0,Un.Type)(()=>qa),ct("design:type",qa)],kl.prototype,"econParams",void 0);lt([(0,_e.ValidateNested)(),(0,Un.Type)(()=>fr),ct("design:type",fr)],kl.prototype,"workers",void 0);var Xv=class extends Ua{message;constructor(t,n,a,r,i,s){super(l0.NODE_OUTCOME,t,n,a,r,i,s),this.message=a,this.executionId=t,this.msgHash=n,this.signature=r,this.timestamp=s,this.sequencerAddress=i,this.message=a}};lt([(0,_e.ValidateNested)(),(0,Un.Type)(()=>H0),ct("design:type",H0)],Xv.prototype,"message",void 0);var Jv=class extends Ua{message;constructor(t,n,a,r,i,s){super(l0.API_OUTCOME,t,n,a,r,i,s),this.message=a,this.executionId=t,this.msgHash=n,this.signature=r,this.timestamp=s,this.sequencerAddress=i}};lt([(0,_e.ValidateNested)(),(0,Un.Type)(()=>Tr),ct("design:type",Tr)],Jv.prototype,"message",void 0);var yo=class{type;executionId;transcriptHash;status;signature;signerAddress;timestamp;constructor(t,n,a,r,i,s){this.type=l0.EXECUTION_COMPLETED,this.executionId=t,this.transcriptHash=n,this.status=a,this.signature=r,this.signerAddress=i,this.timestamp=s}};lt([(0,_e.IsNotEmpty)(),(0,_e.IsString)(),ct("design:type",String)],yo.prototype,"type",void 0);lt([(0,_e.IsUUID)(),(0,_e.IsNotEmpty)(),ct("design:type",String)],yo.prototype,"executionId",void 0);lt([(0,_e.IsNotEmpty)(),(0,_e.IsHash)("sha256"),ct("design:type",String)],yo.prototype,"transcriptHash",void 0);lt([(0,_e.IsNotEmpty)(),(0,_e.IsEnum)(lu),ct("design:type",String)],yo.prototype,"status",void 0);lt([(0,_e.ValidateNested)(),(0,Un.Type)(()=>Nt),ct("design:type",Nt)],yo.prototype,"signature",void 0);lt([(0,_e.IsNotEmpty)(),(0,_e.IsString)(),ct("design:type",String)],yo.prototype,"signerAddress",void 0);lt([j0(),(0,_e.IsNotEmpty)(),ct("design:type",Number)],yo.prototype,"timestamp",void 0);var V0=class{type;executionId;status;signature;senderAddress;timestamp;output;metering;constructor(t,n,a,r,i,s,o){this.type=l0.ADJUDICATION_OUTCOME,this.executionId=t,this.status=n,this.signature=a,this.senderAddress=r,this.output=s,this.metering=o,this.timestamp=i}};lt([(0,_e.IsNotEmpty)(),(0,_e.IsString)(),ct("design:type",String)],V0.prototype,"type",void 0);lt([(0,_e.IsUUID)(),(0,_e.IsNotEmpty)(),ct("design:type",String)],V0.prototype,"executionId",void 0);lt([(0,_e.IsNotEmpty)(),(0,_e.IsEnum)(lu),ct("design:type",String)],V0.prototype,"status",void 0);lt([(0,_e.ValidateNested)(),(0,Un.Type)(()=>Nt),ct("design:type",Nt)],V0.prototype,"signature",void 0);lt([(0,_e.IsNotEmpty)(),(0,_e.IsString)(),ct("design:type",String)],V0.prototype,"senderAddress",void 0);lt([j0(),(0,_e.IsNotEmpty)(),ct("design:type",Number)],V0.prototype,"timestamp",void 0);lt([(0,_e.IsOptional)(),(0,_e.IsString)(),ct("design:type",String)],V0.prototype,"output",void 0);lt([(0,_e.IsOptional)(),(0,_e.ValidateNested)(),(0,Un.Type)(()=>f0),ct("design:type",f0)],V0.prototype,"metering",void 0);var Qo=class{type;executionId;signature;clearTextSolutions;sequencerAddress;msgHash;timestamp;constructor(t,n,a,r,i,s){this.type=l0.SOLUTIONS_REVEALED,this.executionId=t,this.signature=n,this.clearTextSolutions=a,this.sequencerAddress=r,this.msgHash=i,this.timestamp=s}};lt([(0,_e.IsUUID)(),(0,_e.IsNotEmpty)(),ct("design:type",String)],Qo.prototype,"executionId",void 0);lt([(0,_e.ValidateNested)(),(0,Un.Type)(()=>Nt),ct("design:type",Nt)],Qo.prototype,"signature",void 0);lt([(0,_e.ValidateNested)({each:!0}),(0,Un.Type)(()=>Ml),ct("design:type",Array)],Qo.prototype,"clearTextSolutions",void 0);lt([(0,_e.IsNotEmpty)(),(0,_e.IsEthereumAddress)(),ct("design:type",String)],Qo.prototype,"sequencerAddress",void 0);lt([(0,_e.IsNotEmpty)(),(0,_e.IsHash)("sha256"),ct("design:type",String)],Qo.prototype,"msgHash",void 0);lt([j0(),(0,_e.IsNotEmpty)(),ct("design:type",Number)],Qo.prototype,"timestamp",void 0);var go=class extends Ua{executionId;msgHash;message;signature;publicKey;sequencerAddress;timestamp;constructor(t,n,a,r,i,s,o){super(l0.TASK_CREATED,t,n,a,r,s,o),this.message=a,this.executionId=t,this.msgHash=n,this.signature=r,this.timestamp=o,this.sequencerAddress=s,this.publicKey=i,this.message=a}};lt([(0,_e.IsNotEmpty)(),(0,_e.IsUUID)(),ct("design:type",String)],go.prototype,"executionId",void 0);lt([(0,_e.IsNotEmpty)(),(0,_e.IsHash)("sha256"),ct("design:type",String)],go.prototype,"msgHash",void 0);lt([(0,_e.ValidateNested)(),(0,Un.Type)(()=>nn),ct("design:type",nn)],go.prototype,"message",void 0);lt([(0,_e.ValidateNested)(),(0,Un.Type)(()=>Nt),ct("design:type",Nt)],go.prototype,"signature",void 0);lt([(0,_e.IsNotEmpty)(),(0,_e.IsString)(),ct("design:type",String)],go.prototype,"publicKey",void 0);lt([(0,_e.IsNotEmpty)(),(0,_e.IsEthereumAddress)(),ct("design:type",String)],go.prototype,"sequencerAddress",void 0);lt([j0(),(0,_e.IsNotEmpty)(),ct("design:type",Number)],go.prototype,"timestamp",void 0);var vo=class extends Ua{executionId;msgHash;message;signature;publicKey;sequencerAddress;timestamp;constructor(t,n,a,r,i,s,o){super(l0.API_TASK_CREATED,t,n,a,r,s,o),this.message=a,this.executionId=t,this.msgHash=n,this.signature=r,this.timestamp=o,this.sequencerAddress=s,this.publicKey=i,this.message=a}};lt([(0,_e.IsNotEmpty)(),(0,_e.IsUUID)(),ct("design:type",String)],vo.prototype,"executionId",void 0);lt([(0,_e.IsNotEmpty)(),(0,_e.IsHash)("sha256"),ct("design:type",String)],vo.prototype,"msgHash",void 0);lt([(0,_e.ValidateNested)(),(0,Un.Type)(()=>In),ct("design:type",In)],vo.prototype,"message",void 0);lt([(0,_e.ValidateNested)(),(0,Un.Type)(()=>Nt),ct("design:type",Nt)],vo.prototype,"signature",void 0);lt([(0,_e.IsNotEmpty)(),(0,_e.IsString)(),ct("design:type",String)],vo.prototype,"publicKey",void 0);lt([(0,_e.IsNotEmpty)(),(0,_e.IsEthereumAddress)(),ct("design:type",String)],vo.prototype,"sequencerAddress",void 0);lt([j0(),(0,_e.IsNotEmpty)(),ct("design:type",Number)],vo.prototype,"timestamp",void 0);var dje=dt(po(),1);var dr=dt(Sa(),1),Qv=dt(mo(),1),J6=function(e,t,n,a){var r=arguments.length,i=r<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,a);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(r<3?s(i):r>3?s(t,n,i):s(t,n))||i);return r>3&&i&&Object.defineProperty(t,n,i),i},Q6=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},Xf=class{executionId;msgHash;signature;senderAddress;encryptedSolution;constructor(t,n,a,r,i){this.executionId=t,this.msgHash=n,this.signature=a,this.senderAddress=r,this.encryptedSolution=i}};J6([(0,dr.IsUUID)(),(0,dr.IsNotEmpty)(),Q6("design:type",String)],Xf.prototype,"executionId",void 0);J6([(0,dr.IsNotEmpty)(),(0,dr.IsHash)("sha256"),Q6("design:type",String)],Xf.prototype,"msgHash",void 0);J6([(0,dr.ValidateNested)(),(0,Qv.Type)(()=>Nt),Q6("design:type",Nt)],Xf.prototype,"signature",void 0);J6([(0,dr.IsNotEmpty)(),(0,dr.IsEthereumAddress)(),Q6("design:type",String)],Xf.prototype,"senderAddress",void 0);J6([(0,dr.ValidateNested)(),(0,Qv.Type)(()=>Sr),Q6("design:type",Sr)],Xf.prototype,"encryptedSolution",void 0);var ke=dt(Sa(),1);var jt=function(e,t,n,a){var r=arguments.length,i=r<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,a);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(r<3?s(i):r>3?s(t,n,i):s(t,n))||i);return r>3&&i&&Object.defineProperty(t,n,i),i},Ht=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},e_=class{taskId;constructor(t){this.taskId=t}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],e_.prototype,"taskId",void 0);var t_=class{taskId;constructor(t){this.taskId=t}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],t_.prototype,"taskId",void 0);var ep=class{input;checkpoint;taskId;constructor(t,n,a){this.taskId=t,this.checkpoint=n,this.input=a}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],ep.prototype,"input",void 0);jt([(0,ke.IsNotEmpty)(),Ht("design:type",Object)],ep.prototype,"checkpoint",void 0);jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],ep.prototype,"taskId",void 0);var om=class{input;taskId;constructor(t,n){this.taskId=t,this.input=n}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],om.prototype,"input",void 0);jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],om.prototype,"taskId",void 0);var tp=class{executionId;input;taskId;constructor(t,n,a){this.taskId=t,this.executionId=n,this.input=a}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsUUID)(),Ht("design:type",String)],tp.prototype,"executionId",void 0);jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],tp.prototype,"input",void 0);jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],tp.prototype,"taskId",void 0);var fm=class{instrumentationId;taskId;constructor(t,n){this.taskId=t,this.instrumentationId=n}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsUUID)(),Ht("design:type",String)],fm.prototype,"instrumentationId",void 0);jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],fm.prototype,"taskId",void 0);var n_=class{taskId;constructor(t){this.taskId=t}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],n_.prototype,"taskId",void 0);var a_=class{taskId;constructor(t){this.taskId=t}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],a_.prototype,"taskId",void 0);var r_=class{taskId;constructor(t){this.taskId=t}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],r_.prototype,"taskId",void 0);var dm=class{checkpointHash;taskId;constructor(t,n){this.taskId=t,this.checkpointHash=n}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],dm.prototype,"checkpointHash",void 0);jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],dm.prototype,"taskId",void 0);var i_=class{taskId;constructor(t){this.taskId=t}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],i_.prototype,"taskId",void 0);var lm=class{checkpointCount;taskId;constructor(t,n){this.taskId=t,this.checkpointCount=n}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsNumber)(),Ht("design:type",Number)],lm.prototype,"checkpointCount",void 0);jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],lm.prototype,"taskId",void 0);var s_=class{taskId;constructor(t,n){this.taskId=n}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],s_.prototype,"taskId",void 0);var np=class{executionId;output;taskId;constructor(t,n,a){this.taskId=t,this.executionId=n,this.output=a}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsUUID)(),Ht("design:type",String)],np.prototype,"executionId",void 0);jt([(0,ke.IsOptional)(),(0,ke.IsString)(),Ht("design:type",String)],np.prototype,"output",void 0);jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],np.prototype,"taskId",void 0);var cm=class{executionId;taskId;constructor(t,n,a){this.taskId=n,this.executionId=a}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsUUID)(),Ht("design:type",String)],cm.prototype,"executionId",void 0);jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],cm.prototype,"taskId",void 0);var Ol=class{instrumentationId;output;taskId;instrumentedTaskId;constructor(t,n,a,r){this.taskId=t,this.instrumentationId=n,this.output=r,this.instrumentedTaskId=a}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsUUID)(),Ht("design:type",String)],Ol.prototype,"instrumentationId",void 0);jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],Ol.prototype,"output",void 0);jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],Ol.prototype,"taskId",void 0);jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],Ol.prototype,"instrumentedTaskId",void 0);var um=class{instrumentationId;taskId;constructor(t,n,a){this.taskId=n,this.instrumentationId=a}};jt([(0,ke.IsNotEmpty)(),(0,ke.IsUUID)(),Ht("design:type",String)],um.prototype,"instrumentationId",void 0);jt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Ht("design:type",String)],um.prototype,"taskId",void 0);import sze from"axios";import Eje from"axios";var kMe=dt(dd(),1);var Hm=dt(dd(),1);import*as px from"crypto";var ec=class{static hash(t){let n=Buffer.from(t,"utf8");return Hm.keccak256(n)}static hashRandomBits(t){if(!this.isValidSHA256(t.blockHash.replace("0x",""))||t.taskRequesterTimestamp<=0||t.dispatcherTimestamp<=0)throw`Invalid inputs for hashRandomBits:
104
104
  blockHash: ${t.blockHash},
105
105
  taskRequesterTimestamp: ${t.taskRequesterTimestamp},
106
106
  dispatcherTimestamp: ${t.dispatcherTimestamp}
@@ -211,7 +211,7 @@ To get started:
211
211
 
212
212
  Need assistance?
213
213
  Use the 'truebit -h' command for additional information.`};async function uf(){let e=At("hubURL");if(e)return Bx.create({headers:{Connection:"keep-alive"},httpAgent:new Dx({keepAlive:!0}),httpsAgent:new Lx({keepAlive:!0}),baseURL:e,timeout:12e4,maxContentLength:1/0,maxBodyLength:1/0});throw Jt.USER_NO_REGISTERED}async function Rr(){let e=At("httpAdapterURL");if(e)return Bx.create({headers:{Connection:"keep-alive"},httpAgent:new Dx({keepAlive:!0}),httpsAgent:new Lx({keepAlive:!0}),baseURL:e,timeout:12e4,maxContentLength:1/0,maxBodyLength:1/0});throw Jt.USER_NO_REGISTERED}async function zW(){let e=At("httpAdapterURL");return e||(e=oc().httpAdapterURL),Bx.create({headers:{Connection:"keep-alive"},httpAgent:new Dx({keepAlive:!0}),httpsAgent:new Lx({keepAlive:!0}),baseURL:e,timeout:12e4,maxContentLength:1/0,maxBodyLength:1/0})}import FPe from"axios";import{publicIp as UPe}from"public-ip";var xp=class{static create(t,n,a,r){switch(n){case bo.EVM:return new wp(t,a,r);default:throw new Error(`Unsupported blockchain: ${n}`)}}};var Ap=class{serviceLogger;env;pk;constructor(t,n,a){this.serviceLogger=t,this.env=n,this.pk=a}};import{ethers as LPe}from"ethers";var Eo;(function(e){e.LOCAL="local",e.LOCAL_DOCKER="local-docker",e.TESTNET="testnet",e.STAGING="staging",e.PRODUCTION="production"})(Eo||(Eo={}));var qx={address:"0x6da8eE7DF16BD92eb71F314f4b701C6c5b0b2721",abi:[{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"previousAdmin",type:"address"},{indexed:!1,internalType:"address",name:"newAdmin",type:"address"}],name:"AdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"beacon",type:"address"}],name:"BeaconUpgraded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"implementation",type:"address"}],name:"Upgraded",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"admin",outputs:[{internalType:"address",name:"admin_",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newAdmin",type:"address"}],name:"changeAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"implementation",outputs:[{internalType:"address",name:"implementation_",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"}],name:"upgradeTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"},{inputs:[],name:"ECDSAInvalidSignature",type:"error"},{inputs:[{internalType:"uint256",name:"length",type:"uint256"}],name:"ECDSAInvalidSignatureLength",type:"error"},{inputs:[{internalType:"bytes32",name:"s",type:"bytes32"}],name:"ECDSAInvalidSignatureS",type:"error"},{inputs:[],name:"InvalidInitialization",type:"error"},{inputs:[],name:"NotInitializing",type:"error"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"OwnableInvalidOwner",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"OwnableUnauthorizedAccount",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"}],name:"Deregistered",type:"event"},{anonymous:!1,inputs:[],name:"EIP712DomainChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!0,internalType:"address",name:"grantee",type:"address"}],name:"Granted",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint64",name:"version",type:"uint64"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"}],name:"Registered",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!0,internalType:"address",name:"grantee",type:"address"}],name:"Revoked",type:"event"},{inputs:[{internalType:"string",name:"apiKeyHash",type:"string"}],name:"deregister",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"string",name:"apiKeyHash",type:"string"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"deregisterWithSignature",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"eip712Domain",outputs:[{internalType:"bytes1",name:"fields",type:"bytes1"},{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"version",type:"string"},{internalType:"uint256",name:"chainId",type:"uint256"},{internalType:"address",name:"verifyingContract",type:"address"},{internalType:"bytes32",name:"salt",type:"bytes32"},{internalType:"uint256[]",name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"apiKeyHash",type:"string"}],name:"getPayer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"address",name:"grantee",type:"address"}],name:"grant",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"string",name:"namespace",type:"string"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"grantWithSignature",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_taskRegistry",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"address",name:"grantee",type:"address"}],name:"isAuthorized",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"apiKeyHash",type:"string"}],name:"register",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"string",name:"apiKeyHash",type:"string"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"registerWithSignature",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"address",name:"grantee",type:"address"}],name:"revoke",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"string",name:"namespace",type:"string"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"revokeWithSignature",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_taskRegistry",type:"address"}],name:"setTaskRegistry",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"taskRegistry",outputs:[{internalType:"contract ITaskRegistry",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_logic",type:"address"},{internalType:"address",name:"admin_",type:"address"},{internalType:"bytes",name:"_data",type:"bytes"}],stateMutability:"payable",type:"constructor"}],transactionHash:"0xa5e7e2620c85600d550ad35f16b078d435d8cc2d43ecfb2db992c333346a06c2",receipt:{to:null,from:"0xd70C3454aaD1B7ec660a064d8b1FE5708d898d84",contractAddress:"0x6da8eE7DF16BD92eb71F314f4b701C6c5b0b2721",transactionIndex:1,gasUsed:"842939",logsBloom:"0x00000000000000000000000000000000400000000000000000800000000000000000000000000000000040000000000000000000000000000000000002000000000000000000000000000000000002000001000000000000000000000000000000000000020000000000000000000800000000800000000000200000000000400800000000000000000800000200000000000000000080000000020000800000000000000000000000000000000000040000000000000000000000000000400000000020000000000000000000000000000000000404000000000000000020000000000000000000000000008000000000000000000000000000000000000000",blockHash:"0x1b5987792b3f5cd94fed817629ac63ed3d6bcc6fa901270b8062a886f9e48927",transactionHash:"0xa5e7e2620c85600d550ad35f16b078d435d8cc2d43ecfb2db992c333346a06c2",logs:[{transactionIndex:1,blockNumber:59397229,transactionHash:"0xa5e7e2620c85600d550ad35f16b078d435d8cc2d43ecfb2db992c333346a06c2",address:"0x6da8eE7DF16BD92eb71F314f4b701C6c5b0b2721",topics:["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000ace790e32df6702e86d0733303e3d08793213ec0"],data:"0x",logIndex:5,blockHash:"0x1b5987792b3f5cd94fed817629ac63ed3d6bcc6fa901270b8062a886f9e48927"},{transactionIndex:1,blockNumber:59397229,transactionHash:"0xa5e7e2620c85600d550ad35f16b078d435d8cc2d43ecfb2db992c333346a06c2",address:"0x6da8eE7DF16BD92eb71F314f4b701C6c5b0b2721",topics:["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x000000000000000000000000d70c3454aad1b7ec660a064d8b1fe5708d898d84"],data:"0x",logIndex:6,blockHash:"0x1b5987792b3f5cd94fed817629ac63ed3d6bcc6fa901270b8062a886f9e48927"},{transactionIndex:1,blockNumber:59397229,transactionHash:"0xa5e7e2620c85600d550ad35f16b078d435d8cc2d43ecfb2db992c333346a06c2",address:"0x6da8eE7DF16BD92eb71F314f4b701C6c5b0b2721",topics:["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"],data:"0x0000000000000000000000000000000000000000000000000000000000000001",logIndex:7,blockHash:"0x1b5987792b3f5cd94fed817629ac63ed3d6bcc6fa901270b8062a886f9e48927"},{transactionIndex:1,blockNumber:59397229,transactionHash:"0xa5e7e2620c85600d550ad35f16b078d435d8cc2d43ecfb2db992c333346a06c2",address:"0x6da8eE7DF16BD92eb71F314f4b701C6c5b0b2721",topics:["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],data:"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b8a703c0865645277636f2286f0d2db5f51e418",logIndex:8,blockHash:"0x1b5987792b3f5cd94fed817629ac63ed3d6bcc6fa901270b8062a886f9e48927"}],blockNumber:59397229,cumulativeGasUsed:"1007498",status:1,byzantium:!0},args:["0xAcE790e32df6702E86D0733303e3d08793213Ec0","0x1B8a703c0865645277636f2286f0d2Db5f51E418","0xc4d66de80000000000000000000000006825142a0e85ddb3cbf872a26ee2beefaedbc465"],numDeployments:1,solcInputHash:"0e89febeebc7444140de8e67c9067d2c",metadata:'{"compiler":{"version":"0.8.10+commit.fc410830"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"admin_","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"admin_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"changeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"implementation_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}],"devdoc":{"details":"This contract implements a proxy that is upgradeable by an admin. To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector clashing], which can potentially be used in an attack, this contract uses the https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two things that go hand in hand: 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if that call matches one of the admin functions exposed by the proxy itself. 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the implementation. If the admin tries to call a function on the implementation it will fail with an error that says \\"admin cannot fallback to proxy target\\". These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing the admin, so it\'s best if it\'s a dedicated account that is not used for anything else. This will avoid headaches due to sudden errors when trying to call a function from the proxy implementation. Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way, you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.","kind":"dev","methods":{"admin()":{"details":"Returns the current admin. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`"},"changeAdmin(address)":{"details":"Changes the admin of the proxy. Emits an {AdminChanged} event. NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}."},"constructor":{"details":"Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}."},"implementation()":{"details":"Returns the current implementation. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`"},"upgradeTo(address)":{"details":"Upgrade the implementation of the proxy. NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}."},"upgradeToAndCall(address,bytes)":{"details":"Upgrade the implementation of the proxy, and then call a function from the new implementation as specified by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the proxied contract. NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}."}},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"compilationTarget":{"solc_0.8/openzeppelin/proxy/transparent/TransparentUpgradeableProxy.sol":"TransparentUpgradeableProxy"},"evmVersion":"london","libraries":{},"metadata":{"bytecodeHash":"ipfs","useLiteralContent":true},"optimizer":{"enabled":true,"runs":999999},"remappings":[]},"sources":{"solc_0.8/openzeppelin/interfaces/draft-IERC1822.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n","keccak256":"0x93b4e21c931252739a1ec13ea31d3d35a5c068be3163ccab83e4d70c40355f03","license":"MIT"},"solc_0.8/openzeppelin/proxy/ERC1967/ERC1967Proxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/ERC1967/ERC1967Proxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\"../Proxy.sol\\";\\nimport \\"./ERC1967Upgrade.sol\\";\\n\\n/**\\n * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an\\n * implementation address that can be changed. This address is stored in storage in the location specified by\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn\'t conflict with the storage layout of the\\n * implementation behind the proxy.\\n */\\ncontract ERC1967Proxy is Proxy, ERC1967Upgrade {\\n /**\\n * @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.\\n *\\n * If `_data` is nonempty, it\'s used as data in a delegate call to `_logic`. This will typically be an encoded\\n * function call, and allows initializating the storage of the proxy like a Solidity constructor.\\n */\\n constructor(address _logic, bytes memory _data) payable {\\n assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256(\\"eip1967.proxy.implementation\\")) - 1));\\n _upgradeToAndCall(_logic, _data, false);\\n }\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _implementation() internal view virtual override returns (address impl) {\\n return ERC1967Upgrade._getImplementation();\\n }\\n}\\n","keccak256":"0x6309f9f39dc6f4f45a24f296543867aa358e32946cd6b2874627a996d606b3a0","license":"MIT"},"solc_0.8/openzeppelin/proxy/ERC1967/ERC1967Upgrade.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (proxy/ERC1967/ERC1967Upgrade.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\"../beacon/IBeacon.sol\\";\\nimport \\"../../interfaces/draft-IERC1822.sol\\";\\nimport \\"../../utils/Address.sol\\";\\nimport \\"../../utils/StorageSlot.sol\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n *\\n * _Available since v4.1._\\n *\\n * @custom:oz-upgrades-unsafe-allow delegatecall\\n */\\nabstract contract ERC1967Upgrade {\\n // This is the keccak-256 hash of \\"eip1967.proxy.rollback\\" subtracted by 1\\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\"eip1967.proxy.implementation\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(Address.isContract(newImplementation), \\"ERC1967: new implementation is not a contract\\");\\n StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Perform implementation upgrade\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeTo(address newImplementation) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCall(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _upgradeTo(newImplementation);\\n if (data.length > 0 || forceCall) {\\n Address.functionDelegateCall(newImplementation, data);\\n }\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n // Upgrades from old implementations will perform a rollback test. This test requires the new\\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\\n // this special case will break upgrade paths from old UUPS implementation to new ones.\\n if (StorageSlot.getBooleanSlot(_ROLLBACK_SLOT).value) {\\n _setImplementation(newImplementation);\\n } else {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n require(slot == _IMPLEMENTATION_SLOT, \\"ERC1967Upgrade: unsupported proxiableUUID\\");\\n } catch {\\n revert(\\"ERC1967Upgrade: new implementation is not UUPS\\");\\n }\\n _upgradeToAndCall(newImplementation, data, forceCall);\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\"eip1967.proxy.admin\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _getAdmin() internal view virtual returns (address) {\\n return StorageSlot.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n require(newAdmin != address(0), \\"ERC1967: new admin is the zero address\\");\\n StorageSlot.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n */\\n function _changeAdmin(address newAdmin) internal {\\n emit AdminChanged(_getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is bytes32(uint256(keccak256(\'eip1967.proxy.beacon\')) - 1)) and is validated in the constructor.\\n */\\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Emitted when the beacon is upgraded.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function _getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(_BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n require(Address.isContract(newBeacon), \\"ERC1967: new beacon is not a contract\\");\\n require(Address.isContract(IBeacon(newBeacon).implementation()), \\"ERC1967: beacon implementation is not a contract\\");\\n StorageSlot.getAddressSlot(_BEACON_SLOT).value = newBeacon;\\n }\\n\\n /**\\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\\n *\\n * Emits a {BeaconUpgraded} event.\\n */\\n function _upgradeBeaconToAndCall(\\n address newBeacon,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n if (data.length > 0 || forceCall) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n }\\n }\\n}\\n","keccak256":"0x17668652127feebed0ce8d9431ef95ccc8c4292f03e3b8cf06c6ca16af396633","license":"MIT"},"solc_0.8/openzeppelin/proxy/Proxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (proxy/Proxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM\\n * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to\\n * be specified by overriding the virtual {_implementation} function.\\n *\\n * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a\\n * different contract through the {_delegate} function.\\n *\\n * The success and return data of the delegated call will be returned back to the caller of the proxy.\\n */\\nabstract contract Proxy {\\n /**\\n * @dev Delegates the current call to `implementation`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _delegate(address implementation) internal virtual {\\n assembly {\\n // Copy msg.data. We take full control of memory in this inline assembly\\n // block because it will not return to Solidity code. We overwrite the\\n // Solidity scratch pad at memory position 0.\\n calldatacopy(0, 0, calldatasize())\\n\\n // Call the implementation.\\n // out and outsize are 0 because we don\'t know the size yet.\\n let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\\n\\n // Copy the returned data.\\n returndatacopy(0, 0, returndatasize())\\n\\n switch result\\n // delegatecall returns 0 on error.\\n case 0 {\\n revert(0, returndatasize())\\n }\\n default {\\n return(0, returndatasize())\\n }\\n }\\n }\\n\\n /**\\n * @dev This is a virtual function that should be overriden so it returns the address to which the fallback function\\n * and {_fallback} should delegate.\\n */\\n function _implementation() internal view virtual returns (address);\\n\\n /**\\n * @dev Delegates the current call to the address returned by `_implementation()`.\\n *\\n * This function does not return to its internall call site, it will return directly to the external caller.\\n */\\n function _fallback() internal virtual {\\n _beforeFallback();\\n _delegate(_implementation());\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other\\n * function in the contract matches the call data.\\n */\\n fallback() external payable virtual {\\n _fallback();\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data\\n * is empty.\\n */\\n receive() external payable virtual {\\n _fallback();\\n }\\n\\n /**\\n * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`\\n * call, or as part of the Solidity `fallback` or `receive` functions.\\n *\\n * If overriden should call `super._beforeFallback()`.\\n */\\n function _beforeFallback() internal virtual {}\\n}\\n","keccak256":"0xd5d1fd16e9faff7fcb3a52e02a8d49156f42a38a03f07b5f1810c21c2149a8ab","license":"MIT"},"solc_0.8/openzeppelin/proxy/beacon/IBeacon.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {BeaconProxy} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n","keccak256":"0xd50a3421ac379ccb1be435fa646d66a65c986b4924f0849839f08692f39dde61","license":"MIT"},"solc_0.8/openzeppelin/proxy/transparent/TransparentUpgradeableProxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/transparent/TransparentUpgradeableProxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\"../ERC1967/ERC1967Proxy.sol\\";\\n\\n/**\\n * @dev This contract implements a proxy that is upgradeable by an admin.\\n *\\n * To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector\\n * clashing], which can potentially be used in an attack, this contract uses the\\n * https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two\\n * things that go hand in hand:\\n *\\n * 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if\\n * that call matches one of the admin functions exposed by the proxy itself.\\n * 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the\\n * implementation. If the admin tries to call a function on the implementation it will fail with an error that says\\n * \\"admin cannot fallback to proxy target\\".\\n *\\n * These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing\\n * the admin, so it\'s best if it\'s a dedicated account that is not used for anything else. This will avoid headaches due\\n * to sudden errors when trying to call a function from the proxy implementation.\\n *\\n * Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way,\\n * you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.\\n */\\ncontract TransparentUpgradeableProxy is ERC1967Proxy {\\n /**\\n * @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and\\n * optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}.\\n */\\n constructor(\\n address _logic,\\n address admin_,\\n bytes memory _data\\n ) payable ERC1967Proxy(_logic, _data) {\\n assert(_ADMIN_SLOT == bytes32(uint256(keccak256(\\"eip1967.proxy.admin\\")) - 1));\\n _changeAdmin(admin_);\\n }\\n\\n /**\\n * @dev Modifier used internally that will delegate the call to the implementation unless the sender is the admin.\\n */\\n modifier ifAdmin() {\\n if (msg.sender == _getAdmin()) {\\n _;\\n } else {\\n _fallback();\\n }\\n }\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the\\n * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function admin() external ifAdmin returns (address admin_) {\\n admin_ = _getAdmin();\\n }\\n\\n /**\\n * @dev Returns the current implementation.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the\\n * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`\\n */\\n function implementation() external ifAdmin returns (address implementation_) {\\n implementation_ = _implementation();\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}.\\n */\\n function changeAdmin(address newAdmin) external virtual ifAdmin {\\n _changeAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}.\\n */\\n function upgradeTo(address newImplementation) external ifAdmin {\\n _upgradeToAndCall(newImplementation, bytes(\\"\\"), false);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy, and then call a function from the new implementation as specified\\n * by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the\\n * proxied contract.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}.\\n */\\n function upgradeToAndCall(address newImplementation, bytes calldata data) external payable ifAdmin {\\n _upgradeToAndCall(newImplementation, data, true);\\n }\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _admin() internal view virtual returns (address) {\\n return _getAdmin();\\n }\\n\\n /**\\n * @dev Makes sure the admin cannot access the fallback function. See {Proxy-_beforeFallback}.\\n */\\n function _beforeFallback() internal virtual override {\\n require(msg.sender != _getAdmin(), \\"TransparentUpgradeableProxy: admin cannot fallback to proxy target\\");\\n super._beforeFallback();\\n }\\n}\\n","keccak256":"0x140055a64cf579d622e04f5a198595832bf2cb193cd0005f4f2d4d61ca906253","license":"MIT"},"solc_0.8/openzeppelin/utils/Address.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn\'t rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity\'s `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\"Address: insufficient balance\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\"\\");\\n require(success, \\"Address: unable to send value, recipient may have reverted\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCall(target, data, \\"Address: low-level call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\"Address: low-level call with value failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\"Address: insufficient balance for call\\");\\n require(isContract(target), \\"Address: call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\"Address: low-level static call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n require(isContract(target), \\"Address: static call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\"Address: low-level delegate call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(isContract(target), \\"Address: delegate call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verifies that a low level call was successful, and revert if it wasn\'t, either by bubbling the\\n * revert reason using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n }\\n}\\n","keccak256":"0x3777e696b62134e6177440dbe6e6601c0c156a443f57167194b67e75527439de","license":"MIT"},"solc_0.8/openzeppelin/utils/StorageSlot.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\"ERC1967: new implementation is not a contract\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._\\n */\\nlibrary StorageSlot {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n}\\n","keccak256":"0xfe1b7a9aa2a530a9e705b220e26cd584e2fbdc9602a3a1066032b12816b46aca","license":"MIT"}},"version":1}',bytecode:"0x6080604052604051620011b2380380620011b2833981016040819052620000269162000519565b82816200005560017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd620005f9565b6000805160206200116b833981519152146200007557620000756200061f565b6200008382826000620000e7565b50620000b3905060017fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6104620005f9565b6000805160206200114b83398151915214620000d357620000d36200061f565b620000de8262000124565b50505062000688565b620000f2836200017f565b600082511180620001005750805b156200011f576200011d8383620001c160201b620002ff1760201c565b505b505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6200014f620001f0565b604080516001600160a01b03928316815291841660208301520160405180910390a16200017c8162000229565b50565b6200018a81620002de565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060620001e983836040518060600160405280602781526020016200118b6027913962000381565b9392505050565b60006200021a6000805160206200114b83398151915260001b6200046760201b620002731760201c565b546001600160a01b0316919050565b6001600160a01b038116620002945760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b80620002bd6000805160206200114b83398151915260001b6200046760201b620002731760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b620002f4816200046a60201b6200032b1760201c565b620003585760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016200028b565b80620002bd6000805160206200116b83398151915260001b6200046760201b620002731760201c565b60606001600160a01b0384163b620003eb5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016200028b565b600080856001600160a01b03168560405162000408919062000635565b600060405180830381855af49150503d806000811462000445576040519150601f19603f3d011682016040523d82523d6000602084013e6200044a565b606091505b5090925090506200045d82828662000479565b9695505050505050565b90565b6001600160a01b03163b151590565b606083156200048a575081620001e9565b8251156200049b5782518084602001fd5b8160405162461bcd60e51b81526004016200028b919062000653565b80516001600160a01b0381168114620004cf57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101562000507578181015183820152602001620004ed565b838111156200011d5750506000910152565b6000806000606084860312156200052f57600080fd5b6200053a84620004b7565b92506200054a60208501620004b7565b60408501519092506001600160401b03808211156200056857600080fd5b818601915086601f8301126200057d57600080fd5b815181811115620005925762000592620004d4565b604051601f8201601f19908116603f01168101908382118183101715620005bd57620005bd620004d4565b81604052828152896020848701011115620005d757600080fd5b620005ea836020830160208801620004ea565b80955050505050509250925092565b6000828210156200061a57634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052600160045260246000fd5b6000825162000649818460208701620004ea565b9190910192915050565b602081526000825180602084015262000674816040850160208701620004ea565b601f01601f19169190910160400192915050565b610ab380620006986000396000f3fe60806040526004361061005e5760003560e01c80635c60da1b116100435780635c60da1b146100a85780638f283970146100e6578063f851a440146101065761006d565b80633659cfe6146100755780634f1ef286146100955761006d565b3661006d5761006b61011b565b005b61006b61011b565b34801561008157600080fd5b5061006b61009036600461091f565b610135565b61006b6100a336600461093a565b610196565b3480156100b457600080fd5b506100bd610221565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100f257600080fd5b5061006b61010136600461091f565b610276565b34801561011257600080fd5b506100bd6102ba565b610123610347565b61013361012e610435565b61043f565b565b61013d610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816040518060200160405280600081525060006104a3565b50565b61018b61011b565b61019e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610219576102148383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250600192506104a3915050565b505050565b61021461011b565b600061022b610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610435565b905090565b61027361011b565b90565b61027e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816104ce565b60006102c4610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610463565b60606103248383604051806060016040528060278152602001610a576027913961052f565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b61034f610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f7879207461726760648201527f6574000000000000000000000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b6000610266610657565b3660008037600080366000845af43d6000803e80801561045e573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b5473ffffffffffffffffffffffffffffffffffffffff16919050565b6104ac8361067f565b6000825111806104b95750805b15610214576104c883836102ff565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6104f7610463565b6040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301520160405180910390a161018b816106cc565b606073ffffffffffffffffffffffffffffffffffffffff84163b6105d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161042c565b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516105fd91906109e9565b600060405180830381855af49150503d8060008114610638576040519150601f19603f3d011682016040523d82523d6000602084013e61063d565b606091505b509150915061064d8282866107d8565b9695505050505050565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610487565b6106888161082b565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b73ffffffffffffffffffffffffffffffffffffffff811661076f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161042c565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905550565b606083156107e7575081610324565b8251156107f75782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c9190610a05565b73ffffffffffffffffffffffffffffffffffffffff81163b6108cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e747261637400000000000000000000000000000000000000606482015260840161042c565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610792565b803573ffffffffffffffffffffffffffffffffffffffff8116811461091a57600080fd5b919050565b60006020828403121561093157600080fd5b610324826108f6565b60008060006040848603121561094f57600080fd5b610958846108f6565b9250602084013567ffffffffffffffff8082111561097557600080fd5b818601915086601f83011261098957600080fd5b81358181111561099857600080fd5b8760208285010111156109aa57600080fd5b6020830194508093505050509250925092565b60005b838110156109d85781810151838201526020016109c0565b838111156104c85750506000910152565b600082516109fb8184602087016109bd565b9190910192915050565b6020815260008251806020840152610a248160408501602087016109bd565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b29caa54336b3ee836679675e9732ec5e526fb3f803cca2fe336cc3555aba62264736f6c634300080a0033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564",deployedBytecode:"0x60806040526004361061005e5760003560e01c80635c60da1b116100435780635c60da1b146100a85780638f283970146100e6578063f851a440146101065761006d565b80633659cfe6146100755780634f1ef286146100955761006d565b3661006d5761006b61011b565b005b61006b61011b565b34801561008157600080fd5b5061006b61009036600461091f565b610135565b61006b6100a336600461093a565b610196565b3480156100b457600080fd5b506100bd610221565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100f257600080fd5b5061006b61010136600461091f565b610276565b34801561011257600080fd5b506100bd6102ba565b610123610347565b61013361012e610435565b61043f565b565b61013d610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816040518060200160405280600081525060006104a3565b50565b61018b61011b565b61019e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610219576102148383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250600192506104a3915050565b505050565b61021461011b565b600061022b610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610435565b905090565b61027361011b565b90565b61027e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816104ce565b60006102c4610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610463565b60606103248383604051806060016040528060278152602001610a576027913961052f565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b61034f610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f7879207461726760648201527f6574000000000000000000000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b6000610266610657565b3660008037600080366000845af43d6000803e80801561045e573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b5473ffffffffffffffffffffffffffffffffffffffff16919050565b6104ac8361067f565b6000825111806104b95750805b15610214576104c883836102ff565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6104f7610463565b6040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301520160405180910390a161018b816106cc565b606073ffffffffffffffffffffffffffffffffffffffff84163b6105d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161042c565b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516105fd91906109e9565b600060405180830381855af49150503d8060008114610638576040519150601f19603f3d011682016040523d82523d6000602084013e61063d565b606091505b509150915061064d8282866107d8565b9695505050505050565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610487565b6106888161082b565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b73ffffffffffffffffffffffffffffffffffffffff811661076f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161042c565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905550565b606083156107e7575081610324565b8251156107f75782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c9190610a05565b73ffffffffffffffffffffffffffffffffffffffff81163b6108cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e747261637400000000000000000000000000000000000000606482015260840161042c565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610792565b803573ffffffffffffffffffffffffffffffffffffffff8116811461091a57600080fd5b919050565b60006020828403121561093157600080fd5b610324826108f6565b60008060006040848603121561094f57600080fd5b610958846108f6565b9250602084013567ffffffffffffffff8082111561097557600080fd5b818601915086601f83011261098957600080fd5b81358181111561099857600080fd5b8760208285010111156109aa57600080fd5b6020830194508093505050509250925092565b60005b838110156109d85781810151838201526020016109c0565b838111156104c85750506000910152565b600082516109fb8184602087016109bd565b9190910192915050565b6020815260008251806020840152610a248160408501602087016109bd565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b29caa54336b3ee836679675e9732ec5e526fb3f803cca2fe336cc3555aba62264736f6c634300080a0033",execute:{methodName:"initialize",args:["0x6825142A0e85dDB3cBf872a26eE2beefaedbc465"]},implementation:"0xAcE790e32df6702E86D0733303e3d08793213Ec0",devdoc:{details:"This contract implements a proxy that is upgradeable by an admin. To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector clashing], which can potentially be used in an attack, this contract uses the https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two things that go hand in hand: 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if that call matches one of the admin functions exposed by the proxy itself. 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the implementation. If the admin tries to call a function on the implementation it will fail with an error that says \"admin cannot fallback to proxy target\". These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing the admin, so it's best if it's a dedicated account that is not used for anything else. This will avoid headaches due to sudden errors when trying to call a function from the proxy implementation. Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way, you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.",kind:"dev",methods:{"admin()":{details:"Returns the current admin. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`"},"changeAdmin(address)":{details:"Changes the admin of the proxy. Emits an {AdminChanged} event. NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}."},constructor:{details:"Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}."},"implementation()":{details:"Returns the current implementation. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`"},"upgradeTo(address)":{details:"Upgrade the implementation of the proxy. NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}."},"upgradeToAndCall(address,bytes)":{details:"Upgrade the implementation of the proxy, and then call a function from the new implementation as specified by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the proxied contract. NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}."}},version:1},userdoc:{kind:"user",methods:{},version:1},storageLayout:{storage:[],types:null}};var Fx={address:"0x6825142A0e85dDB3cBf872a26eE2beefaedbc465",abi:[{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"previousAdmin",type:"address"},{indexed:!1,internalType:"address",name:"newAdmin",type:"address"}],name:"AdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"beacon",type:"address"}],name:"BeaconUpgraded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"implementation",type:"address"}],name:"Upgraded",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"admin",outputs:[{internalType:"address",name:"admin_",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newAdmin",type:"address"}],name:"changeAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"implementation",outputs:[{internalType:"address",name:"implementation_",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"}],name:"upgradeTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"},{inputs:[],name:"ECDSAInvalidSignature",type:"error"},{inputs:[{internalType:"uint256",name:"length",type:"uint256"}],name:"ECDSAInvalidSignatureLength",type:"error"},{inputs:[{internalType:"bytes32",name:"s",type:"bytes32"}],name:"ECDSAInvalidSignatureS",type:"error"},{inputs:[],name:"InvalidInitialization",type:"error"},{inputs:[],name:"NotInitializing",type:"error"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"OwnableInvalidOwner",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"OwnableUnauthorizedAccount",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!1,internalType:"address",name:"grantee",type:"address"}],name:"AccessGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!1,internalType:"address",name:"grantee",type:"address"}],name:"AccessRevoked",type:"event"},{anonymous:!1,inputs:[],name:"EIP712DomainChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint64",name:"version",type:"uint64"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!1,internalType:"string",name:"namespace",type:"string"},{indexed:!1,internalType:"uint256",name:"nonce",type:"uint256"}],name:"MetaNamespaceRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!1,internalType:"string",name:"namespace",type:"string"},{indexed:!1,internalType:"string",name:"taskName",type:"string"},{indexed:!1,internalType:"uint256",name:"nonce",type:"uint256"}],name:"MetaTaskRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!1,internalType:"address",name:"oldOwner",type:"address"},{indexed:!1,internalType:"address",name:"newOwner",type:"address"}],name:"NamespaceOwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"NamespaceRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!0,internalType:"string",name:"taskName",type:"string"},{indexed:!1,internalType:"uint256",name:"version",type:"uint256"}],name:"TaskDisabled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!0,internalType:"string",name:"taskName",type:"string"},{indexed:!1,internalType:"uint256",name:"version",type:"uint256"}],name:"TaskEnabled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"cid",type:"string"},{indexed:!1,internalType:"address",name:"sender",type:"address"}],name:"TaskIdRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!0,internalType:"string",name:"taskName",type:"string"},{indexed:!1,internalType:"uint256",name:"version",type:"uint256"}],name:"TaskRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!0,internalType:"string",name:"taskName",type:"string"},{indexed:!1,internalType:"uint256",name:"version",type:"uint256"},{indexed:!1,internalType:"string",name:"label",type:"string"}],name:"VersionLabelSet",type:"event"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"},{internalType:"uint256",name:"version",type:"uint256"}],name:"disableTask",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"},{internalType:"string",name:"label",type:"string"}],name:"disableTaskByLabel",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"eip712Domain",outputs:[{internalType:"bytes1",name:"fields",type:"bytes1"},{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"version",type:"string"},{internalType:"uint256",name:"chainId",type:"uint256"},{internalType:"address",name:"verifyingContract",type:"address"},{internalType:"bytes32",name:"salt",type:"bytes32"},{internalType:"uint256[]",name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"},{internalType:"uint256",name:"version",type:"uint256"}],name:"enableTask",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"}],name:"getLatestActiveVersion",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"}],name:"getLatestVersion",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"}],name:"getTask",outputs:[{components:[{internalType:"string",name:"taskId",type:"string"},{internalType:"string",name:"meta",type:"string"},{internalType:"bool",name:"active",type:"bool"}],internalType:"struct TaskRegistry.Task",name:"",type:"tuple"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"},{internalType:"string",name:"label",type:"string"}],name:"getTaskByLabel",outputs:[{components:[{internalType:"string",name:"taskId",type:"string"},{internalType:"string",name:"meta",type:"string"},{internalType:"bool",name:"active",type:"bool"}],internalType:"struct TaskRegistry.Task",name:"",type:"tuple"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"},{internalType:"uint256",name:"version",type:"uint256"}],name:"getTaskByVersion",outputs:[{components:[{internalType:"string",name:"taskId",type:"string"},{internalType:"string",name:"meta",type:"string"},{internalType:"bool",name:"active",type:"bool"}],internalType:"struct TaskRegistry.Task",name:"",type:"tuple"},{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"address",name:"grantee",type:"address"}],name:"grantNamespaceAccess",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"input",type:"string"}],name:"isAsciiString",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"string",name:"taskId",type:"string"}],name:"isTaskRevoked",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"str",type:"string"}],name:"isValidName",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"string",name:"",type:"string"},{internalType:"string",name:"",type:"string"},{internalType:"string",name:"",type:"string"}],name:"labeledVersions",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"",type:"string"},{internalType:"string",name:"",type:"string"}],name:"latestVersion",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"",type:"string"},{internalType:"address",name:"",type:"address"}],name:"namespaceGrantees",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"",type:"string"}],name:"namespaceOwners",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"},{components:[{internalType:"string",name:"taskId",type:"string"},{internalType:"string",name:"meta",type:"string"},{internalType:"bool",name:"active",type:"bool"}],internalType:"struct TaskRegistry.Task",name:"task",type:"tuple"}],name:"registerTask",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"}],name:"registerTaskNamespace",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"string",name:"namespace",type:"string"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"registerTaskNamespaceWithSignature",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"},{components:[{internalType:"string",name:"taskId",type:"string"},{internalType:"string",name:"meta",type:"string"},{internalType:"bool",name:"active",type:"bool"}],internalType:"struct TaskRegistry.Task",name:"task",type:"tuple"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"registerTaskWithSignature",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"address",name:"grantee",type:"address"}],name:"revokeNamespaceAccess",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"taskId",type:"string"}],name:"revokeTask",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"",type:"string"}],name:"revokedTaskId",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"},{internalType:"uint256",name:"version",type:"uint256"},{internalType:"string",name:"label",type:"string"}],name:"setTaskLabel",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"",type:"string"},{internalType:"string",name:"",type:"string"},{internalType:"uint256",name:"",type:"uint256"}],name:"tasks",outputs:[{internalType:"string",name:"taskId",type:"string"},{internalType:"string",name:"meta",type:"string"},{internalType:"bool",name:"active",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"address",name:"newOwner",type:"address"}],name:"transferTaskNamespace",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_logic",type:"address"},{internalType:"address",name:"admin_",type:"address"},{internalType:"bytes",name:"_data",type:"bytes"}],stateMutability:"payable",type:"constructor"}],transactionHash:"0xb9e5160d0ef58150152792b730872186235e58776e7b569d17207a667b2d3b51",receipt:{to:null,from:"0xd70C3454aaD1B7ec660a064d8b1FE5708d898d84",contractAddress:"0x6825142A0e85dDB3cBf872a26eE2beefaedbc465",transactionIndex:3,gasUsed:"820456",logsBloom:"0x00000000000000000000000000000000400000000000000080800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000001000000000000000000000000100000000000020000000000000000000800000000800000000000000000000000400000000000000000000800000000000000080000000080000000020000800200000000000000000000000000000000000000000000000000000000040000400000000020000000000000000000000000000000002404000000000000000020000000000000000000000000008000000000000000000000000000000000000000",blockHash:"0x7fa352b460ebe8755792a5b457549d967f7e5e091e888a03df05a0f97115cde3",transactionHash:"0xb9e5160d0ef58150152792b730872186235e58776e7b569d17207a667b2d3b51",logs:[{transactionIndex:3,blockNumber:59397223,transactionHash:"0xb9e5160d0ef58150152792b730872186235e58776e7b569d17207a667b2d3b51",address:"0x6825142A0e85dDB3cBf872a26eE2beefaedbc465",topics:["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000da7703757a94e15c64e9e47844199a53f1235bd6"],data:"0x",logIndex:8,blockHash:"0x7fa352b460ebe8755792a5b457549d967f7e5e091e888a03df05a0f97115cde3"},{transactionIndex:3,blockNumber:59397223,transactionHash:"0xb9e5160d0ef58150152792b730872186235e58776e7b569d17207a667b2d3b51",address:"0x6825142A0e85dDB3cBf872a26eE2beefaedbc465",topics:["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x000000000000000000000000d70c3454aad1b7ec660a064d8b1fe5708d898d84"],data:"0x",logIndex:9,blockHash:"0x7fa352b460ebe8755792a5b457549d967f7e5e091e888a03df05a0f97115cde3"},{transactionIndex:3,blockNumber:59397223,transactionHash:"0xb9e5160d0ef58150152792b730872186235e58776e7b569d17207a667b2d3b51",address:"0x6825142A0e85dDB3cBf872a26eE2beefaedbc465",topics:["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"],data:"0x0000000000000000000000000000000000000000000000000000000000000001",logIndex:10,blockHash:"0x7fa352b460ebe8755792a5b457549d967f7e5e091e888a03df05a0f97115cde3"},{transactionIndex:3,blockNumber:59397223,transactionHash:"0xb9e5160d0ef58150152792b730872186235e58776e7b569d17207a667b2d3b51",address:"0x6825142A0e85dDB3cBf872a26eE2beefaedbc465",topics:["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],data:"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b8a703c0865645277636f2286f0d2db5f51e418",logIndex:11,blockHash:"0x7fa352b460ebe8755792a5b457549d967f7e5e091e888a03df05a0f97115cde3"}],blockNumber:59397223,cumulativeGasUsed:"1220673",status:1,byzantium:!0},args:["0xDA7703757a94E15c64E9E47844199a53F1235BD6","0x1B8a703c0865645277636f2286f0d2Db5f51E418","0x8129fc1c"],numDeployments:1,solcInputHash:"0e89febeebc7444140de8e67c9067d2c",metadata:'{"compiler":{"version":"0.8.10+commit.fc410830"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"admin_","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"admin_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"changeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"implementation_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}],"devdoc":{"details":"This contract implements a proxy that is upgradeable by an admin. To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector clashing], which can potentially be used in an attack, this contract uses the https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two things that go hand in hand: 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if that call matches one of the admin functions exposed by the proxy itself. 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the implementation. If the admin tries to call a function on the implementation it will fail with an error that says \\"admin cannot fallback to proxy target\\". These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing the admin, so it\'s best if it\'s a dedicated account that is not used for anything else. This will avoid headaches due to sudden errors when trying to call a function from the proxy implementation. Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way, you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.","kind":"dev","methods":{"admin()":{"details":"Returns the current admin. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`"},"changeAdmin(address)":{"details":"Changes the admin of the proxy. Emits an {AdminChanged} event. NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}."},"constructor":{"details":"Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}."},"implementation()":{"details":"Returns the current implementation. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`"},"upgradeTo(address)":{"details":"Upgrade the implementation of the proxy. NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}."},"upgradeToAndCall(address,bytes)":{"details":"Upgrade the implementation of the proxy, and then call a function from the new implementation as specified by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the proxied contract. NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}."}},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"compilationTarget":{"solc_0.8/openzeppelin/proxy/transparent/TransparentUpgradeableProxy.sol":"TransparentUpgradeableProxy"},"evmVersion":"london","libraries":{},"metadata":{"bytecodeHash":"ipfs","useLiteralContent":true},"optimizer":{"enabled":true,"runs":999999},"remappings":[]},"sources":{"solc_0.8/openzeppelin/interfaces/draft-IERC1822.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n","keccak256":"0x93b4e21c931252739a1ec13ea31d3d35a5c068be3163ccab83e4d70c40355f03","license":"MIT"},"solc_0.8/openzeppelin/proxy/ERC1967/ERC1967Proxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/ERC1967/ERC1967Proxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\"../Proxy.sol\\";\\nimport \\"./ERC1967Upgrade.sol\\";\\n\\n/**\\n * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an\\n * implementation address that can be changed. This address is stored in storage in the location specified by\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn\'t conflict with the storage layout of the\\n * implementation behind the proxy.\\n */\\ncontract ERC1967Proxy is Proxy, ERC1967Upgrade {\\n /**\\n * @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.\\n *\\n * If `_data` is nonempty, it\'s used as data in a delegate call to `_logic`. This will typically be an encoded\\n * function call, and allows initializating the storage of the proxy like a Solidity constructor.\\n */\\n constructor(address _logic, bytes memory _data) payable {\\n assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256(\\"eip1967.proxy.implementation\\")) - 1));\\n _upgradeToAndCall(_logic, _data, false);\\n }\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _implementation() internal view virtual override returns (address impl) {\\n return ERC1967Upgrade._getImplementation();\\n }\\n}\\n","keccak256":"0x6309f9f39dc6f4f45a24f296543867aa358e32946cd6b2874627a996d606b3a0","license":"MIT"},"solc_0.8/openzeppelin/proxy/ERC1967/ERC1967Upgrade.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (proxy/ERC1967/ERC1967Upgrade.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\"../beacon/IBeacon.sol\\";\\nimport \\"../../interfaces/draft-IERC1822.sol\\";\\nimport \\"../../utils/Address.sol\\";\\nimport \\"../../utils/StorageSlot.sol\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n *\\n * _Available since v4.1._\\n *\\n * @custom:oz-upgrades-unsafe-allow delegatecall\\n */\\nabstract contract ERC1967Upgrade {\\n // This is the keccak-256 hash of \\"eip1967.proxy.rollback\\" subtracted by 1\\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\"eip1967.proxy.implementation\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(Address.isContract(newImplementation), \\"ERC1967: new implementation is not a contract\\");\\n StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Perform implementation upgrade\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeTo(address newImplementation) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCall(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _upgradeTo(newImplementation);\\n if (data.length > 0 || forceCall) {\\n Address.functionDelegateCall(newImplementation, data);\\n }\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n // Upgrades from old implementations will perform a rollback test. This test requires the new\\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\\n // this special case will break upgrade paths from old UUPS implementation to new ones.\\n if (StorageSlot.getBooleanSlot(_ROLLBACK_SLOT).value) {\\n _setImplementation(newImplementation);\\n } else {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n require(slot == _IMPLEMENTATION_SLOT, \\"ERC1967Upgrade: unsupported proxiableUUID\\");\\n } catch {\\n revert(\\"ERC1967Upgrade: new implementation is not UUPS\\");\\n }\\n _upgradeToAndCall(newImplementation, data, forceCall);\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\"eip1967.proxy.admin\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _getAdmin() internal view virtual returns (address) {\\n return StorageSlot.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n require(newAdmin != address(0), \\"ERC1967: new admin is the zero address\\");\\n StorageSlot.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n */\\n function _changeAdmin(address newAdmin) internal {\\n emit AdminChanged(_getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is bytes32(uint256(keccak256(\'eip1967.proxy.beacon\')) - 1)) and is validated in the constructor.\\n */\\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Emitted when the beacon is upgraded.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function _getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(_BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n require(Address.isContract(newBeacon), \\"ERC1967: new beacon is not a contract\\");\\n require(Address.isContract(IBeacon(newBeacon).implementation()), \\"ERC1967: beacon implementation is not a contract\\");\\n StorageSlot.getAddressSlot(_BEACON_SLOT).value = newBeacon;\\n }\\n\\n /**\\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\\n *\\n * Emits a {BeaconUpgraded} event.\\n */\\n function _upgradeBeaconToAndCall(\\n address newBeacon,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n if (data.length > 0 || forceCall) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n }\\n }\\n}\\n","keccak256":"0x17668652127feebed0ce8d9431ef95ccc8c4292f03e3b8cf06c6ca16af396633","license":"MIT"},"solc_0.8/openzeppelin/proxy/Proxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (proxy/Proxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM\\n * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to\\n * be specified by overriding the virtual {_implementation} function.\\n *\\n * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a\\n * different contract through the {_delegate} function.\\n *\\n * The success and return data of the delegated call will be returned back to the caller of the proxy.\\n */\\nabstract contract Proxy {\\n /**\\n * @dev Delegates the current call to `implementation`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _delegate(address implementation) internal virtual {\\n assembly {\\n // Copy msg.data. We take full control of memory in this inline assembly\\n // block because it will not return to Solidity code. We overwrite the\\n // Solidity scratch pad at memory position 0.\\n calldatacopy(0, 0, calldatasize())\\n\\n // Call the implementation.\\n // out and outsize are 0 because we don\'t know the size yet.\\n let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\\n\\n // Copy the returned data.\\n returndatacopy(0, 0, returndatasize())\\n\\n switch result\\n // delegatecall returns 0 on error.\\n case 0 {\\n revert(0, returndatasize())\\n }\\n default {\\n return(0, returndatasize())\\n }\\n }\\n }\\n\\n /**\\n * @dev This is a virtual function that should be overriden so it returns the address to which the fallback function\\n * and {_fallback} should delegate.\\n */\\n function _implementation() internal view virtual returns (address);\\n\\n /**\\n * @dev Delegates the current call to the address returned by `_implementation()`.\\n *\\n * This function does not return to its internall call site, it will return directly to the external caller.\\n */\\n function _fallback() internal virtual {\\n _beforeFallback();\\n _delegate(_implementation());\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other\\n * function in the contract matches the call data.\\n */\\n fallback() external payable virtual {\\n _fallback();\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data\\n * is empty.\\n */\\n receive() external payable virtual {\\n _fallback();\\n }\\n\\n /**\\n * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`\\n * call, or as part of the Solidity `fallback` or `receive` functions.\\n *\\n * If overriden should call `super._beforeFallback()`.\\n */\\n function _beforeFallback() internal virtual {}\\n}\\n","keccak256":"0xd5d1fd16e9faff7fcb3a52e02a8d49156f42a38a03f07b5f1810c21c2149a8ab","license":"MIT"},"solc_0.8/openzeppelin/proxy/beacon/IBeacon.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {BeaconProxy} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n","keccak256":"0xd50a3421ac379ccb1be435fa646d66a65c986b4924f0849839f08692f39dde61","license":"MIT"},"solc_0.8/openzeppelin/proxy/transparent/TransparentUpgradeableProxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/transparent/TransparentUpgradeableProxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\"../ERC1967/ERC1967Proxy.sol\\";\\n\\n/**\\n * @dev This contract implements a proxy that is upgradeable by an admin.\\n *\\n * To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector\\n * clashing], which can potentially be used in an attack, this contract uses the\\n * https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two\\n * things that go hand in hand:\\n *\\n * 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if\\n * that call matches one of the admin functions exposed by the proxy itself.\\n * 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the\\n * implementation. If the admin tries to call a function on the implementation it will fail with an error that says\\n * \\"admin cannot fallback to proxy target\\".\\n *\\n * These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing\\n * the admin, so it\'s best if it\'s a dedicated account that is not used for anything else. This will avoid headaches due\\n * to sudden errors when trying to call a function from the proxy implementation.\\n *\\n * Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way,\\n * you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.\\n */\\ncontract TransparentUpgradeableProxy is ERC1967Proxy {\\n /**\\n * @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and\\n * optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}.\\n */\\n constructor(\\n address _logic,\\n address admin_,\\n bytes memory _data\\n ) payable ERC1967Proxy(_logic, _data) {\\n assert(_ADMIN_SLOT == bytes32(uint256(keccak256(\\"eip1967.proxy.admin\\")) - 1));\\n _changeAdmin(admin_);\\n }\\n\\n /**\\n * @dev Modifier used internally that will delegate the call to the implementation unless the sender is the admin.\\n */\\n modifier ifAdmin() {\\n if (msg.sender == _getAdmin()) {\\n _;\\n } else {\\n _fallback();\\n }\\n }\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the\\n * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function admin() external ifAdmin returns (address admin_) {\\n admin_ = _getAdmin();\\n }\\n\\n /**\\n * @dev Returns the current implementation.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the\\n * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`\\n */\\n function implementation() external ifAdmin returns (address implementation_) {\\n implementation_ = _implementation();\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}.\\n */\\n function changeAdmin(address newAdmin) external virtual ifAdmin {\\n _changeAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}.\\n */\\n function upgradeTo(address newImplementation) external ifAdmin {\\n _upgradeToAndCall(newImplementation, bytes(\\"\\"), false);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy, and then call a function from the new implementation as specified\\n * by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the\\n * proxied contract.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}.\\n */\\n function upgradeToAndCall(address newImplementation, bytes calldata data) external payable ifAdmin {\\n _upgradeToAndCall(newImplementation, data, true);\\n }\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _admin() internal view virtual returns (address) {\\n return _getAdmin();\\n }\\n\\n /**\\n * @dev Makes sure the admin cannot access the fallback function. See {Proxy-_beforeFallback}.\\n */\\n function _beforeFallback() internal virtual override {\\n require(msg.sender != _getAdmin(), \\"TransparentUpgradeableProxy: admin cannot fallback to proxy target\\");\\n super._beforeFallback();\\n }\\n}\\n","keccak256":"0x140055a64cf579d622e04f5a198595832bf2cb193cd0005f4f2d4d61ca906253","license":"MIT"},"solc_0.8/openzeppelin/utils/Address.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn\'t rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity\'s `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\"Address: insufficient balance\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\"\\");\\n require(success, \\"Address: unable to send value, recipient may have reverted\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCall(target, data, \\"Address: low-level call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\"Address: low-level call with value failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\"Address: insufficient balance for call\\");\\n require(isContract(target), \\"Address: call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\"Address: low-level static call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n require(isContract(target), \\"Address: static call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\"Address: low-level delegate call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(isContract(target), \\"Address: delegate call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verifies that a low level call was successful, and revert if it wasn\'t, either by bubbling the\\n * revert reason using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n }\\n}\\n","keccak256":"0x3777e696b62134e6177440dbe6e6601c0c156a443f57167194b67e75527439de","license":"MIT"},"solc_0.8/openzeppelin/utils/StorageSlot.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\"ERC1967: new implementation is not a contract\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._\\n */\\nlibrary StorageSlot {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n}\\n","keccak256":"0xfe1b7a9aa2a530a9e705b220e26cd584e2fbdc9602a3a1066032b12816b46aca","license":"MIT"}},"version":1}',bytecode:"0x6080604052604051620011b2380380620011b2833981016040819052620000269162000519565b82816200005560017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd620005f9565b6000805160206200116b833981519152146200007557620000756200061f565b6200008382826000620000e7565b50620000b3905060017fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6104620005f9565b6000805160206200114b83398151915214620000d357620000d36200061f565b620000de8262000124565b50505062000688565b620000f2836200017f565b600082511180620001005750805b156200011f576200011d8383620001c160201b620002ff1760201c565b505b505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6200014f620001f0565b604080516001600160a01b03928316815291841660208301520160405180910390a16200017c8162000229565b50565b6200018a81620002de565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060620001e983836040518060600160405280602781526020016200118b6027913962000381565b9392505050565b60006200021a6000805160206200114b83398151915260001b6200046760201b620002731760201c565b546001600160a01b0316919050565b6001600160a01b038116620002945760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b80620002bd6000805160206200114b83398151915260001b6200046760201b620002731760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b620002f4816200046a60201b6200032b1760201c565b620003585760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016200028b565b80620002bd6000805160206200116b83398151915260001b6200046760201b620002731760201c565b60606001600160a01b0384163b620003eb5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016200028b565b600080856001600160a01b03168560405162000408919062000635565b600060405180830381855af49150503d806000811462000445576040519150601f19603f3d011682016040523d82523d6000602084013e6200044a565b606091505b5090925090506200045d82828662000479565b9695505050505050565b90565b6001600160a01b03163b151590565b606083156200048a575081620001e9565b8251156200049b5782518084602001fd5b8160405162461bcd60e51b81526004016200028b919062000653565b80516001600160a01b0381168114620004cf57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101562000507578181015183820152602001620004ed565b838111156200011d5750506000910152565b6000806000606084860312156200052f57600080fd5b6200053a84620004b7565b92506200054a60208501620004b7565b60408501519092506001600160401b03808211156200056857600080fd5b818601915086601f8301126200057d57600080fd5b815181811115620005925762000592620004d4565b604051601f8201601f19908116603f01168101908382118183101715620005bd57620005bd620004d4565b81604052828152896020848701011115620005d757600080fd5b620005ea836020830160208801620004ea565b80955050505050509250925092565b6000828210156200061a57634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052600160045260246000fd5b6000825162000649818460208701620004ea565b9190910192915050565b602081526000825180602084015262000674816040850160208701620004ea565b601f01601f19169190910160400192915050565b610ab380620006986000396000f3fe60806040526004361061005e5760003560e01c80635c60da1b116100435780635c60da1b146100a85780638f283970146100e6578063f851a440146101065761006d565b80633659cfe6146100755780634f1ef286146100955761006d565b3661006d5761006b61011b565b005b61006b61011b565b34801561008157600080fd5b5061006b61009036600461091f565b610135565b61006b6100a336600461093a565b610196565b3480156100b457600080fd5b506100bd610221565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100f257600080fd5b5061006b61010136600461091f565b610276565b34801561011257600080fd5b506100bd6102ba565b610123610347565b61013361012e610435565b61043f565b565b61013d610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816040518060200160405280600081525060006104a3565b50565b61018b61011b565b61019e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610219576102148383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250600192506104a3915050565b505050565b61021461011b565b600061022b610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610435565b905090565b61027361011b565b90565b61027e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816104ce565b60006102c4610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610463565b60606103248383604051806060016040528060278152602001610a576027913961052f565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b61034f610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f7879207461726760648201527f6574000000000000000000000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b6000610266610657565b3660008037600080366000845af43d6000803e80801561045e573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b5473ffffffffffffffffffffffffffffffffffffffff16919050565b6104ac8361067f565b6000825111806104b95750805b15610214576104c883836102ff565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6104f7610463565b6040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301520160405180910390a161018b816106cc565b606073ffffffffffffffffffffffffffffffffffffffff84163b6105d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161042c565b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516105fd91906109e9565b600060405180830381855af49150503d8060008114610638576040519150601f19603f3d011682016040523d82523d6000602084013e61063d565b606091505b509150915061064d8282866107d8565b9695505050505050565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610487565b6106888161082b565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b73ffffffffffffffffffffffffffffffffffffffff811661076f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161042c565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905550565b606083156107e7575081610324565b8251156107f75782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c9190610a05565b73ffffffffffffffffffffffffffffffffffffffff81163b6108cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e747261637400000000000000000000000000000000000000606482015260840161042c565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610792565b803573ffffffffffffffffffffffffffffffffffffffff8116811461091a57600080fd5b919050565b60006020828403121561093157600080fd5b610324826108f6565b60008060006040848603121561094f57600080fd5b610958846108f6565b9250602084013567ffffffffffffffff8082111561097557600080fd5b818601915086601f83011261098957600080fd5b81358181111561099857600080fd5b8760208285010111156109aa57600080fd5b6020830194508093505050509250925092565b60005b838110156109d85781810151838201526020016109c0565b838111156104c85750506000910152565b600082516109fb8184602087016109bd565b9190910192915050565b6020815260008251806020840152610a248160408501602087016109bd565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b29caa54336b3ee836679675e9732ec5e526fb3f803cca2fe336cc3555aba62264736f6c634300080a0033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564",deployedBytecode:"0x60806040526004361061005e5760003560e01c80635c60da1b116100435780635c60da1b146100a85780638f283970146100e6578063f851a440146101065761006d565b80633659cfe6146100755780634f1ef286146100955761006d565b3661006d5761006b61011b565b005b61006b61011b565b34801561008157600080fd5b5061006b61009036600461091f565b610135565b61006b6100a336600461093a565b610196565b3480156100b457600080fd5b506100bd610221565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100f257600080fd5b5061006b61010136600461091f565b610276565b34801561011257600080fd5b506100bd6102ba565b610123610347565b61013361012e610435565b61043f565b565b61013d610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816040518060200160405280600081525060006104a3565b50565b61018b61011b565b61019e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610219576102148383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250600192506104a3915050565b505050565b61021461011b565b600061022b610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610435565b905090565b61027361011b565b90565b61027e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816104ce565b60006102c4610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610463565b60606103248383604051806060016040528060278152602001610a576027913961052f565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b61034f610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f7879207461726760648201527f6574000000000000000000000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b6000610266610657565b3660008037600080366000845af43d6000803e80801561045e573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b5473ffffffffffffffffffffffffffffffffffffffff16919050565b6104ac8361067f565b6000825111806104b95750805b15610214576104c883836102ff565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6104f7610463565b6040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301520160405180910390a161018b816106cc565b606073ffffffffffffffffffffffffffffffffffffffff84163b6105d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161042c565b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516105fd91906109e9565b600060405180830381855af49150503d8060008114610638576040519150601f19603f3d011682016040523d82523d6000602084013e61063d565b606091505b509150915061064d8282866107d8565b9695505050505050565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610487565b6106888161082b565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b73ffffffffffffffffffffffffffffffffffffffff811661076f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161042c565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905550565b606083156107e7575081610324565b8251156107f75782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c9190610a05565b73ffffffffffffffffffffffffffffffffffffffff81163b6108cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e747261637400000000000000000000000000000000000000606482015260840161042c565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610792565b803573ffffffffffffffffffffffffffffffffffffffff8116811461091a57600080fd5b919050565b60006020828403121561093157600080fd5b610324826108f6565b60008060006040848603121561094f57600080fd5b610958846108f6565b9250602084013567ffffffffffffffff8082111561097557600080fd5b818601915086601f83011261098957600080fd5b81358181111561099857600080fd5b8760208285010111156109aa57600080fd5b6020830194508093505050509250925092565b60005b838110156109d85781810151838201526020016109c0565b838111156104c85750506000910152565b600082516109fb8184602087016109bd565b9190910192915050565b6020815260008251806020840152610a248160408501602087016109bd565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b29caa54336b3ee836679675e9732ec5e526fb3f803cca2fe336cc3555aba62264736f6c634300080a0033",execute:{methodName:"initialize",args:[]},implementation:"0xDA7703757a94E15c64E9E47844199a53F1235BD6",devdoc:{details:"This contract implements a proxy that is upgradeable by an admin. To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector clashing], which can potentially be used in an attack, this contract uses the https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two things that go hand in hand: 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if that call matches one of the admin functions exposed by the proxy itself. 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the implementation. If the admin tries to call a function on the implementation it will fail with an error that says \"admin cannot fallback to proxy target\". These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing the admin, so it's best if it's a dedicated account that is not used for anything else. This will avoid headaches due to sudden errors when trying to call a function from the proxy implementation. Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way, you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.",kind:"dev",methods:{"admin()":{details:"Returns the current admin. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`"},"changeAdmin(address)":{details:"Changes the admin of the proxy. Emits an {AdminChanged} event. NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}."},constructor:{details:"Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}."},"implementation()":{details:"Returns the current implementation. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`"},"upgradeTo(address)":{details:"Upgrade the implementation of the proxy. NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}."},"upgradeToAndCall(address,bytes)":{details:"Upgrade the implementation of the proxy, and then call a function from the new implementation as specified by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the proxied contract. NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}."}},version:1},userdoc:{kind:"user",methods:{},version:1},storageLayout:{storage:[],types:null}};var Ux={address:"0x6E7175c46C1e2aC0EEE92C22Fa18Df0D98da72C2",abi:[{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"previousAdmin",type:"address"},{indexed:!1,internalType:"address",name:"newAdmin",type:"address"}],name:"AdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"beacon",type:"address"}],name:"BeaconUpgraded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"implementation",type:"address"}],name:"Upgraded",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"admin",outputs:[{internalType:"address",name:"admin_",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newAdmin",type:"address"}],name:"changeAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"implementation",outputs:[{internalType:"address",name:"implementation_",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"}],name:"upgradeTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"},{inputs:[],name:"InvalidInitialization",type:"error"},{inputs:[],name:"NotInitializing",type:"error"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"OwnableInvalidOwner",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"OwnableUnauthorizedAccount",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"id",type:"address"}],name:"DeRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint64",name:"version",type:"uint64"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"id",type:"address"},{indexed:!1,internalType:"uint256",name:"index",type:"uint256"}],name:"Registered",type:"event"},{inputs:[],name:"deRegister",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"id",type:"address"}],name:"deRegisterAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"deRegisterAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"getNodeAtIndex",outputs:[{components:[{internalType:"address",name:"nodeAddress",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"},{internalType:"uint256",name:"timestamp",type:"uint256"}],internalType:"struct NodeRegistry.Registration",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"getNodeCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"node",type:"address"}],name:"getNodeIndexByAddress",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getNodes",outputs:[{components:[{internalType:"address",name:"nodeAddress",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"},{internalType:"uint256",name:"timestamp",type:"uint256"}],internalType:"struct NodeRegistry.Registration[]",name:"",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"nodeIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"registerNode",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"registeredNodes",outputs:[{internalType:"address",name:"nodeAddress",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"},{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_logic",type:"address"},{internalType:"address",name:"admin_",type:"address"},{internalType:"bytes",name:"_data",type:"bytes"}],stateMutability:"payable",type:"constructor"}],transactionHash:"0xc7a9563251541a668ff8ffbf5518ab737a1352482a296591926cead43a255db2",receipt:{to:null,from:"0xd70C3454aaD1B7ec660a064d8b1FE5708d898d84",contractAddress:"0x6E7175c46C1e2aC0EEE92C22Fa18Df0D98da72C2",transactionIndex:1,gasUsed:"839035",logsBloom:"0x00000000000000000000000000000000400000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000001000000000000000000000000000000000000020000000000000000000800000000800000000000000000000000400000000000000000000800000000000000000000000080000000020000800000000000000000000040000000000000000000000000000000000000000000410000000020000000000000000000000000000000000404200000040000080020001000000000000000000000008000000000000000000000000000000000000000",blockHash:"0x205dbb82ca1daae9a6f2b934f8bd3e1c8a1d0f529d92007bbfaaaead59552608",transactionHash:"0xc7a9563251541a668ff8ffbf5518ab737a1352482a296591926cead43a255db2",logs:[{transactionIndex:1,blockNumber:59397215,transactionHash:"0xc7a9563251541a668ff8ffbf5518ab737a1352482a296591926cead43a255db2",address:"0x6E7175c46C1e2aC0EEE92C22Fa18Df0D98da72C2",topics:["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x0000000000000000000000001557aa7ceaeb03e1f25c0e71205bc79053ef35ce"],data:"0x",logIndex:4,blockHash:"0x205dbb82ca1daae9a6f2b934f8bd3e1c8a1d0f529d92007bbfaaaead59552608"},{transactionIndex:1,blockNumber:59397215,transactionHash:"0xc7a9563251541a668ff8ffbf5518ab737a1352482a296591926cead43a255db2",address:"0x6E7175c46C1e2aC0EEE92C22Fa18Df0D98da72C2",topics:["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x000000000000000000000000d70c3454aad1b7ec660a064d8b1fe5708d898d84"],data:"0x",logIndex:5,blockHash:"0x205dbb82ca1daae9a6f2b934f8bd3e1c8a1d0f529d92007bbfaaaead59552608"},{transactionIndex:1,blockNumber:59397215,transactionHash:"0xc7a9563251541a668ff8ffbf5518ab737a1352482a296591926cead43a255db2",address:"0x6E7175c46C1e2aC0EEE92C22Fa18Df0D98da72C2",topics:["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"],data:"0x0000000000000000000000000000000000000000000000000000000000000001",logIndex:6,blockHash:"0x205dbb82ca1daae9a6f2b934f8bd3e1c8a1d0f529d92007bbfaaaead59552608"},{transactionIndex:1,blockNumber:59397215,transactionHash:"0xc7a9563251541a668ff8ffbf5518ab737a1352482a296591926cead43a255db2",address:"0x6E7175c46C1e2aC0EEE92C22Fa18Df0D98da72C2",topics:["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],data:"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b8a703c0865645277636f2286f0d2db5f51e418",logIndex:7,blockHash:"0x205dbb82ca1daae9a6f2b934f8bd3e1c8a1d0f529d92007bbfaaaead59552608"}],blockNumber:59397215,cumulativeGasUsed:"1032567",status:1,byzantium:!0},args:["0x1557aA7CeAEB03e1F25c0e71205bC79053EF35CE","0x1B8a703c0865645277636f2286f0d2Db5f51E418","0x8129fc1c"],numDeployments:1,solcInputHash:"0e89febeebc7444140de8e67c9067d2c",metadata:'{"compiler":{"version":"0.8.10+commit.fc410830"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"admin_","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"admin_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"changeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"implementation_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}],"devdoc":{"details":"This contract implements a proxy that is upgradeable by an admin. To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector clashing], which can potentially be used in an attack, this contract uses the https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two things that go hand in hand: 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if that call matches one of the admin functions exposed by the proxy itself. 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the implementation. If the admin tries to call a function on the implementation it will fail with an error that says \\"admin cannot fallback to proxy target\\". These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing the admin, so it\'s best if it\'s a dedicated account that is not used for anything else. This will avoid headaches due to sudden errors when trying to call a function from the proxy implementation. Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way, you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.","kind":"dev","methods":{"admin()":{"details":"Returns the current admin. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`"},"changeAdmin(address)":{"details":"Changes the admin of the proxy. Emits an {AdminChanged} event. NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}."},"constructor":{"details":"Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}."},"implementation()":{"details":"Returns the current implementation. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`"},"upgradeTo(address)":{"details":"Upgrade the implementation of the proxy. NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}."},"upgradeToAndCall(address,bytes)":{"details":"Upgrade the implementation of the proxy, and then call a function from the new implementation as specified by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the proxied contract. NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}."}},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"compilationTarget":{"solc_0.8/openzeppelin/proxy/transparent/TransparentUpgradeableProxy.sol":"TransparentUpgradeableProxy"},"evmVersion":"london","libraries":{},"metadata":{"bytecodeHash":"ipfs","useLiteralContent":true},"optimizer":{"enabled":true,"runs":999999},"remappings":[]},"sources":{"solc_0.8/openzeppelin/interfaces/draft-IERC1822.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n","keccak256":"0x93b4e21c931252739a1ec13ea31d3d35a5c068be3163ccab83e4d70c40355f03","license":"MIT"},"solc_0.8/openzeppelin/proxy/ERC1967/ERC1967Proxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/ERC1967/ERC1967Proxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\"../Proxy.sol\\";\\nimport \\"./ERC1967Upgrade.sol\\";\\n\\n/**\\n * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an\\n * implementation address that can be changed. This address is stored in storage in the location specified by\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn\'t conflict with the storage layout of the\\n * implementation behind the proxy.\\n */\\ncontract ERC1967Proxy is Proxy, ERC1967Upgrade {\\n /**\\n * @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.\\n *\\n * If `_data` is nonempty, it\'s used as data in a delegate call to `_logic`. This will typically be an encoded\\n * function call, and allows initializating the storage of the proxy like a Solidity constructor.\\n */\\n constructor(address _logic, bytes memory _data) payable {\\n assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256(\\"eip1967.proxy.implementation\\")) - 1));\\n _upgradeToAndCall(_logic, _data, false);\\n }\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _implementation() internal view virtual override returns (address impl) {\\n return ERC1967Upgrade._getImplementation();\\n }\\n}\\n","keccak256":"0x6309f9f39dc6f4f45a24f296543867aa358e32946cd6b2874627a996d606b3a0","license":"MIT"},"solc_0.8/openzeppelin/proxy/ERC1967/ERC1967Upgrade.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (proxy/ERC1967/ERC1967Upgrade.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\"../beacon/IBeacon.sol\\";\\nimport \\"../../interfaces/draft-IERC1822.sol\\";\\nimport \\"../../utils/Address.sol\\";\\nimport \\"../../utils/StorageSlot.sol\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n *\\n * _Available since v4.1._\\n *\\n * @custom:oz-upgrades-unsafe-allow delegatecall\\n */\\nabstract contract ERC1967Upgrade {\\n // This is the keccak-256 hash of \\"eip1967.proxy.rollback\\" subtracted by 1\\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\"eip1967.proxy.implementation\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(Address.isContract(newImplementation), \\"ERC1967: new implementation is not a contract\\");\\n StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Perform implementation upgrade\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeTo(address newImplementation) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCall(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _upgradeTo(newImplementation);\\n if (data.length > 0 || forceCall) {\\n Address.functionDelegateCall(newImplementation, data);\\n }\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n // Upgrades from old implementations will perform a rollback test. This test requires the new\\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\\n // this special case will break upgrade paths from old UUPS implementation to new ones.\\n if (StorageSlot.getBooleanSlot(_ROLLBACK_SLOT).value) {\\n _setImplementation(newImplementation);\\n } else {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n require(slot == _IMPLEMENTATION_SLOT, \\"ERC1967Upgrade: unsupported proxiableUUID\\");\\n } catch {\\n revert(\\"ERC1967Upgrade: new implementation is not UUPS\\");\\n }\\n _upgradeToAndCall(newImplementation, data, forceCall);\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\"eip1967.proxy.admin\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _getAdmin() internal view virtual returns (address) {\\n return StorageSlot.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n require(newAdmin != address(0), \\"ERC1967: new admin is the zero address\\");\\n StorageSlot.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n */\\n function _changeAdmin(address newAdmin) internal {\\n emit AdminChanged(_getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is bytes32(uint256(keccak256(\'eip1967.proxy.beacon\')) - 1)) and is validated in the constructor.\\n */\\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Emitted when the beacon is upgraded.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function _getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(_BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n require(Address.isContract(newBeacon), \\"ERC1967: new beacon is not a contract\\");\\n require(Address.isContract(IBeacon(newBeacon).implementation()), \\"ERC1967: beacon implementation is not a contract\\");\\n StorageSlot.getAddressSlot(_BEACON_SLOT).value = newBeacon;\\n }\\n\\n /**\\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\\n *\\n * Emits a {BeaconUpgraded} event.\\n */\\n function _upgradeBeaconToAndCall(\\n address newBeacon,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n if (data.length > 0 || forceCall) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n }\\n }\\n}\\n","keccak256":"0x17668652127feebed0ce8d9431ef95ccc8c4292f03e3b8cf06c6ca16af396633","license":"MIT"},"solc_0.8/openzeppelin/proxy/Proxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (proxy/Proxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM\\n * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to\\n * be specified by overriding the virtual {_implementation} function.\\n *\\n * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a\\n * different contract through the {_delegate} function.\\n *\\n * The success and return data of the delegated call will be returned back to the caller of the proxy.\\n */\\nabstract contract Proxy {\\n /**\\n * @dev Delegates the current call to `implementation`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _delegate(address implementation) internal virtual {\\n assembly {\\n // Copy msg.data. We take full control of memory in this inline assembly\\n // block because it will not return to Solidity code. We overwrite the\\n // Solidity scratch pad at memory position 0.\\n calldatacopy(0, 0, calldatasize())\\n\\n // Call the implementation.\\n // out and outsize are 0 because we don\'t know the size yet.\\n let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\\n\\n // Copy the returned data.\\n returndatacopy(0, 0, returndatasize())\\n\\n switch result\\n // delegatecall returns 0 on error.\\n case 0 {\\n revert(0, returndatasize())\\n }\\n default {\\n return(0, returndatasize())\\n }\\n }\\n }\\n\\n /**\\n * @dev This is a virtual function that should be overriden so it returns the address to which the fallback function\\n * and {_fallback} should delegate.\\n */\\n function _implementation() internal view virtual returns (address);\\n\\n /**\\n * @dev Delegates the current call to the address returned by `_implementation()`.\\n *\\n * This function does not return to its internall call site, it will return directly to the external caller.\\n */\\n function _fallback() internal virtual {\\n _beforeFallback();\\n _delegate(_implementation());\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other\\n * function in the contract matches the call data.\\n */\\n fallback() external payable virtual {\\n _fallback();\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data\\n * is empty.\\n */\\n receive() external payable virtual {\\n _fallback();\\n }\\n\\n /**\\n * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`\\n * call, or as part of the Solidity `fallback` or `receive` functions.\\n *\\n * If overriden should call `super._beforeFallback()`.\\n */\\n function _beforeFallback() internal virtual {}\\n}\\n","keccak256":"0xd5d1fd16e9faff7fcb3a52e02a8d49156f42a38a03f07b5f1810c21c2149a8ab","license":"MIT"},"solc_0.8/openzeppelin/proxy/beacon/IBeacon.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {BeaconProxy} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n","keccak256":"0xd50a3421ac379ccb1be435fa646d66a65c986b4924f0849839f08692f39dde61","license":"MIT"},"solc_0.8/openzeppelin/proxy/transparent/TransparentUpgradeableProxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/transparent/TransparentUpgradeableProxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\"../ERC1967/ERC1967Proxy.sol\\";\\n\\n/**\\n * @dev This contract implements a proxy that is upgradeable by an admin.\\n *\\n * To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector\\n * clashing], which can potentially be used in an attack, this contract uses the\\n * https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two\\n * things that go hand in hand:\\n *\\n * 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if\\n * that call matches one of the admin functions exposed by the proxy itself.\\n * 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the\\n * implementation. If the admin tries to call a function on the implementation it will fail with an error that says\\n * \\"admin cannot fallback to proxy target\\".\\n *\\n * These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing\\n * the admin, so it\'s best if it\'s a dedicated account that is not used for anything else. This will avoid headaches due\\n * to sudden errors when trying to call a function from the proxy implementation.\\n *\\n * Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way,\\n * you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.\\n */\\ncontract TransparentUpgradeableProxy is ERC1967Proxy {\\n /**\\n * @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and\\n * optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}.\\n */\\n constructor(\\n address _logic,\\n address admin_,\\n bytes memory _data\\n ) payable ERC1967Proxy(_logic, _data) {\\n assert(_ADMIN_SLOT == bytes32(uint256(keccak256(\\"eip1967.proxy.admin\\")) - 1));\\n _changeAdmin(admin_);\\n }\\n\\n /**\\n * @dev Modifier used internally that will delegate the call to the implementation unless the sender is the admin.\\n */\\n modifier ifAdmin() {\\n if (msg.sender == _getAdmin()) {\\n _;\\n } else {\\n _fallback();\\n }\\n }\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the\\n * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function admin() external ifAdmin returns (address admin_) {\\n admin_ = _getAdmin();\\n }\\n\\n /**\\n * @dev Returns the current implementation.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the\\n * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`\\n */\\n function implementation() external ifAdmin returns (address implementation_) {\\n implementation_ = _implementation();\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}.\\n */\\n function changeAdmin(address newAdmin) external virtual ifAdmin {\\n _changeAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}.\\n */\\n function upgradeTo(address newImplementation) external ifAdmin {\\n _upgradeToAndCall(newImplementation, bytes(\\"\\"), false);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy, and then call a function from the new implementation as specified\\n * by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the\\n * proxied contract.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}.\\n */\\n function upgradeToAndCall(address newImplementation, bytes calldata data) external payable ifAdmin {\\n _upgradeToAndCall(newImplementation, data, true);\\n }\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _admin() internal view virtual returns (address) {\\n return _getAdmin();\\n }\\n\\n /**\\n * @dev Makes sure the admin cannot access the fallback function. See {Proxy-_beforeFallback}.\\n */\\n function _beforeFallback() internal virtual override {\\n require(msg.sender != _getAdmin(), \\"TransparentUpgradeableProxy: admin cannot fallback to proxy target\\");\\n super._beforeFallback();\\n }\\n}\\n","keccak256":"0x140055a64cf579d622e04f5a198595832bf2cb193cd0005f4f2d4d61ca906253","license":"MIT"},"solc_0.8/openzeppelin/utils/Address.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn\'t rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity\'s `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\"Address: insufficient balance\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\"\\");\\n require(success, \\"Address: unable to send value, recipient may have reverted\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCall(target, data, \\"Address: low-level call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\"Address: low-level call with value failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\"Address: insufficient balance for call\\");\\n require(isContract(target), \\"Address: call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\"Address: low-level static call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n require(isContract(target), \\"Address: static call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\"Address: low-level delegate call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(isContract(target), \\"Address: delegate call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verifies that a low level call was successful, and revert if it wasn\'t, either by bubbling the\\n * revert reason using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n }\\n}\\n","keccak256":"0x3777e696b62134e6177440dbe6e6601c0c156a443f57167194b67e75527439de","license":"MIT"},"solc_0.8/openzeppelin/utils/StorageSlot.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\"ERC1967: new implementation is not a contract\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._\\n */\\nlibrary StorageSlot {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n}\\n","keccak256":"0xfe1b7a9aa2a530a9e705b220e26cd584e2fbdc9602a3a1066032b12816b46aca","license":"MIT"}},"version":1}',bytecode:"0x6080604052604051620011b2380380620011b2833981016040819052620000269162000519565b82816200005560017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd620005f9565b6000805160206200116b833981519152146200007557620000756200061f565b6200008382826000620000e7565b50620000b3905060017fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6104620005f9565b6000805160206200114b83398151915214620000d357620000d36200061f565b620000de8262000124565b50505062000688565b620000f2836200017f565b600082511180620001005750805b156200011f576200011d8383620001c160201b620002ff1760201c565b505b505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6200014f620001f0565b604080516001600160a01b03928316815291841660208301520160405180910390a16200017c8162000229565b50565b6200018a81620002de565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060620001e983836040518060600160405280602781526020016200118b6027913962000381565b9392505050565b60006200021a6000805160206200114b83398151915260001b6200046760201b620002731760201c565b546001600160a01b0316919050565b6001600160a01b038116620002945760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b80620002bd6000805160206200114b83398151915260001b6200046760201b620002731760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b620002f4816200046a60201b6200032b1760201c565b620003585760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016200028b565b80620002bd6000805160206200116b83398151915260001b6200046760201b620002731760201c565b60606001600160a01b0384163b620003eb5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016200028b565b600080856001600160a01b03168560405162000408919062000635565b600060405180830381855af49150503d806000811462000445576040519150601f19603f3d011682016040523d82523d6000602084013e6200044a565b606091505b5090925090506200045d82828662000479565b9695505050505050565b90565b6001600160a01b03163b151590565b606083156200048a575081620001e9565b8251156200049b5782518084602001fd5b8160405162461bcd60e51b81526004016200028b919062000653565b80516001600160a01b0381168114620004cf57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101562000507578181015183820152602001620004ed565b838111156200011d5750506000910152565b6000806000606084860312156200052f57600080fd5b6200053a84620004b7565b92506200054a60208501620004b7565b60408501519092506001600160401b03808211156200056857600080fd5b818601915086601f8301126200057d57600080fd5b815181811115620005925762000592620004d4565b604051601f8201601f19908116603f01168101908382118183101715620005bd57620005bd620004d4565b81604052828152896020848701011115620005d757600080fd5b620005ea836020830160208801620004ea565b80955050505050509250925092565b6000828210156200061a57634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052600160045260246000fd5b6000825162000649818460208701620004ea565b9190910192915050565b602081526000825180602084015262000674816040850160208701620004ea565b601f01601f19169190910160400192915050565b610ab380620006986000396000f3fe60806040526004361061005e5760003560e01c80635c60da1b116100435780635c60da1b146100a85780638f283970146100e6578063f851a440146101065761006d565b80633659cfe6146100755780634f1ef286146100955761006d565b3661006d5761006b61011b565b005b61006b61011b565b34801561008157600080fd5b5061006b61009036600461091f565b610135565b61006b6100a336600461093a565b610196565b3480156100b457600080fd5b506100bd610221565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100f257600080fd5b5061006b61010136600461091f565b610276565b34801561011257600080fd5b506100bd6102ba565b610123610347565b61013361012e610435565b61043f565b565b61013d610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816040518060200160405280600081525060006104a3565b50565b61018b61011b565b61019e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610219576102148383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250600192506104a3915050565b505050565b61021461011b565b600061022b610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610435565b905090565b61027361011b565b90565b61027e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816104ce565b60006102c4610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610463565b60606103248383604051806060016040528060278152602001610a576027913961052f565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b61034f610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f7879207461726760648201527f6574000000000000000000000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b6000610266610657565b3660008037600080366000845af43d6000803e80801561045e573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b5473ffffffffffffffffffffffffffffffffffffffff16919050565b6104ac8361067f565b6000825111806104b95750805b15610214576104c883836102ff565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6104f7610463565b6040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301520160405180910390a161018b816106cc565b606073ffffffffffffffffffffffffffffffffffffffff84163b6105d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161042c565b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516105fd91906109e9565b600060405180830381855af49150503d8060008114610638576040519150601f19603f3d011682016040523d82523d6000602084013e61063d565b606091505b509150915061064d8282866107d8565b9695505050505050565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610487565b6106888161082b565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b73ffffffffffffffffffffffffffffffffffffffff811661076f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161042c565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905550565b606083156107e7575081610324565b8251156107f75782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c9190610a05565b73ffffffffffffffffffffffffffffffffffffffff81163b6108cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e747261637400000000000000000000000000000000000000606482015260840161042c565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610792565b803573ffffffffffffffffffffffffffffffffffffffff8116811461091a57600080fd5b919050565b60006020828403121561093157600080fd5b610324826108f6565b60008060006040848603121561094f57600080fd5b610958846108f6565b9250602084013567ffffffffffffffff8082111561097557600080fd5b818601915086601f83011261098957600080fd5b81358181111561099857600080fd5b8760208285010111156109aa57600080fd5b6020830194508093505050509250925092565b60005b838110156109d85781810151838201526020016109c0565b838111156104c85750506000910152565b600082516109fb8184602087016109bd565b9190910192915050565b6020815260008251806020840152610a248160408501602087016109bd565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b29caa54336b3ee836679675e9732ec5e526fb3f803cca2fe336cc3555aba62264736f6c634300080a0033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564",deployedBytecode:"0x60806040526004361061005e5760003560e01c80635c60da1b116100435780635c60da1b146100a85780638f283970146100e6578063f851a440146101065761006d565b80633659cfe6146100755780634f1ef286146100955761006d565b3661006d5761006b61011b565b005b61006b61011b565b34801561008157600080fd5b5061006b61009036600461091f565b610135565b61006b6100a336600461093a565b610196565b3480156100b457600080fd5b506100bd610221565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100f257600080fd5b5061006b61010136600461091f565b610276565b34801561011257600080fd5b506100bd6102ba565b610123610347565b61013361012e610435565b61043f565b565b61013d610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816040518060200160405280600081525060006104a3565b50565b61018b61011b565b61019e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610219576102148383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250600192506104a3915050565b505050565b61021461011b565b600061022b610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610435565b905090565b61027361011b565b90565b61027e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816104ce565b60006102c4610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610463565b60606103248383604051806060016040528060278152602001610a576027913961052f565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b61034f610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f7879207461726760648201527f6574000000000000000000000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b6000610266610657565b3660008037600080366000845af43d6000803e80801561045e573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b5473ffffffffffffffffffffffffffffffffffffffff16919050565b6104ac8361067f565b6000825111806104b95750805b15610214576104c883836102ff565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6104f7610463565b6040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301520160405180910390a161018b816106cc565b606073ffffffffffffffffffffffffffffffffffffffff84163b6105d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161042c565b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516105fd91906109e9565b600060405180830381855af49150503d8060008114610638576040519150601f19603f3d011682016040523d82523d6000602084013e61063d565b606091505b509150915061064d8282866107d8565b9695505050505050565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610487565b6106888161082b565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b73ffffffffffffffffffffffffffffffffffffffff811661076f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161042c565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905550565b606083156107e7575081610324565b8251156107f75782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c9190610a05565b73ffffffffffffffffffffffffffffffffffffffff81163b6108cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e747261637400000000000000000000000000000000000000606482015260840161042c565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610792565b803573ffffffffffffffffffffffffffffffffffffffff8116811461091a57600080fd5b919050565b60006020828403121561093157600080fd5b610324826108f6565b60008060006040848603121561094f57600080fd5b610958846108f6565b9250602084013567ffffffffffffffff8082111561097557600080fd5b818601915086601f83011261098957600080fd5b81358181111561099857600080fd5b8760208285010111156109aa57600080fd5b6020830194508093505050509250925092565b60005b838110156109d85781810151838201526020016109c0565b838111156104c85750506000910152565b600082516109fb8184602087016109bd565b9190910192915050565b6020815260008251806020840152610a248160408501602087016109bd565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b29caa54336b3ee836679675e9732ec5e526fb3f803cca2fe336cc3555aba62264736f6c634300080a0033",execute:{methodName:"initialize",args:[]},implementation:"0x1557aA7CeAEB03e1F25c0e71205bC79053EF35CE",devdoc:{details:"This contract implements a proxy that is upgradeable by an admin. To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector clashing], which can potentially be used in an attack, this contract uses the https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two things that go hand in hand: 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if that call matches one of the admin functions exposed by the proxy itself. 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the implementation. If the admin tries to call a function on the implementation it will fail with an error that says \"admin cannot fallback to proxy target\". These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing the admin, so it's best if it's a dedicated account that is not used for anything else. This will avoid headaches due to sudden errors when trying to call a function from the proxy implementation. Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way, you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.",kind:"dev",methods:{"admin()":{details:"Returns the current admin. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`"},"changeAdmin(address)":{details:"Changes the admin of the proxy. Emits an {AdminChanged} event. NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}."},constructor:{details:"Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}."},"implementation()":{details:"Returns the current implementation. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`"},"upgradeTo(address)":{details:"Upgrade the implementation of the proxy. NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}."},"upgradeToAndCall(address,bytes)":{details:"Upgrade the implementation of the proxy, and then call a function from the new implementation as specified by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the proxied contract. NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}."}},version:1},userdoc:{kind:"user",methods:{},version:1},storageLayout:{storage:[],types:null}};var Sp={address:"0x0165878A594ca255338adfa4d48449f69242Eb8F",abi:[{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"previousAdmin",type:"address"},{indexed:!1,internalType:"address",name:"newAdmin",type:"address"}],name:"AdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"beacon",type:"address"}],name:"BeaconUpgraded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"implementation",type:"address"}],name:"Upgraded",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"admin",outputs:[{internalType:"address",name:"admin_",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newAdmin",type:"address"}],name:"changeAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"implementation",outputs:[{internalType:"address",name:"implementation_",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"}],name:"upgradeTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"},{inputs:[],name:"ECDSAInvalidSignature",type:"error"},{inputs:[{internalType:"uint256",name:"length",type:"uint256"}],name:"ECDSAInvalidSignatureLength",type:"error"},{inputs:[{internalType:"bytes32",name:"s",type:"bytes32"}],name:"ECDSAInvalidSignatureS",type:"error"},{inputs:[],name:"InvalidInitialization",type:"error"},{inputs:[],name:"NotInitializing",type:"error"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"OwnableInvalidOwner",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"OwnableUnauthorizedAccount",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"}],name:"Deregistered",type:"event"},{anonymous:!1,inputs:[],name:"EIP712DomainChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!0,internalType:"address",name:"grantee",type:"address"}],name:"Granted",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint64",name:"version",type:"uint64"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"}],name:"Registered",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!0,internalType:"address",name:"grantee",type:"address"}],name:"Revoked",type:"event"},{inputs:[{internalType:"string",name:"apiKeyHash",type:"string"}],name:"deregister",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"string",name:"apiKeyHash",type:"string"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"deregisterWithSignature",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"eip712Domain",outputs:[{internalType:"bytes1",name:"fields",type:"bytes1"},{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"version",type:"string"},{internalType:"uint256",name:"chainId",type:"uint256"},{internalType:"address",name:"verifyingContract",type:"address"},{internalType:"bytes32",name:"salt",type:"bytes32"},{internalType:"uint256[]",name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"apiKeyHash",type:"string"}],name:"getPayer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"address",name:"grantee",type:"address"}],name:"grant",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"string",name:"namespace",type:"string"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"grantWithSignature",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_taskRegistry",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"address",name:"grantee",type:"address"}],name:"isAuthorized",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"apiKeyHash",type:"string"}],name:"register",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"string",name:"apiKeyHash",type:"string"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"registerWithSignature",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"address",name:"grantee",type:"address"}],name:"revoke",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"string",name:"namespace",type:"string"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"revokeWithSignature",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_taskRegistry",type:"address"}],name:"setTaskRegistry",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"taskRegistry",outputs:[{internalType:"contract ITaskRegistry",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_logic",type:"address"},{internalType:"address",name:"admin_",type:"address"},{internalType:"bytes",name:"_data",type:"bytes"}],stateMutability:"payable",type:"constructor"}],transactionHash:"0x5b92dd09adac965328f77cbbc5864883547819039491fa6db463264fcb03938b",receipt:{to:null,from:"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",contractAddress:"0x0165878A594ca255338adfa4d48449f69242Eb8F",transactionIndex:0,gasUsed:"842927",logsBloom:"0x00000000000000000000000000000000400000000000000000800000000000000000000000000000000000000000000040000000000000000000000000000000001000000000000000000000000002000001000000000000000000000000000000000000020000000000000100000800000000800000000000000000000000440000000000000000000800000000000000000000000080000000000000800000100000000000000000000000000000000000000000000000000000000000000000000024000000200000000000000000000000002404001000000000000020000000000000000000000000000000000000000000000000000000000000000000",blockHash:"0xabdf8cbf2698c27719a1e3fe1d9a5a96025fd644e21ce34d8e388c373b4a9f21",transactionHash:"0x5b92dd09adac965328f77cbbc5864883547819039491fa6db463264fcb03938b",logs:[{transactionIndex:0,blockNumber:7,transactionHash:"0x5b92dd09adac965328f77cbbc5864883547819039491fa6db463264fcb03938b",address:"0x0165878A594ca255338adfa4d48449f69242Eb8F",topics:["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x0000000000000000000000005fc8d32690cc91d4c39d9d3abcbd16989f875707"],data:"0x",logIndex:0,blockHash:"0xabdf8cbf2698c27719a1e3fe1d9a5a96025fd644e21ce34d8e388c373b4a9f21"},{transactionIndex:0,blockNumber:7,transactionHash:"0x5b92dd09adac965328f77cbbc5864883547819039491fa6db463264fcb03938b",address:"0x0165878A594ca255338adfa4d48449f69242Eb8F",topics:["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266"],data:"0x",logIndex:1,blockHash:"0xabdf8cbf2698c27719a1e3fe1d9a5a96025fd644e21ce34d8e388c373b4a9f21"},{transactionIndex:0,blockNumber:7,transactionHash:"0x5b92dd09adac965328f77cbbc5864883547819039491fa6db463264fcb03938b",address:"0x0165878A594ca255338adfa4d48449f69242Eb8F",topics:["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"],data:"0x0000000000000000000000000000000000000000000000000000000000000001",logIndex:2,blockHash:"0xabdf8cbf2698c27719a1e3fe1d9a5a96025fd644e21ce34d8e388c373b4a9f21"},{transactionIndex:0,blockNumber:7,transactionHash:"0x5b92dd09adac965328f77cbbc5864883547819039491fa6db463264fcb03938b",address:"0x0165878A594ca255338adfa4d48449f69242Eb8F",topics:["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],data:"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000005fbdb2315678afecb367f032d93f642f64180aa3",logIndex:3,blockHash:"0xabdf8cbf2698c27719a1e3fe1d9a5a96025fd644e21ce34d8e388c373b4a9f21"}],blockNumber:7,cumulativeGasUsed:"842927",status:1,byzantium:!0},args:["0x5FC8d32690cc91D4c39d9d3abcBD16989F875707","0x5FbDB2315678afecb367f032d93F642f64180aa3","0xc4d66de8000000000000000000000000dc64a140aa3e981100a9beca4e685f962f0cf6c9"],numDeployments:1,solcInputHash:"0e89febeebc7444140de8e67c9067d2c",metadata:'{"compiler":{"version":"0.8.10+commit.fc410830"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"admin_","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"admin_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"changeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"implementation_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}],"devdoc":{"details":"This contract implements a proxy that is upgradeable by an admin. To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector clashing], which can potentially be used in an attack, this contract uses the https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two things that go hand in hand: 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if that call matches one of the admin functions exposed by the proxy itself. 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the implementation. If the admin tries to call a function on the implementation it will fail with an error that says \\"admin cannot fallback to proxy target\\". These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing the admin, so it\'s best if it\'s a dedicated account that is not used for anything else. This will avoid headaches due to sudden errors when trying to call a function from the proxy implementation. Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way, you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.","kind":"dev","methods":{"admin()":{"details":"Returns the current admin. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`"},"changeAdmin(address)":{"details":"Changes the admin of the proxy. Emits an {AdminChanged} event. NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}."},"constructor":{"details":"Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}."},"implementation()":{"details":"Returns the current implementation. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`"},"upgradeTo(address)":{"details":"Upgrade the implementation of the proxy. NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}."},"upgradeToAndCall(address,bytes)":{"details":"Upgrade the implementation of the proxy, and then call a function from the new implementation as specified by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the proxied contract. NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}."}},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"compilationTarget":{"solc_0.8/openzeppelin/proxy/transparent/TransparentUpgradeableProxy.sol":"TransparentUpgradeableProxy"},"evmVersion":"london","libraries":{},"metadata":{"bytecodeHash":"ipfs","useLiteralContent":true},"optimizer":{"enabled":true,"runs":999999},"remappings":[]},"sources":{"solc_0.8/openzeppelin/interfaces/draft-IERC1822.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n","keccak256":"0x93b4e21c931252739a1ec13ea31d3d35a5c068be3163ccab83e4d70c40355f03","license":"MIT"},"solc_0.8/openzeppelin/proxy/ERC1967/ERC1967Proxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/ERC1967/ERC1967Proxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\"../Proxy.sol\\";\\nimport \\"./ERC1967Upgrade.sol\\";\\n\\n/**\\n * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an\\n * implementation address that can be changed. This address is stored in storage in the location specified by\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn\'t conflict with the storage layout of the\\n * implementation behind the proxy.\\n */\\ncontract ERC1967Proxy is Proxy, ERC1967Upgrade {\\n /**\\n * @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.\\n *\\n * If `_data` is nonempty, it\'s used as data in a delegate call to `_logic`. This will typically be an encoded\\n * function call, and allows initializating the storage of the proxy like a Solidity constructor.\\n */\\n constructor(address _logic, bytes memory _data) payable {\\n assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256(\\"eip1967.proxy.implementation\\")) - 1));\\n _upgradeToAndCall(_logic, _data, false);\\n }\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _implementation() internal view virtual override returns (address impl) {\\n return ERC1967Upgrade._getImplementation();\\n }\\n}\\n","keccak256":"0x6309f9f39dc6f4f45a24f296543867aa358e32946cd6b2874627a996d606b3a0","license":"MIT"},"solc_0.8/openzeppelin/proxy/ERC1967/ERC1967Upgrade.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (proxy/ERC1967/ERC1967Upgrade.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\"../beacon/IBeacon.sol\\";\\nimport \\"../../interfaces/draft-IERC1822.sol\\";\\nimport \\"../../utils/Address.sol\\";\\nimport \\"../../utils/StorageSlot.sol\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n *\\n * _Available since v4.1._\\n *\\n * @custom:oz-upgrades-unsafe-allow delegatecall\\n */\\nabstract contract ERC1967Upgrade {\\n // This is the keccak-256 hash of \\"eip1967.proxy.rollback\\" subtracted by 1\\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\"eip1967.proxy.implementation\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(Address.isContract(newImplementation), \\"ERC1967: new implementation is not a contract\\");\\n StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Perform implementation upgrade\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeTo(address newImplementation) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCall(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _upgradeTo(newImplementation);\\n if (data.length > 0 || forceCall) {\\n Address.functionDelegateCall(newImplementation, data);\\n }\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n // Upgrades from old implementations will perform a rollback test. This test requires the new\\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\\n // this special case will break upgrade paths from old UUPS implementation to new ones.\\n if (StorageSlot.getBooleanSlot(_ROLLBACK_SLOT).value) {\\n _setImplementation(newImplementation);\\n } else {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n require(slot == _IMPLEMENTATION_SLOT, \\"ERC1967Upgrade: unsupported proxiableUUID\\");\\n } catch {\\n revert(\\"ERC1967Upgrade: new implementation is not UUPS\\");\\n }\\n _upgradeToAndCall(newImplementation, data, forceCall);\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\"eip1967.proxy.admin\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _getAdmin() internal view virtual returns (address) {\\n return StorageSlot.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n require(newAdmin != address(0), \\"ERC1967: new admin is the zero address\\");\\n StorageSlot.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n */\\n function _changeAdmin(address newAdmin) internal {\\n emit AdminChanged(_getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is bytes32(uint256(keccak256(\'eip1967.proxy.beacon\')) - 1)) and is validated in the constructor.\\n */\\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Emitted when the beacon is upgraded.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function _getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(_BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n require(Address.isContract(newBeacon), \\"ERC1967: new beacon is not a contract\\");\\n require(Address.isContract(IBeacon(newBeacon).implementation()), \\"ERC1967: beacon implementation is not a contract\\");\\n StorageSlot.getAddressSlot(_BEACON_SLOT).value = newBeacon;\\n }\\n\\n /**\\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\\n *\\n * Emits a {BeaconUpgraded} event.\\n */\\n function _upgradeBeaconToAndCall(\\n address newBeacon,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n if (data.length > 0 || forceCall) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n }\\n }\\n}\\n","keccak256":"0x17668652127feebed0ce8d9431ef95ccc8c4292f03e3b8cf06c6ca16af396633","license":"MIT"},"solc_0.8/openzeppelin/proxy/Proxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (proxy/Proxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM\\n * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to\\n * be specified by overriding the virtual {_implementation} function.\\n *\\n * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a\\n * different contract through the {_delegate} function.\\n *\\n * The success and return data of the delegated call will be returned back to the caller of the proxy.\\n */\\nabstract contract Proxy {\\n /**\\n * @dev Delegates the current call to `implementation`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _delegate(address implementation) internal virtual {\\n assembly {\\n // Copy msg.data. We take full control of memory in this inline assembly\\n // block because it will not return to Solidity code. We overwrite the\\n // Solidity scratch pad at memory position 0.\\n calldatacopy(0, 0, calldatasize())\\n\\n // Call the implementation.\\n // out and outsize are 0 because we don\'t know the size yet.\\n let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\\n\\n // Copy the returned data.\\n returndatacopy(0, 0, returndatasize())\\n\\n switch result\\n // delegatecall returns 0 on error.\\n case 0 {\\n revert(0, returndatasize())\\n }\\n default {\\n return(0, returndatasize())\\n }\\n }\\n }\\n\\n /**\\n * @dev This is a virtual function that should be overriden so it returns the address to which the fallback function\\n * and {_fallback} should delegate.\\n */\\n function _implementation() internal view virtual returns (address);\\n\\n /**\\n * @dev Delegates the current call to the address returned by `_implementation()`.\\n *\\n * This function does not return to its internall call site, it will return directly to the external caller.\\n */\\n function _fallback() internal virtual {\\n _beforeFallback();\\n _delegate(_implementation());\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other\\n * function in the contract matches the call data.\\n */\\n fallback() external payable virtual {\\n _fallback();\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data\\n * is empty.\\n */\\n receive() external payable virtual {\\n _fallback();\\n }\\n\\n /**\\n * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`\\n * call, or as part of the Solidity `fallback` or `receive` functions.\\n *\\n * If overriden should call `super._beforeFallback()`.\\n */\\n function _beforeFallback() internal virtual {}\\n}\\n","keccak256":"0xd5d1fd16e9faff7fcb3a52e02a8d49156f42a38a03f07b5f1810c21c2149a8ab","license":"MIT"},"solc_0.8/openzeppelin/proxy/beacon/IBeacon.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {BeaconProxy} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n","keccak256":"0xd50a3421ac379ccb1be435fa646d66a65c986b4924f0849839f08692f39dde61","license":"MIT"},"solc_0.8/openzeppelin/proxy/transparent/TransparentUpgradeableProxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/transparent/TransparentUpgradeableProxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\"../ERC1967/ERC1967Proxy.sol\\";\\n\\n/**\\n * @dev This contract implements a proxy that is upgradeable by an admin.\\n *\\n * To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector\\n * clashing], which can potentially be used in an attack, this contract uses the\\n * https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two\\n * things that go hand in hand:\\n *\\n * 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if\\n * that call matches one of the admin functions exposed by the proxy itself.\\n * 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the\\n * implementation. If the admin tries to call a function on the implementation it will fail with an error that says\\n * \\"admin cannot fallback to proxy target\\".\\n *\\n * These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing\\n * the admin, so it\'s best if it\'s a dedicated account that is not used for anything else. This will avoid headaches due\\n * to sudden errors when trying to call a function from the proxy implementation.\\n *\\n * Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way,\\n * you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.\\n */\\ncontract TransparentUpgradeableProxy is ERC1967Proxy {\\n /**\\n * @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and\\n * optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}.\\n */\\n constructor(\\n address _logic,\\n address admin_,\\n bytes memory _data\\n ) payable ERC1967Proxy(_logic, _data) {\\n assert(_ADMIN_SLOT == bytes32(uint256(keccak256(\\"eip1967.proxy.admin\\")) - 1));\\n _changeAdmin(admin_);\\n }\\n\\n /**\\n * @dev Modifier used internally that will delegate the call to the implementation unless the sender is the admin.\\n */\\n modifier ifAdmin() {\\n if (msg.sender == _getAdmin()) {\\n _;\\n } else {\\n _fallback();\\n }\\n }\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the\\n * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function admin() external ifAdmin returns (address admin_) {\\n admin_ = _getAdmin();\\n }\\n\\n /**\\n * @dev Returns the current implementation.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the\\n * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`\\n */\\n function implementation() external ifAdmin returns (address implementation_) {\\n implementation_ = _implementation();\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}.\\n */\\n function changeAdmin(address newAdmin) external virtual ifAdmin {\\n _changeAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}.\\n */\\n function upgradeTo(address newImplementation) external ifAdmin {\\n _upgradeToAndCall(newImplementation, bytes(\\"\\"), false);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy, and then call a function from the new implementation as specified\\n * by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the\\n * proxied contract.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}.\\n */\\n function upgradeToAndCall(address newImplementation, bytes calldata data) external payable ifAdmin {\\n _upgradeToAndCall(newImplementation, data, true);\\n }\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _admin() internal view virtual returns (address) {\\n return _getAdmin();\\n }\\n\\n /**\\n * @dev Makes sure the admin cannot access the fallback function. See {Proxy-_beforeFallback}.\\n */\\n function _beforeFallback() internal virtual override {\\n require(msg.sender != _getAdmin(), \\"TransparentUpgradeableProxy: admin cannot fallback to proxy target\\");\\n super._beforeFallback();\\n }\\n}\\n","keccak256":"0x140055a64cf579d622e04f5a198595832bf2cb193cd0005f4f2d4d61ca906253","license":"MIT"},"solc_0.8/openzeppelin/utils/Address.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn\'t rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity\'s `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\"Address: insufficient balance\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\"\\");\\n require(success, \\"Address: unable to send value, recipient may have reverted\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCall(target, data, \\"Address: low-level call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\"Address: low-level call with value failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\"Address: insufficient balance for call\\");\\n require(isContract(target), \\"Address: call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\"Address: low-level static call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n require(isContract(target), \\"Address: static call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\"Address: low-level delegate call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(isContract(target), \\"Address: delegate call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verifies that a low level call was successful, and revert if it wasn\'t, either by bubbling the\\n * revert reason using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n }\\n}\\n","keccak256":"0x3777e696b62134e6177440dbe6e6601c0c156a443f57167194b67e75527439de","license":"MIT"},"solc_0.8/openzeppelin/utils/StorageSlot.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\"ERC1967: new implementation is not a contract\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._\\n */\\nlibrary StorageSlot {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n}\\n","keccak256":"0xfe1b7a9aa2a530a9e705b220e26cd584e2fbdc9602a3a1066032b12816b46aca","license":"MIT"}},"version":1}',bytecode:"0x6080604052604051620011b2380380620011b2833981016040819052620000269162000519565b82816200005560017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd620005f9565b6000805160206200116b833981519152146200007557620000756200061f565b6200008382826000620000e7565b50620000b3905060017fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6104620005f9565b6000805160206200114b83398151915214620000d357620000d36200061f565b620000de8262000124565b50505062000688565b620000f2836200017f565b600082511180620001005750805b156200011f576200011d8383620001c160201b620002ff1760201c565b505b505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6200014f620001f0565b604080516001600160a01b03928316815291841660208301520160405180910390a16200017c8162000229565b50565b6200018a81620002de565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060620001e983836040518060600160405280602781526020016200118b6027913962000381565b9392505050565b60006200021a6000805160206200114b83398151915260001b6200046760201b620002731760201c565b546001600160a01b0316919050565b6001600160a01b038116620002945760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b80620002bd6000805160206200114b83398151915260001b6200046760201b620002731760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b620002f4816200046a60201b6200032b1760201c565b620003585760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016200028b565b80620002bd6000805160206200116b83398151915260001b6200046760201b620002731760201c565b60606001600160a01b0384163b620003eb5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016200028b565b600080856001600160a01b03168560405162000408919062000635565b600060405180830381855af49150503d806000811462000445576040519150601f19603f3d011682016040523d82523d6000602084013e6200044a565b606091505b5090925090506200045d82828662000479565b9695505050505050565b90565b6001600160a01b03163b151590565b606083156200048a575081620001e9565b8251156200049b5782518084602001fd5b8160405162461bcd60e51b81526004016200028b919062000653565b80516001600160a01b0381168114620004cf57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101562000507578181015183820152602001620004ed565b838111156200011d5750506000910152565b6000806000606084860312156200052f57600080fd5b6200053a84620004b7565b92506200054a60208501620004b7565b60408501519092506001600160401b03808211156200056857600080fd5b818601915086601f8301126200057d57600080fd5b815181811115620005925762000592620004d4565b604051601f8201601f19908116603f01168101908382118183101715620005bd57620005bd620004d4565b81604052828152896020848701011115620005d757600080fd5b620005ea836020830160208801620004ea565b80955050505050509250925092565b6000828210156200061a57634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052600160045260246000fd5b6000825162000649818460208701620004ea565b9190910192915050565b602081526000825180602084015262000674816040850160208701620004ea565b601f01601f19169190910160400192915050565b610ab380620006986000396000f3fe60806040526004361061005e5760003560e01c80635c60da1b116100435780635c60da1b146100a85780638f283970146100e6578063f851a440146101065761006d565b80633659cfe6146100755780634f1ef286146100955761006d565b3661006d5761006b61011b565b005b61006b61011b565b34801561008157600080fd5b5061006b61009036600461091f565b610135565b61006b6100a336600461093a565b610196565b3480156100b457600080fd5b506100bd610221565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100f257600080fd5b5061006b61010136600461091f565b610276565b34801561011257600080fd5b506100bd6102ba565b610123610347565b61013361012e610435565b61043f565b565b61013d610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816040518060200160405280600081525060006104a3565b50565b61018b61011b565b61019e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610219576102148383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250600192506104a3915050565b505050565b61021461011b565b600061022b610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610435565b905090565b61027361011b565b90565b61027e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816104ce565b60006102c4610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610463565b60606103248383604051806060016040528060278152602001610a576027913961052f565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b61034f610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f7879207461726760648201527f6574000000000000000000000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b6000610266610657565b3660008037600080366000845af43d6000803e80801561045e573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b5473ffffffffffffffffffffffffffffffffffffffff16919050565b6104ac8361067f565b6000825111806104b95750805b15610214576104c883836102ff565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6104f7610463565b6040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301520160405180910390a161018b816106cc565b606073ffffffffffffffffffffffffffffffffffffffff84163b6105d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161042c565b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516105fd91906109e9565b600060405180830381855af49150503d8060008114610638576040519150601f19603f3d011682016040523d82523d6000602084013e61063d565b606091505b509150915061064d8282866107d8565b9695505050505050565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610487565b6106888161082b565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b73ffffffffffffffffffffffffffffffffffffffff811661076f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161042c565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905550565b606083156107e7575081610324565b8251156107f75782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c9190610a05565b73ffffffffffffffffffffffffffffffffffffffff81163b6108cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e747261637400000000000000000000000000000000000000606482015260840161042c565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610792565b803573ffffffffffffffffffffffffffffffffffffffff8116811461091a57600080fd5b919050565b60006020828403121561093157600080fd5b610324826108f6565b60008060006040848603121561094f57600080fd5b610958846108f6565b9250602084013567ffffffffffffffff8082111561097557600080fd5b818601915086601f83011261098957600080fd5b81358181111561099857600080fd5b8760208285010111156109aa57600080fd5b6020830194508093505050509250925092565b60005b838110156109d85781810151838201526020016109c0565b838111156104c85750506000910152565b600082516109fb8184602087016109bd565b9190910192915050565b6020815260008251806020840152610a248160408501602087016109bd565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b29caa54336b3ee836679675e9732ec5e526fb3f803cca2fe336cc3555aba62264736f6c634300080a0033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564",deployedBytecode:"0x60806040526004361061005e5760003560e01c80635c60da1b116100435780635c60da1b146100a85780638f283970146100e6578063f851a440146101065761006d565b80633659cfe6146100755780634f1ef286146100955761006d565b3661006d5761006b61011b565b005b61006b61011b565b34801561008157600080fd5b5061006b61009036600461091f565b610135565b61006b6100a336600461093a565b610196565b3480156100b457600080fd5b506100bd610221565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100f257600080fd5b5061006b61010136600461091f565b610276565b34801561011257600080fd5b506100bd6102ba565b610123610347565b61013361012e610435565b61043f565b565b61013d610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816040518060200160405280600081525060006104a3565b50565b61018b61011b565b61019e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610219576102148383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250600192506104a3915050565b505050565b61021461011b565b600061022b610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610435565b905090565b61027361011b565b90565b61027e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816104ce565b60006102c4610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610463565b60606103248383604051806060016040528060278152602001610a576027913961052f565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b61034f610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f7879207461726760648201527f6574000000000000000000000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b6000610266610657565b3660008037600080366000845af43d6000803e80801561045e573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b5473ffffffffffffffffffffffffffffffffffffffff16919050565b6104ac8361067f565b6000825111806104b95750805b15610214576104c883836102ff565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6104f7610463565b6040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301520160405180910390a161018b816106cc565b606073ffffffffffffffffffffffffffffffffffffffff84163b6105d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161042c565b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516105fd91906109e9565b600060405180830381855af49150503d8060008114610638576040519150601f19603f3d011682016040523d82523d6000602084013e61063d565b606091505b509150915061064d8282866107d8565b9695505050505050565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610487565b6106888161082b565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b73ffffffffffffffffffffffffffffffffffffffff811661076f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161042c565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905550565b606083156107e7575081610324565b8251156107f75782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c9190610a05565b73ffffffffffffffffffffffffffffffffffffffff81163b6108cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e747261637400000000000000000000000000000000000000606482015260840161042c565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610792565b803573ffffffffffffffffffffffffffffffffffffffff8116811461091a57600080fd5b919050565b60006020828403121561093157600080fd5b610324826108f6565b60008060006040848603121561094f57600080fd5b610958846108f6565b9250602084013567ffffffffffffffff8082111561097557600080fd5b818601915086601f83011261098957600080fd5b81358181111561099857600080fd5b8760208285010111156109aa57600080fd5b6020830194508093505050509250925092565b60005b838110156109d85781810151838201526020016109c0565b838111156104c85750506000910152565b600082516109fb8184602087016109bd565b9190910192915050565b6020815260008251806020840152610a248160408501602087016109bd565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b29caa54336b3ee836679675e9732ec5e526fb3f803cca2fe336cc3555aba62264736f6c634300080a0033",execute:{methodName:"initialize",args:["0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9"]},implementation:"0x5FC8d32690cc91D4c39d9d3abcBD16989F875707",devdoc:{details:"This contract implements a proxy that is upgradeable by an admin. To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector clashing], which can potentially be used in an attack, this contract uses the https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two things that go hand in hand: 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if that call matches one of the admin functions exposed by the proxy itself. 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the implementation. If the admin tries to call a function on the implementation it will fail with an error that says \"admin cannot fallback to proxy target\". These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing the admin, so it's best if it's a dedicated account that is not used for anything else. This will avoid headaches due to sudden errors when trying to call a function from the proxy implementation. Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way, you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.",kind:"dev",methods:{"admin()":{details:"Returns the current admin. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`"},"changeAdmin(address)":{details:"Changes the admin of the proxy. Emits an {AdminChanged} event. NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}."},constructor:{details:"Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}."},"implementation()":{details:"Returns the current implementation. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`"},"upgradeTo(address)":{details:"Upgrade the implementation of the proxy. NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}."},"upgradeToAndCall(address,bytes)":{details:"Upgrade the implementation of the proxy, and then call a function from the new implementation as specified by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the proxied contract. NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}."}},version:1},userdoc:{kind:"user",methods:{},version:1},storageLayout:{storage:[],types:null}};var Tp={address:"0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9",abi:[{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"previousAdmin",type:"address"},{indexed:!1,internalType:"address",name:"newAdmin",type:"address"}],name:"AdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"beacon",type:"address"}],name:"BeaconUpgraded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"implementation",type:"address"}],name:"Upgraded",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"admin",outputs:[{internalType:"address",name:"admin_",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newAdmin",type:"address"}],name:"changeAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"implementation",outputs:[{internalType:"address",name:"implementation_",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"}],name:"upgradeTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"},{inputs:[],name:"ECDSAInvalidSignature",type:"error"},{inputs:[{internalType:"uint256",name:"length",type:"uint256"}],name:"ECDSAInvalidSignatureLength",type:"error"},{inputs:[{internalType:"bytes32",name:"s",type:"bytes32"}],name:"ECDSAInvalidSignatureS",type:"error"},{inputs:[],name:"InvalidInitialization",type:"error"},{inputs:[],name:"NotInitializing",type:"error"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"OwnableInvalidOwner",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"OwnableUnauthorizedAccount",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!1,internalType:"address",name:"grantee",type:"address"}],name:"AccessGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!1,internalType:"address",name:"grantee",type:"address"}],name:"AccessRevoked",type:"event"},{anonymous:!1,inputs:[],name:"EIP712DomainChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint64",name:"version",type:"uint64"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!1,internalType:"string",name:"namespace",type:"string"},{indexed:!1,internalType:"uint256",name:"nonce",type:"uint256"}],name:"MetaNamespaceRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!1,internalType:"string",name:"namespace",type:"string"},{indexed:!1,internalType:"string",name:"taskName",type:"string"},{indexed:!1,internalType:"uint256",name:"nonce",type:"uint256"}],name:"MetaTaskRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!1,internalType:"address",name:"oldOwner",type:"address"},{indexed:!1,internalType:"address",name:"newOwner",type:"address"}],name:"NamespaceOwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"NamespaceRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!0,internalType:"string",name:"taskName",type:"string"},{indexed:!1,internalType:"uint256",name:"version",type:"uint256"}],name:"TaskDisabled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!0,internalType:"string",name:"taskName",type:"string"},{indexed:!1,internalType:"uint256",name:"version",type:"uint256"}],name:"TaskEnabled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"cid",type:"string"},{indexed:!1,internalType:"address",name:"sender",type:"address"}],name:"TaskIdRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!0,internalType:"string",name:"taskName",type:"string"},{indexed:!1,internalType:"uint256",name:"version",type:"uint256"}],name:"TaskRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!0,internalType:"string",name:"taskName",type:"string"},{indexed:!1,internalType:"uint256",name:"version",type:"uint256"},{indexed:!1,internalType:"string",name:"label",type:"string"}],name:"VersionLabelSet",type:"event"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"},{internalType:"uint256",name:"version",type:"uint256"}],name:"disableTask",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"},{internalType:"string",name:"label",type:"string"}],name:"disableTaskByLabel",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"eip712Domain",outputs:[{internalType:"bytes1",name:"fields",type:"bytes1"},{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"version",type:"string"},{internalType:"uint256",name:"chainId",type:"uint256"},{internalType:"address",name:"verifyingContract",type:"address"},{internalType:"bytes32",name:"salt",type:"bytes32"},{internalType:"uint256[]",name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"},{internalType:"uint256",name:"version",type:"uint256"}],name:"enableTask",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"}],name:"getLatestActiveVersion",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"}],name:"getLatestVersion",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"}],name:"getTask",outputs:[{components:[{internalType:"string",name:"taskId",type:"string"},{internalType:"string",name:"meta",type:"string"},{internalType:"bool",name:"active",type:"bool"}],internalType:"struct TaskRegistry.Task",name:"",type:"tuple"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"},{internalType:"string",name:"label",type:"string"}],name:"getTaskByLabel",outputs:[{components:[{internalType:"string",name:"taskId",type:"string"},{internalType:"string",name:"meta",type:"string"},{internalType:"bool",name:"active",type:"bool"}],internalType:"struct TaskRegistry.Task",name:"",type:"tuple"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"},{internalType:"uint256",name:"version",type:"uint256"}],name:"getTaskByVersion",outputs:[{components:[{internalType:"string",name:"taskId",type:"string"},{internalType:"string",name:"meta",type:"string"},{internalType:"bool",name:"active",type:"bool"}],internalType:"struct TaskRegistry.Task",name:"",type:"tuple"},{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"address",name:"grantee",type:"address"}],name:"grantNamespaceAccess",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"input",type:"string"}],name:"isAsciiString",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"string",name:"taskId",type:"string"}],name:"isTaskRevoked",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"str",type:"string"}],name:"isValidName",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"string",name:"",type:"string"},{internalType:"string",name:"",type:"string"},{internalType:"string",name:"",type:"string"}],name:"labeledVersions",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"",type:"string"},{internalType:"string",name:"",type:"string"}],name:"latestVersion",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"",type:"string"},{internalType:"address",name:"",type:"address"}],name:"namespaceGrantees",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"",type:"string"}],name:"namespaceOwners",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"},{components:[{internalType:"string",name:"taskId",type:"string"},{internalType:"string",name:"meta",type:"string"},{internalType:"bool",name:"active",type:"bool"}],internalType:"struct TaskRegistry.Task",name:"task",type:"tuple"}],name:"registerTask",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"}],name:"registerTaskNamespace",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"string",name:"namespace",type:"string"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"registerTaskNamespaceWithSignature",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"},{components:[{internalType:"string",name:"taskId",type:"string"},{internalType:"string",name:"meta",type:"string"},{internalType:"bool",name:"active",type:"bool"}],internalType:"struct TaskRegistry.Task",name:"task",type:"tuple"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"registerTaskWithSignature",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"address",name:"grantee",type:"address"}],name:"revokeNamespaceAccess",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"taskId",type:"string"}],name:"revokeTask",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"",type:"string"}],name:"revokedTaskId",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"},{internalType:"uint256",name:"version",type:"uint256"},{internalType:"string",name:"label",type:"string"}],name:"setTaskLabel",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"",type:"string"},{internalType:"string",name:"",type:"string"},{internalType:"uint256",name:"",type:"uint256"}],name:"tasks",outputs:[{internalType:"string",name:"taskId",type:"string"},{internalType:"string",name:"meta",type:"string"},{internalType:"bool",name:"active",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"address",name:"newOwner",type:"address"}],name:"transferTaskNamespace",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_logic",type:"address"},{internalType:"address",name:"admin_",type:"address"},{internalType:"bytes",name:"_data",type:"bytes"}],stateMutability:"payable",type:"constructor"}],transactionHash:"0xe4b279ff13adff3c85eafa8501e66c748eae82000ad2d47d4cade50cf3687232",receipt:{to:null,from:"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",contractAddress:"0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9",transactionIndex:0,gasUsed:"820456",logsBloom:"0x00000000000000000000000000000000400000000000000000800000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000002000001000000000000000000000000000000000000020000000000000100000800000000800000000000000000000000400000000000000000000800000000000000000000000080000000000000800000000000001000000000000000000000000000000000000000000000000000000000000020000000200000000000000000000000002424000000000000000020000000000000000000008000000000000000000001000000000100000000000000",blockHash:"0xd271735bc3b7732bbe3633aa1969045bdc105f6988f10122d190ebeb77fb4b39",transactionHash:"0xe4b279ff13adff3c85eafa8501e66c748eae82000ad2d47d4cade50cf3687232",logs:[{transactionIndex:0,blockNumber:5,transactionHash:"0xe4b279ff13adff3c85eafa8501e66c748eae82000ad2d47d4cade50cf3687232",address:"0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9",topics:["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000cf7ed3acca5a467e9e704c703e8d87f634fb0fc9"],data:"0x",logIndex:0,blockHash:"0xd271735bc3b7732bbe3633aa1969045bdc105f6988f10122d190ebeb77fb4b39"},{transactionIndex:0,blockNumber:5,transactionHash:"0xe4b279ff13adff3c85eafa8501e66c748eae82000ad2d47d4cade50cf3687232",address:"0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9",topics:["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266"],data:"0x",logIndex:1,blockHash:"0xd271735bc3b7732bbe3633aa1969045bdc105f6988f10122d190ebeb77fb4b39"},{transactionIndex:0,blockNumber:5,transactionHash:"0xe4b279ff13adff3c85eafa8501e66c748eae82000ad2d47d4cade50cf3687232",address:"0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9",topics:["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"],data:"0x0000000000000000000000000000000000000000000000000000000000000001",logIndex:2,blockHash:"0xd271735bc3b7732bbe3633aa1969045bdc105f6988f10122d190ebeb77fb4b39"},{transactionIndex:0,blockNumber:5,transactionHash:"0xe4b279ff13adff3c85eafa8501e66c748eae82000ad2d47d4cade50cf3687232",address:"0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9",topics:["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],data:"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000005fbdb2315678afecb367f032d93f642f64180aa3",logIndex:3,blockHash:"0xd271735bc3b7732bbe3633aa1969045bdc105f6988f10122d190ebeb77fb4b39"}],blockNumber:5,cumulativeGasUsed:"820456",status:1,byzantium:!0},args:["0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9","0x5FbDB2315678afecb367f032d93F642f64180aa3","0x8129fc1c"],numDeployments:1,solcInputHash:"0e89febeebc7444140de8e67c9067d2c",metadata:'{"compiler":{"version":"0.8.10+commit.fc410830"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"admin_","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"admin_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"changeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"implementation_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}],"devdoc":{"details":"This contract implements a proxy that is upgradeable by an admin. To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector clashing], which can potentially be used in an attack, this contract uses the https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two things that go hand in hand: 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if that call matches one of the admin functions exposed by the proxy itself. 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the implementation. If the admin tries to call a function on the implementation it will fail with an error that says \\"admin cannot fallback to proxy target\\". These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing the admin, so it\'s best if it\'s a dedicated account that is not used for anything else. This will avoid headaches due to sudden errors when trying to call a function from the proxy implementation. Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way, you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.","kind":"dev","methods":{"admin()":{"details":"Returns the current admin. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`"},"changeAdmin(address)":{"details":"Changes the admin of the proxy. Emits an {AdminChanged} event. NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}."},"constructor":{"details":"Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}."},"implementation()":{"details":"Returns the current implementation. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`"},"upgradeTo(address)":{"details":"Upgrade the implementation of the proxy. NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}."},"upgradeToAndCall(address,bytes)":{"details":"Upgrade the implementation of the proxy, and then call a function from the new implementation as specified by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the proxied contract. NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}."}},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"compilationTarget":{"solc_0.8/openzeppelin/proxy/transparent/TransparentUpgradeableProxy.sol":"TransparentUpgradeableProxy"},"evmVersion":"london","libraries":{},"metadata":{"bytecodeHash":"ipfs","useLiteralContent":true},"optimizer":{"enabled":true,"runs":999999},"remappings":[]},"sources":{"solc_0.8/openzeppelin/interfaces/draft-IERC1822.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n","keccak256":"0x93b4e21c931252739a1ec13ea31d3d35a5c068be3163ccab83e4d70c40355f03","license":"MIT"},"solc_0.8/openzeppelin/proxy/ERC1967/ERC1967Proxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/ERC1967/ERC1967Proxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\"../Proxy.sol\\";\\nimport \\"./ERC1967Upgrade.sol\\";\\n\\n/**\\n * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an\\n * implementation address that can be changed. This address is stored in storage in the location specified by\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn\'t conflict with the storage layout of the\\n * implementation behind the proxy.\\n */\\ncontract ERC1967Proxy is Proxy, ERC1967Upgrade {\\n /**\\n * @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.\\n *\\n * If `_data` is nonempty, it\'s used as data in a delegate call to `_logic`. This will typically be an encoded\\n * function call, and allows initializating the storage of the proxy like a Solidity constructor.\\n */\\n constructor(address _logic, bytes memory _data) payable {\\n assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256(\\"eip1967.proxy.implementation\\")) - 1));\\n _upgradeToAndCall(_logic, _data, false);\\n }\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _implementation() internal view virtual override returns (address impl) {\\n return ERC1967Upgrade._getImplementation();\\n }\\n}\\n","keccak256":"0x6309f9f39dc6f4f45a24f296543867aa358e32946cd6b2874627a996d606b3a0","license":"MIT"},"solc_0.8/openzeppelin/proxy/ERC1967/ERC1967Upgrade.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (proxy/ERC1967/ERC1967Upgrade.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\"../beacon/IBeacon.sol\\";\\nimport \\"../../interfaces/draft-IERC1822.sol\\";\\nimport \\"../../utils/Address.sol\\";\\nimport \\"../../utils/StorageSlot.sol\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n *\\n * _Available since v4.1._\\n *\\n * @custom:oz-upgrades-unsafe-allow delegatecall\\n */\\nabstract contract ERC1967Upgrade {\\n // This is the keccak-256 hash of \\"eip1967.proxy.rollback\\" subtracted by 1\\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\"eip1967.proxy.implementation\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(Address.isContract(newImplementation), \\"ERC1967: new implementation is not a contract\\");\\n StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Perform implementation upgrade\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeTo(address newImplementation) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCall(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _upgradeTo(newImplementation);\\n if (data.length > 0 || forceCall) {\\n Address.functionDelegateCall(newImplementation, data);\\n }\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n // Upgrades from old implementations will perform a rollback test. This test requires the new\\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\\n // this special case will break upgrade paths from old UUPS implementation to new ones.\\n if (StorageSlot.getBooleanSlot(_ROLLBACK_SLOT).value) {\\n _setImplementation(newImplementation);\\n } else {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n require(slot == _IMPLEMENTATION_SLOT, \\"ERC1967Upgrade: unsupported proxiableUUID\\");\\n } catch {\\n revert(\\"ERC1967Upgrade: new implementation is not UUPS\\");\\n }\\n _upgradeToAndCall(newImplementation, data, forceCall);\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\"eip1967.proxy.admin\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _getAdmin() internal view virtual returns (address) {\\n return StorageSlot.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n require(newAdmin != address(0), \\"ERC1967: new admin is the zero address\\");\\n StorageSlot.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n */\\n function _changeAdmin(address newAdmin) internal {\\n emit AdminChanged(_getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is bytes32(uint256(keccak256(\'eip1967.proxy.beacon\')) - 1)) and is validated in the constructor.\\n */\\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Emitted when the beacon is upgraded.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function _getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(_BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n require(Address.isContract(newBeacon), \\"ERC1967: new beacon is not a contract\\");\\n require(Address.isContract(IBeacon(newBeacon).implementation()), \\"ERC1967: beacon implementation is not a contract\\");\\n StorageSlot.getAddressSlot(_BEACON_SLOT).value = newBeacon;\\n }\\n\\n /**\\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\\n *\\n * Emits a {BeaconUpgraded} event.\\n */\\n function _upgradeBeaconToAndCall(\\n address newBeacon,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n if (data.length > 0 || forceCall) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n }\\n }\\n}\\n","keccak256":"0x17668652127feebed0ce8d9431ef95ccc8c4292f03e3b8cf06c6ca16af396633","license":"MIT"},"solc_0.8/openzeppelin/proxy/Proxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (proxy/Proxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM\\n * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to\\n * be specified by overriding the virtual {_implementation} function.\\n *\\n * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a\\n * different contract through the {_delegate} function.\\n *\\n * The success and return data of the delegated call will be returned back to the caller of the proxy.\\n */\\nabstract contract Proxy {\\n /**\\n * @dev Delegates the current call to `implementation`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _delegate(address implementation) internal virtual {\\n assembly {\\n // Copy msg.data. We take full control of memory in this inline assembly\\n // block because it will not return to Solidity code. We overwrite the\\n // Solidity scratch pad at memory position 0.\\n calldatacopy(0, 0, calldatasize())\\n\\n // Call the implementation.\\n // out and outsize are 0 because we don\'t know the size yet.\\n let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\\n\\n // Copy the returned data.\\n returndatacopy(0, 0, returndatasize())\\n\\n switch result\\n // delegatecall returns 0 on error.\\n case 0 {\\n revert(0, returndatasize())\\n }\\n default {\\n return(0, returndatasize())\\n }\\n }\\n }\\n\\n /**\\n * @dev This is a virtual function that should be overriden so it returns the address to which the fallback function\\n * and {_fallback} should delegate.\\n */\\n function _implementation() internal view virtual returns (address);\\n\\n /**\\n * @dev Delegates the current call to the address returned by `_implementation()`.\\n *\\n * This function does not return to its internall call site, it will return directly to the external caller.\\n */\\n function _fallback() internal virtual {\\n _beforeFallback();\\n _delegate(_implementation());\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other\\n * function in the contract matches the call data.\\n */\\n fallback() external payable virtual {\\n _fallback();\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data\\n * is empty.\\n */\\n receive() external payable virtual {\\n _fallback();\\n }\\n\\n /**\\n * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`\\n * call, or as part of the Solidity `fallback` or `receive` functions.\\n *\\n * If overriden should call `super._beforeFallback()`.\\n */\\n function _beforeFallback() internal virtual {}\\n}\\n","keccak256":"0xd5d1fd16e9faff7fcb3a52e02a8d49156f42a38a03f07b5f1810c21c2149a8ab","license":"MIT"},"solc_0.8/openzeppelin/proxy/beacon/IBeacon.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {BeaconProxy} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n","keccak256":"0xd50a3421ac379ccb1be435fa646d66a65c986b4924f0849839f08692f39dde61","license":"MIT"},"solc_0.8/openzeppelin/proxy/transparent/TransparentUpgradeableProxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/transparent/TransparentUpgradeableProxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\"../ERC1967/ERC1967Proxy.sol\\";\\n\\n/**\\n * @dev This contract implements a proxy that is upgradeable by an admin.\\n *\\n * To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector\\n * clashing], which can potentially be used in an attack, this contract uses the\\n * https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two\\n * things that go hand in hand:\\n *\\n * 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if\\n * that call matches one of the admin functions exposed by the proxy itself.\\n * 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the\\n * implementation. If the admin tries to call a function on the implementation it will fail with an error that says\\n * \\"admin cannot fallback to proxy target\\".\\n *\\n * These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing\\n * the admin, so it\'s best if it\'s a dedicated account that is not used for anything else. This will avoid headaches due\\n * to sudden errors when trying to call a function from the proxy implementation.\\n *\\n * Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way,\\n * you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.\\n */\\ncontract TransparentUpgradeableProxy is ERC1967Proxy {\\n /**\\n * @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and\\n * optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}.\\n */\\n constructor(\\n address _logic,\\n address admin_,\\n bytes memory _data\\n ) payable ERC1967Proxy(_logic, _data) {\\n assert(_ADMIN_SLOT == bytes32(uint256(keccak256(\\"eip1967.proxy.admin\\")) - 1));\\n _changeAdmin(admin_);\\n }\\n\\n /**\\n * @dev Modifier used internally that will delegate the call to the implementation unless the sender is the admin.\\n */\\n modifier ifAdmin() {\\n if (msg.sender == _getAdmin()) {\\n _;\\n } else {\\n _fallback();\\n }\\n }\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the\\n * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function admin() external ifAdmin returns (address admin_) {\\n admin_ = _getAdmin();\\n }\\n\\n /**\\n * @dev Returns the current implementation.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the\\n * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`\\n */\\n function implementation() external ifAdmin returns (address implementation_) {\\n implementation_ = _implementation();\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}.\\n */\\n function changeAdmin(address newAdmin) external virtual ifAdmin {\\n _changeAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}.\\n */\\n function upgradeTo(address newImplementation) external ifAdmin {\\n _upgradeToAndCall(newImplementation, bytes(\\"\\"), false);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy, and then call a function from the new implementation as specified\\n * by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the\\n * proxied contract.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}.\\n */\\n function upgradeToAndCall(address newImplementation, bytes calldata data) external payable ifAdmin {\\n _upgradeToAndCall(newImplementation, data, true);\\n }\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _admin() internal view virtual returns (address) {\\n return _getAdmin();\\n }\\n\\n /**\\n * @dev Makes sure the admin cannot access the fallback function. See {Proxy-_beforeFallback}.\\n */\\n function _beforeFallback() internal virtual override {\\n require(msg.sender != _getAdmin(), \\"TransparentUpgradeableProxy: admin cannot fallback to proxy target\\");\\n super._beforeFallback();\\n }\\n}\\n","keccak256":"0x140055a64cf579d622e04f5a198595832bf2cb193cd0005f4f2d4d61ca906253","license":"MIT"},"solc_0.8/openzeppelin/utils/Address.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn\'t rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity\'s `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\"Address: insufficient balance\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\"\\");\\n require(success, \\"Address: unable to send value, recipient may have reverted\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCall(target, data, \\"Address: low-level call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\"Address: low-level call with value failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\"Address: insufficient balance for call\\");\\n require(isContract(target), \\"Address: call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\"Address: low-level static call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n require(isContract(target), \\"Address: static call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\"Address: low-level delegate call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(isContract(target), \\"Address: delegate call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verifies that a low level call was successful, and revert if it wasn\'t, either by bubbling the\\n * revert reason using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n }\\n}\\n","keccak256":"0x3777e696b62134e6177440dbe6e6601c0c156a443f57167194b67e75527439de","license":"MIT"},"solc_0.8/openzeppelin/utils/StorageSlot.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\"ERC1967: new implementation is not a contract\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._\\n */\\nlibrary StorageSlot {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n}\\n","keccak256":"0xfe1b7a9aa2a530a9e705b220e26cd584e2fbdc9602a3a1066032b12816b46aca","license":"MIT"}},"version":1}',bytecode:"0x6080604052604051620011b2380380620011b2833981016040819052620000269162000519565b82816200005560017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd620005f9565b6000805160206200116b833981519152146200007557620000756200061f565b6200008382826000620000e7565b50620000b3905060017fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6104620005f9565b6000805160206200114b83398151915214620000d357620000d36200061f565b620000de8262000124565b50505062000688565b620000f2836200017f565b600082511180620001005750805b156200011f576200011d8383620001c160201b620002ff1760201c565b505b505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6200014f620001f0565b604080516001600160a01b03928316815291841660208301520160405180910390a16200017c8162000229565b50565b6200018a81620002de565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060620001e983836040518060600160405280602781526020016200118b6027913962000381565b9392505050565b60006200021a6000805160206200114b83398151915260001b6200046760201b620002731760201c565b546001600160a01b0316919050565b6001600160a01b038116620002945760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b80620002bd6000805160206200114b83398151915260001b6200046760201b620002731760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b620002f4816200046a60201b6200032b1760201c565b620003585760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016200028b565b80620002bd6000805160206200116b83398151915260001b6200046760201b620002731760201c565b60606001600160a01b0384163b620003eb5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016200028b565b600080856001600160a01b03168560405162000408919062000635565b600060405180830381855af49150503d806000811462000445576040519150601f19603f3d011682016040523d82523d6000602084013e6200044a565b606091505b5090925090506200045d82828662000479565b9695505050505050565b90565b6001600160a01b03163b151590565b606083156200048a575081620001e9565b8251156200049b5782518084602001fd5b8160405162461bcd60e51b81526004016200028b919062000653565b80516001600160a01b0381168114620004cf57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101562000507578181015183820152602001620004ed565b838111156200011d5750506000910152565b6000806000606084860312156200052f57600080fd5b6200053a84620004b7565b92506200054a60208501620004b7565b60408501519092506001600160401b03808211156200056857600080fd5b818601915086601f8301126200057d57600080fd5b815181811115620005925762000592620004d4565b604051601f8201601f19908116603f01168101908382118183101715620005bd57620005bd620004d4565b81604052828152896020848701011115620005d757600080fd5b620005ea836020830160208801620004ea565b80955050505050509250925092565b6000828210156200061a57634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052600160045260246000fd5b6000825162000649818460208701620004ea565b9190910192915050565b602081526000825180602084015262000674816040850160208701620004ea565b601f01601f19169190910160400192915050565b610ab380620006986000396000f3fe60806040526004361061005e5760003560e01c80635c60da1b116100435780635c60da1b146100a85780638f283970146100e6578063f851a440146101065761006d565b80633659cfe6146100755780634f1ef286146100955761006d565b3661006d5761006b61011b565b005b61006b61011b565b34801561008157600080fd5b5061006b61009036600461091f565b610135565b61006b6100a336600461093a565b610196565b3480156100b457600080fd5b506100bd610221565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100f257600080fd5b5061006b61010136600461091f565b610276565b34801561011257600080fd5b506100bd6102ba565b610123610347565b61013361012e610435565b61043f565b565b61013d610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816040518060200160405280600081525060006104a3565b50565b61018b61011b565b61019e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610219576102148383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250600192506104a3915050565b505050565b61021461011b565b600061022b610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610435565b905090565b61027361011b565b90565b61027e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816104ce565b60006102c4610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610463565b60606103248383604051806060016040528060278152602001610a576027913961052f565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b61034f610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f7879207461726760648201527f6574000000000000000000000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b6000610266610657565b3660008037600080366000845af43d6000803e80801561045e573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b5473ffffffffffffffffffffffffffffffffffffffff16919050565b6104ac8361067f565b6000825111806104b95750805b15610214576104c883836102ff565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6104f7610463565b6040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301520160405180910390a161018b816106cc565b606073ffffffffffffffffffffffffffffffffffffffff84163b6105d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161042c565b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516105fd91906109e9565b600060405180830381855af49150503d8060008114610638576040519150601f19603f3d011682016040523d82523d6000602084013e61063d565b606091505b509150915061064d8282866107d8565b9695505050505050565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610487565b6106888161082b565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b73ffffffffffffffffffffffffffffffffffffffff811661076f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161042c565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905550565b606083156107e7575081610324565b8251156107f75782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c9190610a05565b73ffffffffffffffffffffffffffffffffffffffff81163b6108cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e747261637400000000000000000000000000000000000000606482015260840161042c565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610792565b803573ffffffffffffffffffffffffffffffffffffffff8116811461091a57600080fd5b919050565b60006020828403121561093157600080fd5b610324826108f6565b60008060006040848603121561094f57600080fd5b610958846108f6565b9250602084013567ffffffffffffffff8082111561097557600080fd5b818601915086601f83011261098957600080fd5b81358181111561099857600080fd5b8760208285010111156109aa57600080fd5b6020830194508093505050509250925092565b60005b838110156109d85781810151838201526020016109c0565b838111156104c85750506000910152565b600082516109fb8184602087016109bd565b9190910192915050565b6020815260008251806020840152610a248160408501602087016109bd565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b29caa54336b3ee836679675e9732ec5e526fb3f803cca2fe336cc3555aba62264736f6c634300080a0033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564",deployedBytecode:"0x60806040526004361061005e5760003560e01c80635c60da1b116100435780635c60da1b146100a85780638f283970146100e6578063f851a440146101065761006d565b80633659cfe6146100755780634f1ef286146100955761006d565b3661006d5761006b61011b565b005b61006b61011b565b34801561008157600080fd5b5061006b61009036600461091f565b610135565b61006b6100a336600461093a565b610196565b3480156100b457600080fd5b506100bd610221565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100f257600080fd5b5061006b61010136600461091f565b610276565b34801561011257600080fd5b506100bd6102ba565b610123610347565b61013361012e610435565b61043f565b565b61013d610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816040518060200160405280600081525060006104a3565b50565b61018b61011b565b61019e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610219576102148383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250600192506104a3915050565b505050565b61021461011b565b600061022b610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610435565b905090565b61027361011b565b90565b61027e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816104ce565b60006102c4610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610463565b60606103248383604051806060016040528060278152602001610a576027913961052f565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b61034f610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f7879207461726760648201527f6574000000000000000000000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b6000610266610657565b3660008037600080366000845af43d6000803e80801561045e573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b5473ffffffffffffffffffffffffffffffffffffffff16919050565b6104ac8361067f565b6000825111806104b95750805b15610214576104c883836102ff565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6104f7610463565b6040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301520160405180910390a161018b816106cc565b606073ffffffffffffffffffffffffffffffffffffffff84163b6105d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161042c565b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516105fd91906109e9565b600060405180830381855af49150503d8060008114610638576040519150601f19603f3d011682016040523d82523d6000602084013e61063d565b606091505b509150915061064d8282866107d8565b9695505050505050565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610487565b6106888161082b565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b73ffffffffffffffffffffffffffffffffffffffff811661076f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161042c565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905550565b606083156107e7575081610324565b8251156107f75782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c9190610a05565b73ffffffffffffffffffffffffffffffffffffffff81163b6108cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e747261637400000000000000000000000000000000000000606482015260840161042c565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610792565b803573ffffffffffffffffffffffffffffffffffffffff8116811461091a57600080fd5b919050565b60006020828403121561093157600080fd5b610324826108f6565b60008060006040848603121561094f57600080fd5b610958846108f6565b9250602084013567ffffffffffffffff8082111561097557600080fd5b818601915086601f83011261098957600080fd5b81358181111561099857600080fd5b8760208285010111156109aa57600080fd5b6020830194508093505050509250925092565b60005b838110156109d85781810151838201526020016109c0565b838111156104c85750506000910152565b600082516109fb8184602087016109bd565b9190910192915050565b6020815260008251806020840152610a248160408501602087016109bd565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b29caa54336b3ee836679675e9732ec5e526fb3f803cca2fe336cc3555aba62264736f6c634300080a0033",execute:{methodName:"initialize",args:[]},implementation:"0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9",devdoc:{details:"This contract implements a proxy that is upgradeable by an admin. To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector clashing], which can potentially be used in an attack, this contract uses the https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two things that go hand in hand: 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if that call matches one of the admin functions exposed by the proxy itself. 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the implementation. If the admin tries to call a function on the implementation it will fail with an error that says \"admin cannot fallback to proxy target\". These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing the admin, so it's best if it's a dedicated account that is not used for anything else. This will avoid headaches due to sudden errors when trying to call a function from the proxy implementation. Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way, you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.",kind:"dev",methods:{"admin()":{details:"Returns the current admin. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`"},"changeAdmin(address)":{details:"Changes the admin of the proxy. Emits an {AdminChanged} event. NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}."},constructor:{details:"Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}."},"implementation()":{details:"Returns the current implementation. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`"},"upgradeTo(address)":{details:"Upgrade the implementation of the proxy. NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}."},"upgradeToAndCall(address,bytes)":{details:"Upgrade the implementation of the proxy, and then call a function from the new implementation as specified by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the proxied contract. NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}."}},version:1},userdoc:{kind:"user",methods:{},version:1},storageLayout:{storage:[],types:null}};var Ep={address:"0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0",abi:[{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"previousAdmin",type:"address"},{indexed:!1,internalType:"address",name:"newAdmin",type:"address"}],name:"AdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"beacon",type:"address"}],name:"BeaconUpgraded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"implementation",type:"address"}],name:"Upgraded",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"admin",outputs:[{internalType:"address",name:"admin_",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newAdmin",type:"address"}],name:"changeAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"implementation",outputs:[{internalType:"address",name:"implementation_",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"}],name:"upgradeTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"},{inputs:[],name:"InvalidInitialization",type:"error"},{inputs:[],name:"NotInitializing",type:"error"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"OwnableInvalidOwner",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"OwnableUnauthorizedAccount",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"id",type:"address"}],name:"DeRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint64",name:"version",type:"uint64"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"id",type:"address"},{indexed:!1,internalType:"uint256",name:"index",type:"uint256"}],name:"Registered",type:"event"},{inputs:[],name:"deRegister",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"id",type:"address"}],name:"deRegisterAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"deRegisterAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"getNodeAtIndex",outputs:[{components:[{internalType:"address",name:"nodeAddress",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"},{internalType:"uint256",name:"timestamp",type:"uint256"}],internalType:"struct NodeRegistry.Registration",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"getNodeCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"node",type:"address"}],name:"getNodeIndexByAddress",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getNodes",outputs:[{components:[{internalType:"address",name:"nodeAddress",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"},{internalType:"uint256",name:"timestamp",type:"uint256"}],internalType:"struct NodeRegistry.Registration[]",name:"",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"nodeIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"registerNode",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"registeredNodes",outputs:[{internalType:"address",name:"nodeAddress",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"},{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_logic",type:"address"},{internalType:"address",name:"admin_",type:"address"},{internalType:"bytes",name:"_data",type:"bytes"}],stateMutability:"payable",type:"constructor"}],transactionHash:"0x9d911aaae3b129f522f0393e89403ae73f5f9f092eddaee12ed6e5800d45c77d",receipt:{to:null,from:"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",contractAddress:"0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0",transactionIndex:0,gasUsed:"839035",logsBloom:"0x00000000000000000400000000000000400000000000000000800000000000000000000000000000000000000000000000000000000040200000000000000000000000000000000000000000000002000001000000000000000000000000000000000000020000000000000100000800000000800000000000000004000000400000000000000000000800000000000000000000000080000000000000800000000000000000000000000002000000000000000000000000000000000000000000000020000000200000000000000000000000002404000000000000000020000000000000000000000000000000000000000000000000400000000000000000",blockHash:"0x515b030f2097f1edd8c50193e36106ec9288621aa738b6c8d6ede659c5d53411",transactionHash:"0x9d911aaae3b129f522f0393e89403ae73f5f9f092eddaee12ed6e5800d45c77d",logs:[{transactionIndex:0,blockNumber:3,transactionHash:"0x9d911aaae3b129f522f0393e89403ae73f5f9f092eddaee12ed6e5800d45c77d",address:"0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0",topics:["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000e7f1725e7734ce288f8367e1bb143e90bb3f0512"],data:"0x",logIndex:0,blockHash:"0x515b030f2097f1edd8c50193e36106ec9288621aa738b6c8d6ede659c5d53411"},{transactionIndex:0,blockNumber:3,transactionHash:"0x9d911aaae3b129f522f0393e89403ae73f5f9f092eddaee12ed6e5800d45c77d",address:"0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0",topics:["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266"],data:"0x",logIndex:1,blockHash:"0x515b030f2097f1edd8c50193e36106ec9288621aa738b6c8d6ede659c5d53411"},{transactionIndex:0,blockNumber:3,transactionHash:"0x9d911aaae3b129f522f0393e89403ae73f5f9f092eddaee12ed6e5800d45c77d",address:"0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0",topics:["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"],data:"0x0000000000000000000000000000000000000000000000000000000000000001",logIndex:2,blockHash:"0x515b030f2097f1edd8c50193e36106ec9288621aa738b6c8d6ede659c5d53411"},{transactionIndex:0,blockNumber:3,transactionHash:"0x9d911aaae3b129f522f0393e89403ae73f5f9f092eddaee12ed6e5800d45c77d",address:"0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0",topics:["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],data:"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000005fbdb2315678afecb367f032d93f642f64180aa3",logIndex:3,blockHash:"0x515b030f2097f1edd8c50193e36106ec9288621aa738b6c8d6ede659c5d53411"}],blockNumber:3,cumulativeGasUsed:"839035",status:1,byzantium:!0},args:["0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512","0x5FbDB2315678afecb367f032d93F642f64180aa3","0x8129fc1c"],numDeployments:1,solcInputHash:"0e89febeebc7444140de8e67c9067d2c",metadata:'{"compiler":{"version":"0.8.10+commit.fc410830"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"admin_","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"admin_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"changeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"implementation_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}],"devdoc":{"details":"This contract implements a proxy that is upgradeable by an admin. To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector clashing], which can potentially be used in an attack, this contract uses the https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two things that go hand in hand: 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if that call matches one of the admin functions exposed by the proxy itself. 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the implementation. If the admin tries to call a function on the implementation it will fail with an error that says \\"admin cannot fallback to proxy target\\". These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing the admin, so it\'s best if it\'s a dedicated account that is not used for anything else. This will avoid headaches due to sudden errors when trying to call a function from the proxy implementation. Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way, you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.","kind":"dev","methods":{"admin()":{"details":"Returns the current admin. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`"},"changeAdmin(address)":{"details":"Changes the admin of the proxy. Emits an {AdminChanged} event. NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}."},"constructor":{"details":"Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}."},"implementation()":{"details":"Returns the current implementation. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`"},"upgradeTo(address)":{"details":"Upgrade the implementation of the proxy. NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}."},"upgradeToAndCall(address,bytes)":{"details":"Upgrade the implementation of the proxy, and then call a function from the new implementation as specified by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the proxied contract. NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}."}},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"compilationTarget":{"solc_0.8/openzeppelin/proxy/transparent/TransparentUpgradeableProxy.sol":"TransparentUpgradeableProxy"},"evmVersion":"london","libraries":{},"metadata":{"bytecodeHash":"ipfs","useLiteralContent":true},"optimizer":{"enabled":true,"runs":999999},"remappings":[]},"sources":{"solc_0.8/openzeppelin/interfaces/draft-IERC1822.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n","keccak256":"0x93b4e21c931252739a1ec13ea31d3d35a5c068be3163ccab83e4d70c40355f03","license":"MIT"},"solc_0.8/openzeppelin/proxy/ERC1967/ERC1967Proxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/ERC1967/ERC1967Proxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\"../Proxy.sol\\";\\nimport \\"./ERC1967Upgrade.sol\\";\\n\\n/**\\n * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an\\n * implementation address that can be changed. This address is stored in storage in the location specified by\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn\'t conflict with the storage layout of the\\n * implementation behind the proxy.\\n */\\ncontract ERC1967Proxy is Proxy, ERC1967Upgrade {\\n /**\\n * @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.\\n *\\n * If `_data` is nonempty, it\'s used as data in a delegate call to `_logic`. This will typically be an encoded\\n * function call, and allows initializating the storage of the proxy like a Solidity constructor.\\n */\\n constructor(address _logic, bytes memory _data) payable {\\n assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256(\\"eip1967.proxy.implementation\\")) - 1));\\n _upgradeToAndCall(_logic, _data, false);\\n }\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _implementation() internal view virtual override returns (address impl) {\\n return ERC1967Upgrade._getImplementation();\\n }\\n}\\n","keccak256":"0x6309f9f39dc6f4f45a24f296543867aa358e32946cd6b2874627a996d606b3a0","license":"MIT"},"solc_0.8/openzeppelin/proxy/ERC1967/ERC1967Upgrade.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (proxy/ERC1967/ERC1967Upgrade.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\"../beacon/IBeacon.sol\\";\\nimport \\"../../interfaces/draft-IERC1822.sol\\";\\nimport \\"../../utils/Address.sol\\";\\nimport \\"../../utils/StorageSlot.sol\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n *\\n * _Available since v4.1._\\n *\\n * @custom:oz-upgrades-unsafe-allow delegatecall\\n */\\nabstract contract ERC1967Upgrade {\\n // This is the keccak-256 hash of \\"eip1967.proxy.rollback\\" subtracted by 1\\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\"eip1967.proxy.implementation\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(Address.isContract(newImplementation), \\"ERC1967: new implementation is not a contract\\");\\n StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Perform implementation upgrade\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeTo(address newImplementation) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCall(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _upgradeTo(newImplementation);\\n if (data.length > 0 || forceCall) {\\n Address.functionDelegateCall(newImplementation, data);\\n }\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n // Upgrades from old implementations will perform a rollback test. This test requires the new\\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\\n // this special case will break upgrade paths from old UUPS implementation to new ones.\\n if (StorageSlot.getBooleanSlot(_ROLLBACK_SLOT).value) {\\n _setImplementation(newImplementation);\\n } else {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n require(slot == _IMPLEMENTATION_SLOT, \\"ERC1967Upgrade: unsupported proxiableUUID\\");\\n } catch {\\n revert(\\"ERC1967Upgrade: new implementation is not UUPS\\");\\n }\\n _upgradeToAndCall(newImplementation, data, forceCall);\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\"eip1967.proxy.admin\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _getAdmin() internal view virtual returns (address) {\\n return StorageSlot.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n require(newAdmin != address(0), \\"ERC1967: new admin is the zero address\\");\\n StorageSlot.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n */\\n function _changeAdmin(address newAdmin) internal {\\n emit AdminChanged(_getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is bytes32(uint256(keccak256(\'eip1967.proxy.beacon\')) - 1)) and is validated in the constructor.\\n */\\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Emitted when the beacon is upgraded.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function _getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(_BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n require(Address.isContract(newBeacon), \\"ERC1967: new beacon is not a contract\\");\\n require(Address.isContract(IBeacon(newBeacon).implementation()), \\"ERC1967: beacon implementation is not a contract\\");\\n StorageSlot.getAddressSlot(_BEACON_SLOT).value = newBeacon;\\n }\\n\\n /**\\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\\n *\\n * Emits a {BeaconUpgraded} event.\\n */\\n function _upgradeBeaconToAndCall(\\n address newBeacon,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n if (data.length > 0 || forceCall) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n }\\n }\\n}\\n","keccak256":"0x17668652127feebed0ce8d9431ef95ccc8c4292f03e3b8cf06c6ca16af396633","license":"MIT"},"solc_0.8/openzeppelin/proxy/Proxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (proxy/Proxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM\\n * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to\\n * be specified by overriding the virtual {_implementation} function.\\n *\\n * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a\\n * different contract through the {_delegate} function.\\n *\\n * The success and return data of the delegated call will be returned back to the caller of the proxy.\\n */\\nabstract contract Proxy {\\n /**\\n * @dev Delegates the current call to `implementation`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _delegate(address implementation) internal virtual {\\n assembly {\\n // Copy msg.data. We take full control of memory in this inline assembly\\n // block because it will not return to Solidity code. We overwrite the\\n // Solidity scratch pad at memory position 0.\\n calldatacopy(0, 0, calldatasize())\\n\\n // Call the implementation.\\n // out and outsize are 0 because we don\'t know the size yet.\\n let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\\n\\n // Copy the returned data.\\n returndatacopy(0, 0, returndatasize())\\n\\n switch result\\n // delegatecall returns 0 on error.\\n case 0 {\\n revert(0, returndatasize())\\n }\\n default {\\n return(0, returndatasize())\\n }\\n }\\n }\\n\\n /**\\n * @dev This is a virtual function that should be overriden so it returns the address to which the fallback function\\n * and {_fallback} should delegate.\\n */\\n function _implementation() internal view virtual returns (address);\\n\\n /**\\n * @dev Delegates the current call to the address returned by `_implementation()`.\\n *\\n * This function does not return to its internall call site, it will return directly to the external caller.\\n */\\n function _fallback() internal virtual {\\n _beforeFallback();\\n _delegate(_implementation());\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other\\n * function in the contract matches the call data.\\n */\\n fallback() external payable virtual {\\n _fallback();\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data\\n * is empty.\\n */\\n receive() external payable virtual {\\n _fallback();\\n }\\n\\n /**\\n * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`\\n * call, or as part of the Solidity `fallback` or `receive` functions.\\n *\\n * If overriden should call `super._beforeFallback()`.\\n */\\n function _beforeFallback() internal virtual {}\\n}\\n","keccak256":"0xd5d1fd16e9faff7fcb3a52e02a8d49156f42a38a03f07b5f1810c21c2149a8ab","license":"MIT"},"solc_0.8/openzeppelin/proxy/beacon/IBeacon.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {BeaconProxy} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n","keccak256":"0xd50a3421ac379ccb1be435fa646d66a65c986b4924f0849839f08692f39dde61","license":"MIT"},"solc_0.8/openzeppelin/proxy/transparent/TransparentUpgradeableProxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/transparent/TransparentUpgradeableProxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\"../ERC1967/ERC1967Proxy.sol\\";\\n\\n/**\\n * @dev This contract implements a proxy that is upgradeable by an admin.\\n *\\n * To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector\\n * clashing], which can potentially be used in an attack, this contract uses the\\n * https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two\\n * things that go hand in hand:\\n *\\n * 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if\\n * that call matches one of the admin functions exposed by the proxy itself.\\n * 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the\\n * implementation. If the admin tries to call a function on the implementation it will fail with an error that says\\n * \\"admin cannot fallback to proxy target\\".\\n *\\n * These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing\\n * the admin, so it\'s best if it\'s a dedicated account that is not used for anything else. This will avoid headaches due\\n * to sudden errors when trying to call a function from the proxy implementation.\\n *\\n * Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way,\\n * you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.\\n */\\ncontract TransparentUpgradeableProxy is ERC1967Proxy {\\n /**\\n * @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and\\n * optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}.\\n */\\n constructor(\\n address _logic,\\n address admin_,\\n bytes memory _data\\n ) payable ERC1967Proxy(_logic, _data) {\\n assert(_ADMIN_SLOT == bytes32(uint256(keccak256(\\"eip1967.proxy.admin\\")) - 1));\\n _changeAdmin(admin_);\\n }\\n\\n /**\\n * @dev Modifier used internally that will delegate the call to the implementation unless the sender is the admin.\\n */\\n modifier ifAdmin() {\\n if (msg.sender == _getAdmin()) {\\n _;\\n } else {\\n _fallback();\\n }\\n }\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the\\n * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function admin() external ifAdmin returns (address admin_) {\\n admin_ = _getAdmin();\\n }\\n\\n /**\\n * @dev Returns the current implementation.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the\\n * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`\\n */\\n function implementation() external ifAdmin returns (address implementation_) {\\n implementation_ = _implementation();\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}.\\n */\\n function changeAdmin(address newAdmin) external virtual ifAdmin {\\n _changeAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}.\\n */\\n function upgradeTo(address newImplementation) external ifAdmin {\\n _upgradeToAndCall(newImplementation, bytes(\\"\\"), false);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy, and then call a function from the new implementation as specified\\n * by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the\\n * proxied contract.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}.\\n */\\n function upgradeToAndCall(address newImplementation, bytes calldata data) external payable ifAdmin {\\n _upgradeToAndCall(newImplementation, data, true);\\n }\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _admin() internal view virtual returns (address) {\\n return _getAdmin();\\n }\\n\\n /**\\n * @dev Makes sure the admin cannot access the fallback function. See {Proxy-_beforeFallback}.\\n */\\n function _beforeFallback() internal virtual override {\\n require(msg.sender != _getAdmin(), \\"TransparentUpgradeableProxy: admin cannot fallback to proxy target\\");\\n super._beforeFallback();\\n }\\n}\\n","keccak256":"0x140055a64cf579d622e04f5a198595832bf2cb193cd0005f4f2d4d61ca906253","license":"MIT"},"solc_0.8/openzeppelin/utils/Address.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn\'t rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity\'s `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\"Address: insufficient balance\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\"\\");\\n require(success, \\"Address: unable to send value, recipient may have reverted\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCall(target, data, \\"Address: low-level call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\"Address: low-level call with value failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\"Address: insufficient balance for call\\");\\n require(isContract(target), \\"Address: call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\"Address: low-level static call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n require(isContract(target), \\"Address: static call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\"Address: low-level delegate call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(isContract(target), \\"Address: delegate call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verifies that a low level call was successful, and revert if it wasn\'t, either by bubbling the\\n * revert reason using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n }\\n}\\n","keccak256":"0x3777e696b62134e6177440dbe6e6601c0c156a443f57167194b67e75527439de","license":"MIT"},"solc_0.8/openzeppelin/utils/StorageSlot.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\"ERC1967: new implementation is not a contract\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._\\n */\\nlibrary StorageSlot {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n}\\n","keccak256":"0xfe1b7a9aa2a530a9e705b220e26cd584e2fbdc9602a3a1066032b12816b46aca","license":"MIT"}},"version":1}',bytecode:"0x6080604052604051620011b2380380620011b2833981016040819052620000269162000519565b82816200005560017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd620005f9565b6000805160206200116b833981519152146200007557620000756200061f565b6200008382826000620000e7565b50620000b3905060017fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6104620005f9565b6000805160206200114b83398151915214620000d357620000d36200061f565b620000de8262000124565b50505062000688565b620000f2836200017f565b600082511180620001005750805b156200011f576200011d8383620001c160201b620002ff1760201c565b505b505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6200014f620001f0565b604080516001600160a01b03928316815291841660208301520160405180910390a16200017c8162000229565b50565b6200018a81620002de565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060620001e983836040518060600160405280602781526020016200118b6027913962000381565b9392505050565b60006200021a6000805160206200114b83398151915260001b6200046760201b620002731760201c565b546001600160a01b0316919050565b6001600160a01b038116620002945760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b80620002bd6000805160206200114b83398151915260001b6200046760201b620002731760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b620002f4816200046a60201b6200032b1760201c565b620003585760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016200028b565b80620002bd6000805160206200116b83398151915260001b6200046760201b620002731760201c565b60606001600160a01b0384163b620003eb5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016200028b565b600080856001600160a01b03168560405162000408919062000635565b600060405180830381855af49150503d806000811462000445576040519150601f19603f3d011682016040523d82523d6000602084013e6200044a565b606091505b5090925090506200045d82828662000479565b9695505050505050565b90565b6001600160a01b03163b151590565b606083156200048a575081620001e9565b8251156200049b5782518084602001fd5b8160405162461bcd60e51b81526004016200028b919062000653565b80516001600160a01b0381168114620004cf57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101562000507578181015183820152602001620004ed565b838111156200011d5750506000910152565b6000806000606084860312156200052f57600080fd5b6200053a84620004b7565b92506200054a60208501620004b7565b60408501519092506001600160401b03808211156200056857600080fd5b818601915086601f8301126200057d57600080fd5b815181811115620005925762000592620004d4565b604051601f8201601f19908116603f01168101908382118183101715620005bd57620005bd620004d4565b81604052828152896020848701011115620005d757600080fd5b620005ea836020830160208801620004ea565b80955050505050509250925092565b6000828210156200061a57634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052600160045260246000fd5b6000825162000649818460208701620004ea565b9190910192915050565b602081526000825180602084015262000674816040850160208701620004ea565b601f01601f19169190910160400192915050565b610ab380620006986000396000f3fe60806040526004361061005e5760003560e01c80635c60da1b116100435780635c60da1b146100a85780638f283970146100e6578063f851a440146101065761006d565b80633659cfe6146100755780634f1ef286146100955761006d565b3661006d5761006b61011b565b005b61006b61011b565b34801561008157600080fd5b5061006b61009036600461091f565b610135565b61006b6100a336600461093a565b610196565b3480156100b457600080fd5b506100bd610221565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100f257600080fd5b5061006b61010136600461091f565b610276565b34801561011257600080fd5b506100bd6102ba565b610123610347565b61013361012e610435565b61043f565b565b61013d610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816040518060200160405280600081525060006104a3565b50565b61018b61011b565b61019e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610219576102148383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250600192506104a3915050565b505050565b61021461011b565b600061022b610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610435565b905090565b61027361011b565b90565b61027e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816104ce565b60006102c4610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610463565b60606103248383604051806060016040528060278152602001610a576027913961052f565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b61034f610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f7879207461726760648201527f6574000000000000000000000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b6000610266610657565b3660008037600080366000845af43d6000803e80801561045e573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b5473ffffffffffffffffffffffffffffffffffffffff16919050565b6104ac8361067f565b6000825111806104b95750805b15610214576104c883836102ff565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6104f7610463565b6040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301520160405180910390a161018b816106cc565b606073ffffffffffffffffffffffffffffffffffffffff84163b6105d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161042c565b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516105fd91906109e9565b600060405180830381855af49150503d8060008114610638576040519150601f19603f3d011682016040523d82523d6000602084013e61063d565b606091505b509150915061064d8282866107d8565b9695505050505050565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610487565b6106888161082b565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b73ffffffffffffffffffffffffffffffffffffffff811661076f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161042c565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905550565b606083156107e7575081610324565b8251156107f75782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c9190610a05565b73ffffffffffffffffffffffffffffffffffffffff81163b6108cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e747261637400000000000000000000000000000000000000606482015260840161042c565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610792565b803573ffffffffffffffffffffffffffffffffffffffff8116811461091a57600080fd5b919050565b60006020828403121561093157600080fd5b610324826108f6565b60008060006040848603121561094f57600080fd5b610958846108f6565b9250602084013567ffffffffffffffff8082111561097557600080fd5b818601915086601f83011261098957600080fd5b81358181111561099857600080fd5b8760208285010111156109aa57600080fd5b6020830194508093505050509250925092565b60005b838110156109d85781810151838201526020016109c0565b838111156104c85750506000910152565b600082516109fb8184602087016109bd565b9190910192915050565b6020815260008251806020840152610a248160408501602087016109bd565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b29caa54336b3ee836679675e9732ec5e526fb3f803cca2fe336cc3555aba62264736f6c634300080a0033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564",deployedBytecode:"0x60806040526004361061005e5760003560e01c80635c60da1b116100435780635c60da1b146100a85780638f283970146100e6578063f851a440146101065761006d565b80633659cfe6146100755780634f1ef286146100955761006d565b3661006d5761006b61011b565b005b61006b61011b565b34801561008157600080fd5b5061006b61009036600461091f565b610135565b61006b6100a336600461093a565b610196565b3480156100b457600080fd5b506100bd610221565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100f257600080fd5b5061006b61010136600461091f565b610276565b34801561011257600080fd5b506100bd6102ba565b610123610347565b61013361012e610435565b61043f565b565b61013d610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816040518060200160405280600081525060006104a3565b50565b61018b61011b565b61019e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610219576102148383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250600192506104a3915050565b505050565b61021461011b565b600061022b610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610435565b905090565b61027361011b565b90565b61027e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816104ce565b60006102c4610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610463565b60606103248383604051806060016040528060278152602001610a576027913961052f565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b61034f610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f7879207461726760648201527f6574000000000000000000000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b6000610266610657565b3660008037600080366000845af43d6000803e80801561045e573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b5473ffffffffffffffffffffffffffffffffffffffff16919050565b6104ac8361067f565b6000825111806104b95750805b15610214576104c883836102ff565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6104f7610463565b6040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301520160405180910390a161018b816106cc565b606073ffffffffffffffffffffffffffffffffffffffff84163b6105d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161042c565b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516105fd91906109e9565b600060405180830381855af49150503d8060008114610638576040519150601f19603f3d011682016040523d82523d6000602084013e61063d565b606091505b509150915061064d8282866107d8565b9695505050505050565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610487565b6106888161082b565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b73ffffffffffffffffffffffffffffffffffffffff811661076f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161042c565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905550565b606083156107e7575081610324565b8251156107f75782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c9190610a05565b73ffffffffffffffffffffffffffffffffffffffff81163b6108cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e747261637400000000000000000000000000000000000000606482015260840161042c565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610792565b803573ffffffffffffffffffffffffffffffffffffffff8116811461091a57600080fd5b919050565b60006020828403121561093157600080fd5b610324826108f6565b60008060006040848603121561094f57600080fd5b610958846108f6565b9250602084013567ffffffffffffffff8082111561097557600080fd5b818601915086601f83011261098957600080fd5b81358181111561099857600080fd5b8760208285010111156109aa57600080fd5b6020830194508093505050509250925092565b60005b838110156109d85781810151838201526020016109c0565b838111156104c85750506000910152565b600082516109fb8184602087016109bd565b9190910192915050565b6020815260008251806020840152610a248160408501602087016109bd565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b29caa54336b3ee836679675e9732ec5e526fb3f803cca2fe336cc3555aba62264736f6c634300080a0033",execute:{methodName:"initialize",args:[]},implementation:"0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512",devdoc:{details:"This contract implements a proxy that is upgradeable by an admin. To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector clashing], which can potentially be used in an attack, this contract uses the https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two things that go hand in hand: 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if that call matches one of the admin functions exposed by the proxy itself. 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the implementation. If the admin tries to call a function on the implementation it will fail with an error that says \"admin cannot fallback to proxy target\". These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing the admin, so it's best if it's a dedicated account that is not used for anything else. This will avoid headaches due to sudden errors when trying to call a function from the proxy implementation. Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way, you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.",kind:"dev",methods:{"admin()":{details:"Returns the current admin. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`"},"changeAdmin(address)":{details:"Changes the admin of the proxy. Emits an {AdminChanged} event. NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}."},constructor:{details:"Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}."},"implementation()":{details:"Returns the current implementation. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`"},"upgradeTo(address)":{details:"Upgrade the implementation of the proxy. NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}."},"upgradeToAndCall(address,bytes)":{details:"Upgrade the implementation of the proxy, and then call a function from the new implementation as specified by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the proxied contract. NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}."}},version:1},userdoc:{kind:"user",methods:{},version:1},storageLayout:{storage:[],types:null}};var x0={address:"0x8464135c8F25Da09e49BC8782676a84730C318bC",abi:[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"caller",type:"address"},{indexed:!0,internalType:"bytes32",name:"codeHash",type:"bytes32"},{indexed:!1,internalType:"string",name:"inputSig",type:"string"},{indexed:!1,internalType:"bytes",name:"input",type:"bytes"}],name:"TaskRequested",type:"event"},{inputs:[{internalType:"address",name:"caller",type:"address"},{internalType:"bytes",name:"resultData",type:"bytes"}],name:"callback",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"codeHash",type:"bytes32"},{internalType:"string",name:"methodSignature",type:"string"},{internalType:"bytes",name:"input",type:"bytes"}],name:"requestExecution",outputs:[],stateMutability:"nonpayable",type:"function"}],transactionHash:"0xcc945484ab6b2969eac48eddea619d6617611682048e121e5b135c5e20ea01ed",receipt:{to:null,from:"0x70997970C51812dc3A010C7d01b50e0d17dc79C8",contractAddress:"0x8464135c8F25Da09e49BC8782676a84730C318bC",transactionIndex:0,gasUsed:"174943",logsBloom:"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",blockHash:"0xded534d3f7f2f74b03c5f6f078178859bf38a112a40f432532a384ce33e25f88",transactionHash:"0xcc945484ab6b2969eac48eddea619d6617611682048e121e5b135c5e20ea01ed",logs:[],blockNumber:8,cumulativeGasUsed:"174943",status:1,byzantium:!0},args:[],numDeployments:1,solcInputHash:"67ad68b7b72c8469f80adab96db544af",metadata:'{"compiler":{"version":"0.8.28+commit.7893614a"},"language":"Solidity","output":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"bytes32","name":"codeHash","type":"bytes32"},{"indexed":false,"internalType":"string","name":"inputSig","type":"string"},{"indexed":false,"internalType":"bytes","name":"input","type":"bytes"}],"name":"TaskRequested","type":"event"},{"inputs":[{"internalType":"address","name":"caller","type":"address"},{"internalType":"bytes","name":"resultData","type":"bytes"}],"name":"callback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"codeHash","type":"bytes32"},{"internalType":"string","name":"methodSignature","type":"string"},{"internalType":"bytes","name":"input","type":"bytes"}],"name":"requestExecution","outputs":[],"stateMutability":"nonpayable","type":"function"}],"devdoc":{"kind":"dev","methods":{},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"compilationTarget":{"contracts/BridgeContract.sol":"BridgeContract"},"evmVersion":"paris","libraries":{},"metadata":{"bytecodeHash":"ipfs","useLiteralContent":true},"optimizer":{"enabled":true,"runs":200},"remappings":[],"viaIR":true},"sources":{"contracts/BridgeContract.sol":{"content":"// SPDX-License-Identifier: MIT\\n// BRIDGE CONTRACT\\npragma solidity ^0.8.0;\\nimport \\"./interfaces/IBaseTBContract.sol\\";\\n\\ncontract BridgeContract {\\n event TaskRequested(\\n address indexed caller,\\n bytes32 indexed codeHash,\\n string inputSig,\\n bytes input\\n );\\n\\n function requestExecution(\\n bytes32 codeHash,\\n string calldata methodSignature,\\n bytes calldata input\\n ) external {\\n emit TaskRequested(msg.sender, codeHash, methodSignature, input);\\n }\\n\\n function callback(\\n address caller,\\n bytes calldata resultData\\n ) external {\\n IBaseTBContract(caller).callbackTask(resultData);\\n }\\n}","keccak256":"0x14892a4e74444c0da4a8fc28f067154c70bfe29e77b1cde681098dc087d77392","license":"MIT"},"contracts/interfaces/IBaseTBContract.sol":{"content":"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IBaseTBContract {\\n function callbackTask(bytes calldata resultData) external;\\n}","keccak256":"0x03d5394c4695891181e63663a1f637f6f6062c6faf0b3fe6ff45223f8b68613b","license":"MIT"}},"version":1}',bytecode:"0x60808060405234601557610233908161001b8239f35b600080fdfe608080604052600436101561001357600080fd5b600090813560e01c908163246a9512146100e85750634cef3dd91461003757600080fd5b346100e55760603660031901126100e55760243567ffffffffffffffff81116100e3576100689036906004016101a9565b60443567ffffffffffffffff81116100df576100a97f14cb35f82d4b6877135336cefab010dd557f93e02c11d91a0551bdcce363f1639136906004016101a9565b9390926100d96100c66040519384936040855260408501916101dc565b82810360208401526004359633966101dc565b0390a380f35b8380fd5b505b80fd5b9050346100e35760403660031901126100e357816004356001600160a01b038116908190036100e35760243567ffffffffffffffff81116101a5576101319036906004016101a9565b9190813b156100df57838561015f819593829463ee6badbd60e01b84526020600485015260248401916101dc565b03925af1801561019a57610171575080f35b67ffffffffffffffff81116101865760405280f35b634e487b7160e01b82526041600452602482fd5b6040513d84823e3d90fd5b8280fd5b9181601f840112156101d75782359167ffffffffffffffff83116101d757602083818601950101116101d757565b600080fd5b908060209392818452848401376000828201840152601f01601f191601019056fea264697066735822122088249c45192203b500c394c9ef1c85f29b35e2caeb05a849fd2836594f93e8bb64736f6c634300081c0033",deployedBytecode:"0x608080604052600436101561001357600080fd5b600090813560e01c908163246a9512146100e85750634cef3dd91461003757600080fd5b346100e55760603660031901126100e55760243567ffffffffffffffff81116100e3576100689036906004016101a9565b60443567ffffffffffffffff81116100df576100a97f14cb35f82d4b6877135336cefab010dd557f93e02c11d91a0551bdcce363f1639136906004016101a9565b9390926100d96100c66040519384936040855260408501916101dc565b82810360208401526004359633966101dc565b0390a380f35b8380fd5b505b80fd5b9050346100e35760403660031901126100e357816004356001600160a01b038116908190036100e35760243567ffffffffffffffff81116101a5576101319036906004016101a9565b9190813b156100df57838561015f819593829463ee6badbd60e01b84526020600485015260248401916101dc565b03925af1801561019a57610171575080f35b67ffffffffffffffff81116101865760405280f35b634e487b7160e01b82526041600452602482fd5b6040513d84823e3d90fd5b8280fd5b9181601f840112156101d75782359167ffffffffffffffff83116101d757602083818601950101116101d757565b600080fd5b908060209392818452848401376000828201840152601f01601f191601019056fea264697066735822122088249c45192203b500c394c9ef1c85f29b35e2caeb05a849fd2836594f93e8bb64736f6c634300081c0033",devdoc:{kind:"dev",methods:{},version:1},userdoc:{kind:"user",methods:{},version:1},storageLayout:{storage:[],types:null}};var jx={address:"0xc84f349C46e046ca6dbd7e653700DF728FA496E4",abi:[{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"previousAdmin",type:"address"},{indexed:!1,internalType:"address",name:"newAdmin",type:"address"}],name:"AdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"beacon",type:"address"}],name:"BeaconUpgraded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"implementation",type:"address"}],name:"Upgraded",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"admin",outputs:[{internalType:"address",name:"admin_",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newAdmin",type:"address"}],name:"changeAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"implementation",outputs:[{internalType:"address",name:"implementation_",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"}],name:"upgradeTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"},{inputs:[],name:"ECDSAInvalidSignature",type:"error"},{inputs:[{internalType:"uint256",name:"length",type:"uint256"}],name:"ECDSAInvalidSignatureLength",type:"error"},{inputs:[{internalType:"bytes32",name:"s",type:"bytes32"}],name:"ECDSAInvalidSignatureS",type:"error"},{inputs:[],name:"InvalidInitialization",type:"error"},{inputs:[],name:"NotInitializing",type:"error"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"OwnableInvalidOwner",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"OwnableUnauthorizedAccount",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"}],name:"Deregistered",type:"event"},{anonymous:!1,inputs:[],name:"EIP712DomainChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!0,internalType:"address",name:"grantee",type:"address"}],name:"Granted",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint64",name:"version",type:"uint64"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"}],name:"Registered",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!0,internalType:"address",name:"grantee",type:"address"}],name:"Revoked",type:"event"},{inputs:[{internalType:"string",name:"apiKeyHash",type:"string"}],name:"deregister",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"string",name:"apiKeyHash",type:"string"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"deregisterWithSignature",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"eip712Domain",outputs:[{internalType:"bytes1",name:"fields",type:"bytes1"},{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"version",type:"string"},{internalType:"uint256",name:"chainId",type:"uint256"},{internalType:"address",name:"verifyingContract",type:"address"},{internalType:"bytes32",name:"salt",type:"bytes32"},{internalType:"uint256[]",name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"apiKeyHash",type:"string"}],name:"getPayer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"address",name:"grantee",type:"address"}],name:"grant",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"string",name:"namespace",type:"string"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"grantWithSignature",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_taskRegistry",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"address",name:"grantee",type:"address"}],name:"isAuthorized",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"apiKeyHash",type:"string"}],name:"register",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"string",name:"apiKeyHash",type:"string"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"registerWithSignature",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"address",name:"grantee",type:"address"}],name:"revoke",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"string",name:"namespace",type:"string"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"revokeWithSignature",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_taskRegistry",type:"address"}],name:"setTaskRegistry",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"taskRegistry",outputs:[{internalType:"contract ITaskRegistry",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_logic",type:"address"},{internalType:"address",name:"admin_",type:"address"},{internalType:"bytes",name:"_data",type:"bytes"}],stateMutability:"payable",type:"constructor"}],transactionHash:"0x54811167e70fbb49fa6b45a83af53e25a06ac8ef451bb65627563ad1f88350ed",receipt:{to:null,from:"0xE3AcBBB129F14681C315028dB0A156597fb5058B",contractAddress:"0xc84f349C46e046ca6dbd7e653700DF728FA496E4",transactionIndex:0,gasUsed:"842519",logsBloom:"0x00000000000000000000000000000000400000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000001000000000000000000000000000000000100020000000000000000000800000000800000000000000000000000400000000000000000000800010000000000400000000080000000000000800000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000484000000000000220020000000000000000000000000000800000004100000000000000000000000000000",blockHash:"0xa0214842812d005783cba0ba5f118bd3f1e9784137ed2db24f7d6dae47f06119",transactionHash:"0x54811167e70fbb49fa6b45a83af53e25a06ac8ef451bb65627563ad1f88350ed",logs:[{transactionIndex:0,blockNumber:36899443,transactionHash:"0x54811167e70fbb49fa6b45a83af53e25a06ac8ef451bb65627563ad1f88350ed",address:"0xc84f349C46e046ca6dbd7e653700DF728FA496E4",topics:["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x00000000000000000000000014fd5e9ea48fce13201e3307f49a055b3b724aad"],data:"0x",logIndex:0,blockHash:"0xa0214842812d005783cba0ba5f118bd3f1e9784137ed2db24f7d6dae47f06119"},{transactionIndex:0,blockNumber:36899443,transactionHash:"0x54811167e70fbb49fa6b45a83af53e25a06ac8ef451bb65627563ad1f88350ed",address:"0xc84f349C46e046ca6dbd7e653700DF728FA496E4",topics:["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x000000000000000000000000e3acbbb129f14681c315028db0a156597fb5058b"],data:"0x",logIndex:1,blockHash:"0xa0214842812d005783cba0ba5f118bd3f1e9784137ed2db24f7d6dae47f06119"},{transactionIndex:0,blockNumber:36899443,transactionHash:"0x54811167e70fbb49fa6b45a83af53e25a06ac8ef451bb65627563ad1f88350ed",address:"0xc84f349C46e046ca6dbd7e653700DF728FA496E4",topics:["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"],data:"0x0000000000000000000000000000000000000000000000000000000000000001",logIndex:2,blockHash:"0xa0214842812d005783cba0ba5f118bd3f1e9784137ed2db24f7d6dae47f06119"},{transactionIndex:0,blockNumber:36899443,transactionHash:"0x54811167e70fbb49fa6b45a83af53e25a06ac8ef451bb65627563ad1f88350ed",address:"0xc84f349C46e046ca6dbd7e653700DF728FA496E4",topics:["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],data:"0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f9739ed4c06aad02f1e2b7632ba35d1760796382",logIndex:3,blockHash:"0xa0214842812d005783cba0ba5f118bd3f1e9784137ed2db24f7d6dae47f06119"}],blockNumber:36899443,cumulativeGasUsed:"842519",status:1,byzantium:!0},args:["0x14fD5e9eA48Fce13201E3307F49a055b3b724AAd","0xF9739Ed4c06aad02F1E2b7632Ba35D1760796382","0xc4d66de8000000000000000000000000712c0e7122cba5b0087ded2d7f1beae9d24e5f5a"],numDeployments:1,solcInputHash:"0e89febeebc7444140de8e67c9067d2c",metadata:'{"compiler":{"version":"0.8.10+commit.fc410830"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"admin_","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"admin_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"changeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"implementation_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}],"devdoc":{"details":"This contract implements a proxy that is upgradeable by an admin. To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector clashing], which can potentially be used in an attack, this contract uses the https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two things that go hand in hand: 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if that call matches one of the admin functions exposed by the proxy itself. 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the implementation. If the admin tries to call a function on the implementation it will fail with an error that says \\"admin cannot fallback to proxy target\\". These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing the admin, so it\'s best if it\'s a dedicated account that is not used for anything else. This will avoid headaches due to sudden errors when trying to call a function from the proxy implementation. Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way, you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.","kind":"dev","methods":{"admin()":{"details":"Returns the current admin. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`"},"changeAdmin(address)":{"details":"Changes the admin of the proxy. Emits an {AdminChanged} event. NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}."},"constructor":{"details":"Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}."},"implementation()":{"details":"Returns the current implementation. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`"},"upgradeTo(address)":{"details":"Upgrade the implementation of the proxy. NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}."},"upgradeToAndCall(address,bytes)":{"details":"Upgrade the implementation of the proxy, and then call a function from the new implementation as specified by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the proxied contract. NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}."}},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"compilationTarget":{"solc_0.8/openzeppelin/proxy/transparent/TransparentUpgradeableProxy.sol":"TransparentUpgradeableProxy"},"evmVersion":"london","libraries":{},"metadata":{"bytecodeHash":"ipfs","useLiteralContent":true},"optimizer":{"enabled":true,"runs":999999},"remappings":[]},"sources":{"solc_0.8/openzeppelin/interfaces/draft-IERC1822.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n","keccak256":"0x93b4e21c931252739a1ec13ea31d3d35a5c068be3163ccab83e4d70c40355f03","license":"MIT"},"solc_0.8/openzeppelin/proxy/ERC1967/ERC1967Proxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/ERC1967/ERC1967Proxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\"../Proxy.sol\\";\\nimport \\"./ERC1967Upgrade.sol\\";\\n\\n/**\\n * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an\\n * implementation address that can be changed. This address is stored in storage in the location specified by\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn\'t conflict with the storage layout of the\\n * implementation behind the proxy.\\n */\\ncontract ERC1967Proxy is Proxy, ERC1967Upgrade {\\n /**\\n * @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.\\n *\\n * If `_data` is nonempty, it\'s used as data in a delegate call to `_logic`. This will typically be an encoded\\n * function call, and allows initializating the storage of the proxy like a Solidity constructor.\\n */\\n constructor(address _logic, bytes memory _data) payable {\\n assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256(\\"eip1967.proxy.implementation\\")) - 1));\\n _upgradeToAndCall(_logic, _data, false);\\n }\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _implementation() internal view virtual override returns (address impl) {\\n return ERC1967Upgrade._getImplementation();\\n }\\n}\\n","keccak256":"0x6309f9f39dc6f4f45a24f296543867aa358e32946cd6b2874627a996d606b3a0","license":"MIT"},"solc_0.8/openzeppelin/proxy/ERC1967/ERC1967Upgrade.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (proxy/ERC1967/ERC1967Upgrade.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\"../beacon/IBeacon.sol\\";\\nimport \\"../../interfaces/draft-IERC1822.sol\\";\\nimport \\"../../utils/Address.sol\\";\\nimport \\"../../utils/StorageSlot.sol\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n *\\n * _Available since v4.1._\\n *\\n * @custom:oz-upgrades-unsafe-allow delegatecall\\n */\\nabstract contract ERC1967Upgrade {\\n // This is the keccak-256 hash of \\"eip1967.proxy.rollback\\" subtracted by 1\\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\"eip1967.proxy.implementation\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(Address.isContract(newImplementation), \\"ERC1967: new implementation is not a contract\\");\\n StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Perform implementation upgrade\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeTo(address newImplementation) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCall(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _upgradeTo(newImplementation);\\n if (data.length > 0 || forceCall) {\\n Address.functionDelegateCall(newImplementation, data);\\n }\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n // Upgrades from old implementations will perform a rollback test. This test requires the new\\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\\n // this special case will break upgrade paths from old UUPS implementation to new ones.\\n if (StorageSlot.getBooleanSlot(_ROLLBACK_SLOT).value) {\\n _setImplementation(newImplementation);\\n } else {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n require(slot == _IMPLEMENTATION_SLOT, \\"ERC1967Upgrade: unsupported proxiableUUID\\");\\n } catch {\\n revert(\\"ERC1967Upgrade: new implementation is not UUPS\\");\\n }\\n _upgradeToAndCall(newImplementation, data, forceCall);\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\"eip1967.proxy.admin\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _getAdmin() internal view virtual returns (address) {\\n return StorageSlot.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n require(newAdmin != address(0), \\"ERC1967: new admin is the zero address\\");\\n StorageSlot.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n */\\n function _changeAdmin(address newAdmin) internal {\\n emit AdminChanged(_getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is bytes32(uint256(keccak256(\'eip1967.proxy.beacon\')) - 1)) and is validated in the constructor.\\n */\\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Emitted when the beacon is upgraded.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function _getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(_BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n require(Address.isContract(newBeacon), \\"ERC1967: new beacon is not a contract\\");\\n require(Address.isContract(IBeacon(newBeacon).implementation()), \\"ERC1967: beacon implementation is not a contract\\");\\n StorageSlot.getAddressSlot(_BEACON_SLOT).value = newBeacon;\\n }\\n\\n /**\\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\\n *\\n * Emits a {BeaconUpgraded} event.\\n */\\n function _upgradeBeaconToAndCall(\\n address newBeacon,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n if (data.length > 0 || forceCall) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n }\\n }\\n}\\n","keccak256":"0x17668652127feebed0ce8d9431ef95ccc8c4292f03e3b8cf06c6ca16af396633","license":"MIT"},"solc_0.8/openzeppelin/proxy/Proxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (proxy/Proxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM\\n * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to\\n * be specified by overriding the virtual {_implementation} function.\\n *\\n * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a\\n * different contract through the {_delegate} function.\\n *\\n * The success and return data of the delegated call will be returned back to the caller of the proxy.\\n */\\nabstract contract Proxy {\\n /**\\n * @dev Delegates the current call to `implementation`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _delegate(address implementation) internal virtual {\\n assembly {\\n // Copy msg.data. We take full control of memory in this inline assembly\\n // block because it will not return to Solidity code. We overwrite the\\n // Solidity scratch pad at memory position 0.\\n calldatacopy(0, 0, calldatasize())\\n\\n // Call the implementation.\\n // out and outsize are 0 because we don\'t know the size yet.\\n let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\\n\\n // Copy the returned data.\\n returndatacopy(0, 0, returndatasize())\\n\\n switch result\\n // delegatecall returns 0 on error.\\n case 0 {\\n revert(0, returndatasize())\\n }\\n default {\\n return(0, returndatasize())\\n }\\n }\\n }\\n\\n /**\\n * @dev This is a virtual function that should be overriden so it returns the address to which the fallback function\\n * and {_fallback} should delegate.\\n */\\n function _implementation() internal view virtual returns (address);\\n\\n /**\\n * @dev Delegates the current call to the address returned by `_implementation()`.\\n *\\n * This function does not return to its internall call site, it will return directly to the external caller.\\n */\\n function _fallback() internal virtual {\\n _beforeFallback();\\n _delegate(_implementation());\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other\\n * function in the contract matches the call data.\\n */\\n fallback() external payable virtual {\\n _fallback();\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data\\n * is empty.\\n */\\n receive() external payable virtual {\\n _fallback();\\n }\\n\\n /**\\n * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`\\n * call, or as part of the Solidity `fallback` or `receive` functions.\\n *\\n * If overriden should call `super._beforeFallback()`.\\n */\\n function _beforeFallback() internal virtual {}\\n}\\n","keccak256":"0xd5d1fd16e9faff7fcb3a52e02a8d49156f42a38a03f07b5f1810c21c2149a8ab","license":"MIT"},"solc_0.8/openzeppelin/proxy/beacon/IBeacon.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {BeaconProxy} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n","keccak256":"0xd50a3421ac379ccb1be435fa646d66a65c986b4924f0849839f08692f39dde61","license":"MIT"},"solc_0.8/openzeppelin/proxy/transparent/TransparentUpgradeableProxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/transparent/TransparentUpgradeableProxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\"../ERC1967/ERC1967Proxy.sol\\";\\n\\n/**\\n * @dev This contract implements a proxy that is upgradeable by an admin.\\n *\\n * To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector\\n * clashing], which can potentially be used in an attack, this contract uses the\\n * https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two\\n * things that go hand in hand:\\n *\\n * 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if\\n * that call matches one of the admin functions exposed by the proxy itself.\\n * 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the\\n * implementation. If the admin tries to call a function on the implementation it will fail with an error that says\\n * \\"admin cannot fallback to proxy target\\".\\n *\\n * These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing\\n * the admin, so it\'s best if it\'s a dedicated account that is not used for anything else. This will avoid headaches due\\n * to sudden errors when trying to call a function from the proxy implementation.\\n *\\n * Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way,\\n * you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.\\n */\\ncontract TransparentUpgradeableProxy is ERC1967Proxy {\\n /**\\n * @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and\\n * optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}.\\n */\\n constructor(\\n address _logic,\\n address admin_,\\n bytes memory _data\\n ) payable ERC1967Proxy(_logic, _data) {\\n assert(_ADMIN_SLOT == bytes32(uint256(keccak256(\\"eip1967.proxy.admin\\")) - 1));\\n _changeAdmin(admin_);\\n }\\n\\n /**\\n * @dev Modifier used internally that will delegate the call to the implementation unless the sender is the admin.\\n */\\n modifier ifAdmin() {\\n if (msg.sender == _getAdmin()) {\\n _;\\n } else {\\n _fallback();\\n }\\n }\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the\\n * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function admin() external ifAdmin returns (address admin_) {\\n admin_ = _getAdmin();\\n }\\n\\n /**\\n * @dev Returns the current implementation.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the\\n * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`\\n */\\n function implementation() external ifAdmin returns (address implementation_) {\\n implementation_ = _implementation();\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}.\\n */\\n function changeAdmin(address newAdmin) external virtual ifAdmin {\\n _changeAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}.\\n */\\n function upgradeTo(address newImplementation) external ifAdmin {\\n _upgradeToAndCall(newImplementation, bytes(\\"\\"), false);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy, and then call a function from the new implementation as specified\\n * by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the\\n * proxied contract.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}.\\n */\\n function upgradeToAndCall(address newImplementation, bytes calldata data) external payable ifAdmin {\\n _upgradeToAndCall(newImplementation, data, true);\\n }\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _admin() internal view virtual returns (address) {\\n return _getAdmin();\\n }\\n\\n /**\\n * @dev Makes sure the admin cannot access the fallback function. See {Proxy-_beforeFallback}.\\n */\\n function _beforeFallback() internal virtual override {\\n require(msg.sender != _getAdmin(), \\"TransparentUpgradeableProxy: admin cannot fallback to proxy target\\");\\n super._beforeFallback();\\n }\\n}\\n","keccak256":"0x140055a64cf579d622e04f5a198595832bf2cb193cd0005f4f2d4d61ca906253","license":"MIT"},"solc_0.8/openzeppelin/utils/Address.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn\'t rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity\'s `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\"Address: insufficient balance\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\"\\");\\n require(success, \\"Address: unable to send value, recipient may have reverted\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCall(target, data, \\"Address: low-level call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\"Address: low-level call with value failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\"Address: insufficient balance for call\\");\\n require(isContract(target), \\"Address: call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\"Address: low-level static call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n require(isContract(target), \\"Address: static call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\"Address: low-level delegate call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(isContract(target), \\"Address: delegate call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verifies that a low level call was successful, and revert if it wasn\'t, either by bubbling the\\n * revert reason using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n }\\n}\\n","keccak256":"0x3777e696b62134e6177440dbe6e6601c0c156a443f57167194b67e75527439de","license":"MIT"},"solc_0.8/openzeppelin/utils/StorageSlot.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\"ERC1967: new implementation is not a contract\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._\\n */\\nlibrary StorageSlot {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n}\\n","keccak256":"0xfe1b7a9aa2a530a9e705b220e26cd584e2fbdc9602a3a1066032b12816b46aca","license":"MIT"}},"version":1}',bytecode:"0x6080604052604051620011b2380380620011b2833981016040819052620000269162000519565b82816200005560017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd620005f9565b6000805160206200116b833981519152146200007557620000756200061f565b6200008382826000620000e7565b50620000b3905060017fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6104620005f9565b6000805160206200114b83398151915214620000d357620000d36200061f565b620000de8262000124565b50505062000688565b620000f2836200017f565b600082511180620001005750805b156200011f576200011d8383620001c160201b620002ff1760201c565b505b505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6200014f620001f0565b604080516001600160a01b03928316815291841660208301520160405180910390a16200017c8162000229565b50565b6200018a81620002de565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060620001e983836040518060600160405280602781526020016200118b6027913962000381565b9392505050565b60006200021a6000805160206200114b83398151915260001b6200046760201b620002731760201c565b546001600160a01b0316919050565b6001600160a01b038116620002945760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b80620002bd6000805160206200114b83398151915260001b6200046760201b620002731760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b620002f4816200046a60201b6200032b1760201c565b620003585760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016200028b565b80620002bd6000805160206200116b83398151915260001b6200046760201b620002731760201c565b60606001600160a01b0384163b620003eb5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016200028b565b600080856001600160a01b03168560405162000408919062000635565b600060405180830381855af49150503d806000811462000445576040519150601f19603f3d011682016040523d82523d6000602084013e6200044a565b606091505b5090925090506200045d82828662000479565b9695505050505050565b90565b6001600160a01b03163b151590565b606083156200048a575081620001e9565b8251156200049b5782518084602001fd5b8160405162461bcd60e51b81526004016200028b919062000653565b80516001600160a01b0381168114620004cf57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101562000507578181015183820152602001620004ed565b838111156200011d5750506000910152565b6000806000606084860312156200052f57600080fd5b6200053a84620004b7565b92506200054a60208501620004b7565b60408501519092506001600160401b03808211156200056857600080fd5b818601915086601f8301126200057d57600080fd5b815181811115620005925762000592620004d4565b604051601f8201601f19908116603f01168101908382118183101715620005bd57620005bd620004d4565b81604052828152896020848701011115620005d757600080fd5b620005ea836020830160208801620004ea565b80955050505050509250925092565b6000828210156200061a57634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052600160045260246000fd5b6000825162000649818460208701620004ea565b9190910192915050565b602081526000825180602084015262000674816040850160208701620004ea565b601f01601f19169190910160400192915050565b610ab380620006986000396000f3fe60806040526004361061005e5760003560e01c80635c60da1b116100435780635c60da1b146100a85780638f283970146100e6578063f851a440146101065761006d565b80633659cfe6146100755780634f1ef286146100955761006d565b3661006d5761006b61011b565b005b61006b61011b565b34801561008157600080fd5b5061006b61009036600461091f565b610135565b61006b6100a336600461093a565b610196565b3480156100b457600080fd5b506100bd610221565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100f257600080fd5b5061006b61010136600461091f565b610276565b34801561011257600080fd5b506100bd6102ba565b610123610347565b61013361012e610435565b61043f565b565b61013d610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816040518060200160405280600081525060006104a3565b50565b61018b61011b565b61019e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610219576102148383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250600192506104a3915050565b505050565b61021461011b565b600061022b610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610435565b905090565b61027361011b565b90565b61027e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816104ce565b60006102c4610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610463565b60606103248383604051806060016040528060278152602001610a576027913961052f565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b61034f610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f7879207461726760648201527f6574000000000000000000000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b6000610266610657565b3660008037600080366000845af43d6000803e80801561045e573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b5473ffffffffffffffffffffffffffffffffffffffff16919050565b6104ac8361067f565b6000825111806104b95750805b15610214576104c883836102ff565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6104f7610463565b6040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301520160405180910390a161018b816106cc565b606073ffffffffffffffffffffffffffffffffffffffff84163b6105d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161042c565b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516105fd91906109e9565b600060405180830381855af49150503d8060008114610638576040519150601f19603f3d011682016040523d82523d6000602084013e61063d565b606091505b509150915061064d8282866107d8565b9695505050505050565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610487565b6106888161082b565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b73ffffffffffffffffffffffffffffffffffffffff811661076f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161042c565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905550565b606083156107e7575081610324565b8251156107f75782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c9190610a05565b73ffffffffffffffffffffffffffffffffffffffff81163b6108cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e747261637400000000000000000000000000000000000000606482015260840161042c565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610792565b803573ffffffffffffffffffffffffffffffffffffffff8116811461091a57600080fd5b919050565b60006020828403121561093157600080fd5b610324826108f6565b60008060006040848603121561094f57600080fd5b610958846108f6565b9250602084013567ffffffffffffffff8082111561097557600080fd5b818601915086601f83011261098957600080fd5b81358181111561099857600080fd5b8760208285010111156109aa57600080fd5b6020830194508093505050509250925092565b60005b838110156109d85781810151838201526020016109c0565b838111156104c85750506000910152565b600082516109fb8184602087016109bd565b9190910192915050565b6020815260008251806020840152610a248160408501602087016109bd565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b29caa54336b3ee836679675e9732ec5e526fb3f803cca2fe336cc3555aba62264736f6c634300080a0033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564",deployedBytecode:"0x60806040526004361061005e5760003560e01c80635c60da1b116100435780635c60da1b146100a85780638f283970146100e6578063f851a440146101065761006d565b80633659cfe6146100755780634f1ef286146100955761006d565b3661006d5761006b61011b565b005b61006b61011b565b34801561008157600080fd5b5061006b61009036600461091f565b610135565b61006b6100a336600461093a565b610196565b3480156100b457600080fd5b506100bd610221565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100f257600080fd5b5061006b61010136600461091f565b610276565b34801561011257600080fd5b506100bd6102ba565b610123610347565b61013361012e610435565b61043f565b565b61013d610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816040518060200160405280600081525060006104a3565b50565b61018b61011b565b61019e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610219576102148383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250600192506104a3915050565b505050565b61021461011b565b600061022b610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610435565b905090565b61027361011b565b90565b61027e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816104ce565b60006102c4610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610463565b60606103248383604051806060016040528060278152602001610a576027913961052f565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b61034f610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f7879207461726760648201527f6574000000000000000000000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b6000610266610657565b3660008037600080366000845af43d6000803e80801561045e573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b5473ffffffffffffffffffffffffffffffffffffffff16919050565b6104ac8361067f565b6000825111806104b95750805b15610214576104c883836102ff565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6104f7610463565b6040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301520160405180910390a161018b816106cc565b606073ffffffffffffffffffffffffffffffffffffffff84163b6105d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161042c565b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516105fd91906109e9565b600060405180830381855af49150503d8060008114610638576040519150601f19603f3d011682016040523d82523d6000602084013e61063d565b606091505b509150915061064d8282866107d8565b9695505050505050565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610487565b6106888161082b565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b73ffffffffffffffffffffffffffffffffffffffff811661076f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161042c565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905550565b606083156107e7575081610324565b8251156107f75782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c9190610a05565b73ffffffffffffffffffffffffffffffffffffffff81163b6108cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e747261637400000000000000000000000000000000000000606482015260840161042c565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610792565b803573ffffffffffffffffffffffffffffffffffffffff8116811461091a57600080fd5b919050565b60006020828403121561093157600080fd5b610324826108f6565b60008060006040848603121561094f57600080fd5b610958846108f6565b9250602084013567ffffffffffffffff8082111561097557600080fd5b818601915086601f83011261098957600080fd5b81358181111561099857600080fd5b8760208285010111156109aa57600080fd5b6020830194508093505050509250925092565b60005b838110156109d85781810151838201526020016109c0565b838111156104c85750506000910152565b600082516109fb8184602087016109bd565b9190910192915050565b6020815260008251806020840152610a248160408501602087016109bd565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b29caa54336b3ee836679675e9732ec5e526fb3f803cca2fe336cc3555aba62264736f6c634300080a0033",execute:{methodName:"initialize",args:["0x712c0E7122CBa5b0087DED2D7F1beAE9d24e5f5A"]},implementation:"0x14fD5e9eA48Fce13201E3307F49a055b3b724AAd",devdoc:{details:"This contract implements a proxy that is upgradeable by an admin. To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector clashing], which can potentially be used in an attack, this contract uses the https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two things that go hand in hand: 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if that call matches one of the admin functions exposed by the proxy itself. 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the implementation. If the admin tries to call a function on the implementation it will fail with an error that says \"admin cannot fallback to proxy target\". These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing the admin, so it's best if it's a dedicated account that is not used for anything else. This will avoid headaches due to sudden errors when trying to call a function from the proxy implementation. Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way, you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.",kind:"dev",methods:{"admin()":{details:"Returns the current admin. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`"},"changeAdmin(address)":{details:"Changes the admin of the proxy. Emits an {AdminChanged} event. NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}."},constructor:{details:"Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}."},"implementation()":{details:"Returns the current implementation. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`"},"upgradeTo(address)":{details:"Upgrade the implementation of the proxy. NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}."},"upgradeToAndCall(address,bytes)":{details:"Upgrade the implementation of the proxy, and then call a function from the new implementation as specified by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the proxied contract. NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}."}},version:1},userdoc:{kind:"user",methods:{},version:1},storageLayout:{storage:[],types:null}};var Hx={address:"0x712c0E7122CBa5b0087DED2D7F1beAE9d24e5f5A",abi:[{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"previousAdmin",type:"address"},{indexed:!1,internalType:"address",name:"newAdmin",type:"address"}],name:"AdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"beacon",type:"address"}],name:"BeaconUpgraded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"implementation",type:"address"}],name:"Upgraded",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"admin",outputs:[{internalType:"address",name:"admin_",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newAdmin",type:"address"}],name:"changeAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"implementation",outputs:[{internalType:"address",name:"implementation_",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"}],name:"upgradeTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"},{inputs:[],name:"ECDSAInvalidSignature",type:"error"},{inputs:[{internalType:"uint256",name:"length",type:"uint256"}],name:"ECDSAInvalidSignatureLength",type:"error"},{inputs:[{internalType:"bytes32",name:"s",type:"bytes32"}],name:"ECDSAInvalidSignatureS",type:"error"},{inputs:[],name:"InvalidInitialization",type:"error"},{inputs:[],name:"NotInitializing",type:"error"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"OwnableInvalidOwner",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"OwnableUnauthorizedAccount",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!1,internalType:"address",name:"grantee",type:"address"}],name:"AccessGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!1,internalType:"address",name:"grantee",type:"address"}],name:"AccessRevoked",type:"event"},{anonymous:!1,inputs:[],name:"EIP712DomainChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint64",name:"version",type:"uint64"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!1,internalType:"string",name:"namespace",type:"string"},{indexed:!1,internalType:"uint256",name:"nonce",type:"uint256"}],name:"MetaNamespaceRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!1,internalType:"string",name:"namespace",type:"string"},{indexed:!1,internalType:"string",name:"taskName",type:"string"},{indexed:!1,internalType:"uint256",name:"nonce",type:"uint256"}],name:"MetaTaskRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!1,internalType:"address",name:"oldOwner",type:"address"},{indexed:!1,internalType:"address",name:"newOwner",type:"address"}],name:"NamespaceOwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"NamespaceRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!0,internalType:"string",name:"taskName",type:"string"},{indexed:!1,internalType:"uint256",name:"version",type:"uint256"}],name:"TaskDisabled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!0,internalType:"string",name:"taskName",type:"string"},{indexed:!1,internalType:"uint256",name:"version",type:"uint256"}],name:"TaskEnabled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"cid",type:"string"},{indexed:!1,internalType:"address",name:"sender",type:"address"}],name:"TaskIdRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!0,internalType:"string",name:"taskName",type:"string"},{indexed:!1,internalType:"uint256",name:"version",type:"uint256"}],name:"TaskRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!0,internalType:"string",name:"taskName",type:"string"},{indexed:!1,internalType:"uint256",name:"version",type:"uint256"},{indexed:!1,internalType:"string",name:"label",type:"string"}],name:"VersionLabelSet",type:"event"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"},{internalType:"uint256",name:"version",type:"uint256"}],name:"disableTask",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"},{internalType:"string",name:"label",type:"string"}],name:"disableTaskByLabel",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"eip712Domain",outputs:[{internalType:"bytes1",name:"fields",type:"bytes1"},{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"version",type:"string"},{internalType:"uint256",name:"chainId",type:"uint256"},{internalType:"address",name:"verifyingContract",type:"address"},{internalType:"bytes32",name:"salt",type:"bytes32"},{internalType:"uint256[]",name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"},{internalType:"uint256",name:"version",type:"uint256"}],name:"enableTask",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"}],name:"getLatestActiveVersion",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"}],name:"getLatestVersion",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"}],name:"getTask",outputs:[{components:[{internalType:"string",name:"taskId",type:"string"},{internalType:"string",name:"meta",type:"string"},{internalType:"bool",name:"active",type:"bool"}],internalType:"struct TaskRegistry.Task",name:"",type:"tuple"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"},{internalType:"string",name:"label",type:"string"}],name:"getTaskByLabel",outputs:[{components:[{internalType:"string",name:"taskId",type:"string"},{internalType:"string",name:"meta",type:"string"},{internalType:"bool",name:"active",type:"bool"}],internalType:"struct TaskRegistry.Task",name:"",type:"tuple"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"},{internalType:"uint256",name:"version",type:"uint256"}],name:"getTaskByVersion",outputs:[{components:[{internalType:"string",name:"taskId",type:"string"},{internalType:"string",name:"meta",type:"string"},{internalType:"bool",name:"active",type:"bool"}],internalType:"struct TaskRegistry.Task",name:"",type:"tuple"},{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"address",name:"grantee",type:"address"}],name:"grantNamespaceAccess",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"input",type:"string"}],name:"isAsciiString",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"string",name:"taskId",type:"string"}],name:"isTaskRevoked",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"str",type:"string"}],name:"isValidName",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"string",name:"",type:"string"},{internalType:"string",name:"",type:"string"},{internalType:"string",name:"",type:"string"}],name:"labeledVersions",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"",type:"string"},{internalType:"string",name:"",type:"string"}],name:"latestVersion",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"",type:"string"},{internalType:"address",name:"",type:"address"}],name:"namespaceGrantees",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"",type:"string"}],name:"namespaceOwners",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"},{components:[{internalType:"string",name:"taskId",type:"string"},{internalType:"string",name:"meta",type:"string"},{internalType:"bool",name:"active",type:"bool"}],internalType:"struct TaskRegistry.Task",name:"task",type:"tuple"}],name:"registerTask",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"}],name:"registerTaskNamespace",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"string",name:"namespace",type:"string"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"registerTaskNamespaceWithSignature",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"},{components:[{internalType:"string",name:"taskId",type:"string"},{internalType:"string",name:"meta",type:"string"},{internalType:"bool",name:"active",type:"bool"}],internalType:"struct TaskRegistry.Task",name:"task",type:"tuple"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"registerTaskWithSignature",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"address",name:"grantee",type:"address"}],name:"revokeNamespaceAccess",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"taskId",type:"string"}],name:"revokeTask",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"",type:"string"}],name:"revokedTaskId",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"},{internalType:"uint256",name:"version",type:"uint256"},{internalType:"string",name:"label",type:"string"}],name:"setTaskLabel",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"",type:"string"},{internalType:"string",name:"",type:"string"},{internalType:"uint256",name:"",type:"uint256"}],name:"tasks",outputs:[{internalType:"string",name:"taskId",type:"string"},{internalType:"string",name:"meta",type:"string"},{internalType:"bool",name:"active",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"address",name:"newOwner",type:"address"}],name:"transferTaskNamespace",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_logic",type:"address"},{internalType:"address",name:"admin_",type:"address"},{internalType:"bytes",name:"_data",type:"bytes"}],stateMutability:"payable",type:"constructor"}],transactionHash:"0x6e9290641ded5974b540cb9c3c990968b1e56d5646abeb2dff22ac894009ad9a",receipt:{to:null,from:"0xE3AcBBB129F14681C315028dB0A156597fb5058B",contractAddress:"0x712c0E7122CBa5b0087DED2D7F1beAE9d24e5f5A",transactionIndex:0,gasUsed:"819988",logsBloom:"0x00000000000000000000000000000000400000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000001000000000000000000200000000000000000020000000000200000000802000000800000000000000000000000400000000000000000000800000000000000400000000080000000000020800000000000000000100000000000000000000000000000000000000000000000000000000020000000001000000000000000000000000484000000000000200020000000000000000000000000000000000000000000000000000000000000000000",blockHash:"0x3864944fb190208ce6312af69e1a9876f6800e2c0430e213855e1a37284ec406",transactionHash:"0x6e9290641ded5974b540cb9c3c990968b1e56d5646abeb2dff22ac894009ad9a",logs:[{transactionIndex:0,blockNumber:36899440,transactionHash:"0x6e9290641ded5974b540cb9c3c990968b1e56d5646abeb2dff22ac894009ad9a",address:"0x712c0E7122CBa5b0087DED2D7F1beAE9d24e5f5A",topics:["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000171ee701e8689f7176b72af54c0e9ad65133d798"],data:"0x",logIndex:0,blockHash:"0x3864944fb190208ce6312af69e1a9876f6800e2c0430e213855e1a37284ec406"},{transactionIndex:0,blockNumber:36899440,transactionHash:"0x6e9290641ded5974b540cb9c3c990968b1e56d5646abeb2dff22ac894009ad9a",address:"0x712c0E7122CBa5b0087DED2D7F1beAE9d24e5f5A",topics:["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x000000000000000000000000e3acbbb129f14681c315028db0a156597fb5058b"],data:"0x",logIndex:1,blockHash:"0x3864944fb190208ce6312af69e1a9876f6800e2c0430e213855e1a37284ec406"},{transactionIndex:0,blockNumber:36899440,transactionHash:"0x6e9290641ded5974b540cb9c3c990968b1e56d5646abeb2dff22ac894009ad9a",address:"0x712c0E7122CBa5b0087DED2D7F1beAE9d24e5f5A",topics:["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"],data:"0x0000000000000000000000000000000000000000000000000000000000000001",logIndex:2,blockHash:"0x3864944fb190208ce6312af69e1a9876f6800e2c0430e213855e1a37284ec406"},{transactionIndex:0,blockNumber:36899440,transactionHash:"0x6e9290641ded5974b540cb9c3c990968b1e56d5646abeb2dff22ac894009ad9a",address:"0x712c0E7122CBa5b0087DED2D7F1beAE9d24e5f5A",topics:["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],data:"0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f9739ed4c06aad02f1e2b7632ba35d1760796382",logIndex:3,blockHash:"0x3864944fb190208ce6312af69e1a9876f6800e2c0430e213855e1a37284ec406"}],blockNumber:36899440,cumulativeGasUsed:"819988",status:1,byzantium:!0},args:["0x171eE701e8689F7176b72aF54C0E9ad65133D798","0xF9739Ed4c06aad02F1E2b7632Ba35D1760796382","0x8129fc1c"],numDeployments:1,solcInputHash:"0e89febeebc7444140de8e67c9067d2c",metadata:'{"compiler":{"version":"0.8.10+commit.fc410830"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"admin_","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"admin_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"changeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"implementation_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}],"devdoc":{"details":"This contract implements a proxy that is upgradeable by an admin. To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector clashing], which can potentially be used in an attack, this contract uses the https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two things that go hand in hand: 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if that call matches one of the admin functions exposed by the proxy itself. 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the implementation. If the admin tries to call a function on the implementation it will fail with an error that says \\"admin cannot fallback to proxy target\\". These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing the admin, so it\'s best if it\'s a dedicated account that is not used for anything else. This will avoid headaches due to sudden errors when trying to call a function from the proxy implementation. Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way, you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.","kind":"dev","methods":{"admin()":{"details":"Returns the current admin. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`"},"changeAdmin(address)":{"details":"Changes the admin of the proxy. Emits an {AdminChanged} event. NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}."},"constructor":{"details":"Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}."},"implementation()":{"details":"Returns the current implementation. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`"},"upgradeTo(address)":{"details":"Upgrade the implementation of the proxy. NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}."},"upgradeToAndCall(address,bytes)":{"details":"Upgrade the implementation of the proxy, and then call a function from the new implementation as specified by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the proxied contract. NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}."}},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"compilationTarget":{"solc_0.8/openzeppelin/proxy/transparent/TransparentUpgradeableProxy.sol":"TransparentUpgradeableProxy"},"evmVersion":"london","libraries":{},"metadata":{"bytecodeHash":"ipfs","useLiteralContent":true},"optimizer":{"enabled":true,"runs":999999},"remappings":[]},"sources":{"solc_0.8/openzeppelin/interfaces/draft-IERC1822.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n","keccak256":"0x93b4e21c931252739a1ec13ea31d3d35a5c068be3163ccab83e4d70c40355f03","license":"MIT"},"solc_0.8/openzeppelin/proxy/ERC1967/ERC1967Proxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/ERC1967/ERC1967Proxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\"../Proxy.sol\\";\\nimport \\"./ERC1967Upgrade.sol\\";\\n\\n/**\\n * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an\\n * implementation address that can be changed. This address is stored in storage in the location specified by\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn\'t conflict with the storage layout of the\\n * implementation behind the proxy.\\n */\\ncontract ERC1967Proxy is Proxy, ERC1967Upgrade {\\n /**\\n * @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.\\n *\\n * If `_data` is nonempty, it\'s used as data in a delegate call to `_logic`. This will typically be an encoded\\n * function call, and allows initializating the storage of the proxy like a Solidity constructor.\\n */\\n constructor(address _logic, bytes memory _data) payable {\\n assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256(\\"eip1967.proxy.implementation\\")) - 1));\\n _upgradeToAndCall(_logic, _data, false);\\n }\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _implementation() internal view virtual override returns (address impl) {\\n return ERC1967Upgrade._getImplementation();\\n }\\n}\\n","keccak256":"0x6309f9f39dc6f4f45a24f296543867aa358e32946cd6b2874627a996d606b3a0","license":"MIT"},"solc_0.8/openzeppelin/proxy/ERC1967/ERC1967Upgrade.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (proxy/ERC1967/ERC1967Upgrade.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\"../beacon/IBeacon.sol\\";\\nimport \\"../../interfaces/draft-IERC1822.sol\\";\\nimport \\"../../utils/Address.sol\\";\\nimport \\"../../utils/StorageSlot.sol\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n *\\n * _Available since v4.1._\\n *\\n * @custom:oz-upgrades-unsafe-allow delegatecall\\n */\\nabstract contract ERC1967Upgrade {\\n // This is the keccak-256 hash of \\"eip1967.proxy.rollback\\" subtracted by 1\\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\"eip1967.proxy.implementation\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(Address.isContract(newImplementation), \\"ERC1967: new implementation is not a contract\\");\\n StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Perform implementation upgrade\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeTo(address newImplementation) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCall(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _upgradeTo(newImplementation);\\n if (data.length > 0 || forceCall) {\\n Address.functionDelegateCall(newImplementation, data);\\n }\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n // Upgrades from old implementations will perform a rollback test. This test requires the new\\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\\n // this special case will break upgrade paths from old UUPS implementation to new ones.\\n if (StorageSlot.getBooleanSlot(_ROLLBACK_SLOT).value) {\\n _setImplementation(newImplementation);\\n } else {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n require(slot == _IMPLEMENTATION_SLOT, \\"ERC1967Upgrade: unsupported proxiableUUID\\");\\n } catch {\\n revert(\\"ERC1967Upgrade: new implementation is not UUPS\\");\\n }\\n _upgradeToAndCall(newImplementation, data, forceCall);\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\"eip1967.proxy.admin\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _getAdmin() internal view virtual returns (address) {\\n return StorageSlot.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n require(newAdmin != address(0), \\"ERC1967: new admin is the zero address\\");\\n StorageSlot.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n */\\n function _changeAdmin(address newAdmin) internal {\\n emit AdminChanged(_getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is bytes32(uint256(keccak256(\'eip1967.proxy.beacon\')) - 1)) and is validated in the constructor.\\n */\\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Emitted when the beacon is upgraded.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function _getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(_BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n require(Address.isContract(newBeacon), \\"ERC1967: new beacon is not a contract\\");\\n require(Address.isContract(IBeacon(newBeacon).implementation()), \\"ERC1967: beacon implementation is not a contract\\");\\n StorageSlot.getAddressSlot(_BEACON_SLOT).value = newBeacon;\\n }\\n\\n /**\\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\\n *\\n * Emits a {BeaconUpgraded} event.\\n */\\n function _upgradeBeaconToAndCall(\\n address newBeacon,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n if (data.length > 0 || forceCall) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n }\\n }\\n}\\n","keccak256":"0x17668652127feebed0ce8d9431ef95ccc8c4292f03e3b8cf06c6ca16af396633","license":"MIT"},"solc_0.8/openzeppelin/proxy/Proxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (proxy/Proxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM\\n * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to\\n * be specified by overriding the virtual {_implementation} function.\\n *\\n * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a\\n * different contract through the {_delegate} function.\\n *\\n * The success and return data of the delegated call will be returned back to the caller of the proxy.\\n */\\nabstract contract Proxy {\\n /**\\n * @dev Delegates the current call to `implementation`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _delegate(address implementation) internal virtual {\\n assembly {\\n // Copy msg.data. We take full control of memory in this inline assembly\\n // block because it will not return to Solidity code. We overwrite the\\n // Solidity scratch pad at memory position 0.\\n calldatacopy(0, 0, calldatasize())\\n\\n // Call the implementation.\\n // out and outsize are 0 because we don\'t know the size yet.\\n let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\\n\\n // Copy the returned data.\\n returndatacopy(0, 0, returndatasize())\\n\\n switch result\\n // delegatecall returns 0 on error.\\n case 0 {\\n revert(0, returndatasize())\\n }\\n default {\\n return(0, returndatasize())\\n }\\n }\\n }\\n\\n /**\\n * @dev This is a virtual function that should be overriden so it returns the address to which the fallback function\\n * and {_fallback} should delegate.\\n */\\n function _implementation() internal view virtual returns (address);\\n\\n /**\\n * @dev Delegates the current call to the address returned by `_implementation()`.\\n *\\n * This function does not return to its internall call site, it will return directly to the external caller.\\n */\\n function _fallback() internal virtual {\\n _beforeFallback();\\n _delegate(_implementation());\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other\\n * function in the contract matches the call data.\\n */\\n fallback() external payable virtual {\\n _fallback();\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data\\n * is empty.\\n */\\n receive() external payable virtual {\\n _fallback();\\n }\\n\\n /**\\n * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`\\n * call, or as part of the Solidity `fallback` or `receive` functions.\\n *\\n * If overriden should call `super._beforeFallback()`.\\n */\\n function _beforeFallback() internal virtual {}\\n}\\n","keccak256":"0xd5d1fd16e9faff7fcb3a52e02a8d49156f42a38a03f07b5f1810c21c2149a8ab","license":"MIT"},"solc_0.8/openzeppelin/proxy/beacon/IBeacon.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {BeaconProxy} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n","keccak256":"0xd50a3421ac379ccb1be435fa646d66a65c986b4924f0849839f08692f39dde61","license":"MIT"},"solc_0.8/openzeppelin/proxy/transparent/TransparentUpgradeableProxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/transparent/TransparentUpgradeableProxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\"../ERC1967/ERC1967Proxy.sol\\";\\n\\n/**\\n * @dev This contract implements a proxy that is upgradeable by an admin.\\n *\\n * To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector\\n * clashing], which can potentially be used in an attack, this contract uses the\\n * https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two\\n * things that go hand in hand:\\n *\\n * 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if\\n * that call matches one of the admin functions exposed by the proxy itself.\\n * 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the\\n * implementation. If the admin tries to call a function on the implementation it will fail with an error that says\\n * \\"admin cannot fallback to proxy target\\".\\n *\\n * These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing\\n * the admin, so it\'s best if it\'s a dedicated account that is not used for anything else. This will avoid headaches due\\n * to sudden errors when trying to call a function from the proxy implementation.\\n *\\n * Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way,\\n * you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.\\n */\\ncontract TransparentUpgradeableProxy is ERC1967Proxy {\\n /**\\n * @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and\\n * optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}.\\n */\\n constructor(\\n address _logic,\\n address admin_,\\n bytes memory _data\\n ) payable ERC1967Proxy(_logic, _data) {\\n assert(_ADMIN_SLOT == bytes32(uint256(keccak256(\\"eip1967.proxy.admin\\")) - 1));\\n _changeAdmin(admin_);\\n }\\n\\n /**\\n * @dev Modifier used internally that will delegate the call to the implementation unless the sender is the admin.\\n */\\n modifier ifAdmin() {\\n if (msg.sender == _getAdmin()) {\\n _;\\n } else {\\n _fallback();\\n }\\n }\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the\\n * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function admin() external ifAdmin returns (address admin_) {\\n admin_ = _getAdmin();\\n }\\n\\n /**\\n * @dev Returns the current implementation.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the\\n * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`\\n */\\n function implementation() external ifAdmin returns (address implementation_) {\\n implementation_ = _implementation();\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}.\\n */\\n function changeAdmin(address newAdmin) external virtual ifAdmin {\\n _changeAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}.\\n */\\n function upgradeTo(address newImplementation) external ifAdmin {\\n _upgradeToAndCall(newImplementation, bytes(\\"\\"), false);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy, and then call a function from the new implementation as specified\\n * by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the\\n * proxied contract.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}.\\n */\\n function upgradeToAndCall(address newImplementation, bytes calldata data) external payable ifAdmin {\\n _upgradeToAndCall(newImplementation, data, true);\\n }\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _admin() internal view virtual returns (address) {\\n return _getAdmin();\\n }\\n\\n /**\\n * @dev Makes sure the admin cannot access the fallback function. See {Proxy-_beforeFallback}.\\n */\\n function _beforeFallback() internal virtual override {\\n require(msg.sender != _getAdmin(), \\"TransparentUpgradeableProxy: admin cannot fallback to proxy target\\");\\n super._beforeFallback();\\n }\\n}\\n","keccak256":"0x140055a64cf579d622e04f5a198595832bf2cb193cd0005f4f2d4d61ca906253","license":"MIT"},"solc_0.8/openzeppelin/utils/Address.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn\'t rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity\'s `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\"Address: insufficient balance\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\"\\");\\n require(success, \\"Address: unable to send value, recipient may have reverted\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCall(target, data, \\"Address: low-level call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\"Address: low-level call with value failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\"Address: insufficient balance for call\\");\\n require(isContract(target), \\"Address: call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\"Address: low-level static call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n require(isContract(target), \\"Address: static call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\"Address: low-level delegate call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(isContract(target), \\"Address: delegate call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verifies that a low level call was successful, and revert if it wasn\'t, either by bubbling the\\n * revert reason using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n }\\n}\\n","keccak256":"0x3777e696b62134e6177440dbe6e6601c0c156a443f57167194b67e75527439de","license":"MIT"},"solc_0.8/openzeppelin/utils/StorageSlot.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\"ERC1967: new implementation is not a contract\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._\\n */\\nlibrary StorageSlot {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n}\\n","keccak256":"0xfe1b7a9aa2a530a9e705b220e26cd584e2fbdc9602a3a1066032b12816b46aca","license":"MIT"}},"version":1}',bytecode:"0x6080604052604051620011b2380380620011b2833981016040819052620000269162000519565b82816200005560017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd620005f9565b6000805160206200116b833981519152146200007557620000756200061f565b6200008382826000620000e7565b50620000b3905060017fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6104620005f9565b6000805160206200114b83398151915214620000d357620000d36200061f565b620000de8262000124565b50505062000688565b620000f2836200017f565b600082511180620001005750805b156200011f576200011d8383620001c160201b620002ff1760201c565b505b505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6200014f620001f0565b604080516001600160a01b03928316815291841660208301520160405180910390a16200017c8162000229565b50565b6200018a81620002de565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060620001e983836040518060600160405280602781526020016200118b6027913962000381565b9392505050565b60006200021a6000805160206200114b83398151915260001b6200046760201b620002731760201c565b546001600160a01b0316919050565b6001600160a01b038116620002945760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b80620002bd6000805160206200114b83398151915260001b6200046760201b620002731760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b620002f4816200046a60201b6200032b1760201c565b620003585760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016200028b565b80620002bd6000805160206200116b83398151915260001b6200046760201b620002731760201c565b60606001600160a01b0384163b620003eb5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016200028b565b600080856001600160a01b03168560405162000408919062000635565b600060405180830381855af49150503d806000811462000445576040519150601f19603f3d011682016040523d82523d6000602084013e6200044a565b606091505b5090925090506200045d82828662000479565b9695505050505050565b90565b6001600160a01b03163b151590565b606083156200048a575081620001e9565b8251156200049b5782518084602001fd5b8160405162461bcd60e51b81526004016200028b919062000653565b80516001600160a01b0381168114620004cf57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101562000507578181015183820152602001620004ed565b838111156200011d5750506000910152565b6000806000606084860312156200052f57600080fd5b6200053a84620004b7565b92506200054a60208501620004b7565b60408501519092506001600160401b03808211156200056857600080fd5b818601915086601f8301126200057d57600080fd5b815181811115620005925762000592620004d4565b604051601f8201601f19908116603f01168101908382118183101715620005bd57620005bd620004d4565b81604052828152896020848701011115620005d757600080fd5b620005ea836020830160208801620004ea565b80955050505050509250925092565b6000828210156200061a57634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052600160045260246000fd5b6000825162000649818460208701620004ea565b9190910192915050565b602081526000825180602084015262000674816040850160208701620004ea565b601f01601f19169190910160400192915050565b610ab380620006986000396000f3fe60806040526004361061005e5760003560e01c80635c60da1b116100435780635c60da1b146100a85780638f283970146100e6578063f851a440146101065761006d565b80633659cfe6146100755780634f1ef286146100955761006d565b3661006d5761006b61011b565b005b61006b61011b565b34801561008157600080fd5b5061006b61009036600461091f565b610135565b61006b6100a336600461093a565b610196565b3480156100b457600080fd5b506100bd610221565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100f257600080fd5b5061006b61010136600461091f565b610276565b34801561011257600080fd5b506100bd6102ba565b610123610347565b61013361012e610435565b61043f565b565b61013d610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816040518060200160405280600081525060006104a3565b50565b61018b61011b565b61019e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610219576102148383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250600192506104a3915050565b505050565b61021461011b565b600061022b610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610435565b905090565b61027361011b565b90565b61027e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816104ce565b60006102c4610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610463565b60606103248383604051806060016040528060278152602001610a576027913961052f565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b61034f610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f7879207461726760648201527f6574000000000000000000000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b6000610266610657565b3660008037600080366000845af43d6000803e80801561045e573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b5473ffffffffffffffffffffffffffffffffffffffff16919050565b6104ac8361067f565b6000825111806104b95750805b15610214576104c883836102ff565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6104f7610463565b6040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301520160405180910390a161018b816106cc565b606073ffffffffffffffffffffffffffffffffffffffff84163b6105d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161042c565b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516105fd91906109e9565b600060405180830381855af49150503d8060008114610638576040519150601f19603f3d011682016040523d82523d6000602084013e61063d565b606091505b509150915061064d8282866107d8565b9695505050505050565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610487565b6106888161082b565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b73ffffffffffffffffffffffffffffffffffffffff811661076f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161042c565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905550565b606083156107e7575081610324565b8251156107f75782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c9190610a05565b73ffffffffffffffffffffffffffffffffffffffff81163b6108cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e747261637400000000000000000000000000000000000000606482015260840161042c565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610792565b803573ffffffffffffffffffffffffffffffffffffffff8116811461091a57600080fd5b919050565b60006020828403121561093157600080fd5b610324826108f6565b60008060006040848603121561094f57600080fd5b610958846108f6565b9250602084013567ffffffffffffffff8082111561097557600080fd5b818601915086601f83011261098957600080fd5b81358181111561099857600080fd5b8760208285010111156109aa57600080fd5b6020830194508093505050509250925092565b60005b838110156109d85781810151838201526020016109c0565b838111156104c85750506000910152565b600082516109fb8184602087016109bd565b9190910192915050565b6020815260008251806020840152610a248160408501602087016109bd565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b29caa54336b3ee836679675e9732ec5e526fb3f803cca2fe336cc3555aba62264736f6c634300080a0033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564",deployedBytecode:"0x60806040526004361061005e5760003560e01c80635c60da1b116100435780635c60da1b146100a85780638f283970146100e6578063f851a440146101065761006d565b80633659cfe6146100755780634f1ef286146100955761006d565b3661006d5761006b61011b565b005b61006b61011b565b34801561008157600080fd5b5061006b61009036600461091f565b610135565b61006b6100a336600461093a565b610196565b3480156100b457600080fd5b506100bd610221565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100f257600080fd5b5061006b61010136600461091f565b610276565b34801561011257600080fd5b506100bd6102ba565b610123610347565b61013361012e610435565b61043f565b565b61013d610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816040518060200160405280600081525060006104a3565b50565b61018b61011b565b61019e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610219576102148383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250600192506104a3915050565b505050565b61021461011b565b600061022b610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610435565b905090565b61027361011b565b90565b61027e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816104ce565b60006102c4610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610463565b60606103248383604051806060016040528060278152602001610a576027913961052f565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b61034f610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f7879207461726760648201527f6574000000000000000000000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b6000610266610657565b3660008037600080366000845af43d6000803e80801561045e573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b5473ffffffffffffffffffffffffffffffffffffffff16919050565b6104ac8361067f565b6000825111806104b95750805b15610214576104c883836102ff565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6104f7610463565b6040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301520160405180910390a161018b816106cc565b606073ffffffffffffffffffffffffffffffffffffffff84163b6105d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161042c565b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516105fd91906109e9565b600060405180830381855af49150503d8060008114610638576040519150601f19603f3d011682016040523d82523d6000602084013e61063d565b606091505b509150915061064d8282866107d8565b9695505050505050565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610487565b6106888161082b565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b73ffffffffffffffffffffffffffffffffffffffff811661076f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161042c565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905550565b606083156107e7575081610324565b8251156107f75782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c9190610a05565b73ffffffffffffffffffffffffffffffffffffffff81163b6108cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e747261637400000000000000000000000000000000000000606482015260840161042c565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610792565b803573ffffffffffffffffffffffffffffffffffffffff8116811461091a57600080fd5b919050565b60006020828403121561093157600080fd5b610324826108f6565b60008060006040848603121561094f57600080fd5b610958846108f6565b9250602084013567ffffffffffffffff8082111561097557600080fd5b818601915086601f83011261098957600080fd5b81358181111561099857600080fd5b8760208285010111156109aa57600080fd5b6020830194508093505050509250925092565b60005b838110156109d85781810151838201526020016109c0565b838111156104c85750506000910152565b600082516109fb8184602087016109bd565b9190910192915050565b6020815260008251806020840152610a248160408501602087016109bd565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b29caa54336b3ee836679675e9732ec5e526fb3f803cca2fe336cc3555aba62264736f6c634300080a0033",execute:{methodName:"initialize",args:[]},implementation:"0x171eE701e8689F7176b72aF54C0E9ad65133D798",devdoc:{details:"This contract implements a proxy that is upgradeable by an admin. To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector clashing], which can potentially be used in an attack, this contract uses the https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two things that go hand in hand: 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if that call matches one of the admin functions exposed by the proxy itself. 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the implementation. If the admin tries to call a function on the implementation it will fail with an error that says \"admin cannot fallback to proxy target\". These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing the admin, so it's best if it's a dedicated account that is not used for anything else. This will avoid headaches due to sudden errors when trying to call a function from the proxy implementation. Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way, you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.",kind:"dev",methods:{"admin()":{details:"Returns the current admin. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`"},"changeAdmin(address)":{details:"Changes the admin of the proxy. Emits an {AdminChanged} event. NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}."},constructor:{details:"Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}."},"implementation()":{details:"Returns the current implementation. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`"},"upgradeTo(address)":{details:"Upgrade the implementation of the proxy. NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}."},"upgradeToAndCall(address,bytes)":{details:"Upgrade the implementation of the proxy, and then call a function from the new implementation as specified by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the proxied contract. NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}."}},version:1},userdoc:{kind:"user",methods:{},version:1},storageLayout:{storage:[],types:null}};var zx={address:"0x84B5e1c533F3A4b24336a4cFFE546E09D56666Ce",abi:[{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"previousAdmin",type:"address"},{indexed:!1,internalType:"address",name:"newAdmin",type:"address"}],name:"AdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"beacon",type:"address"}],name:"BeaconUpgraded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"implementation",type:"address"}],name:"Upgraded",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"admin",outputs:[{internalType:"address",name:"admin_",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newAdmin",type:"address"}],name:"changeAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"implementation",outputs:[{internalType:"address",name:"implementation_",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"}],name:"upgradeTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"},{inputs:[],name:"InvalidInitialization",type:"error"},{inputs:[],name:"NotInitializing",type:"error"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"OwnableInvalidOwner",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"OwnableUnauthorizedAccount",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"id",type:"address"}],name:"DeRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint64",name:"version",type:"uint64"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"id",type:"address"},{indexed:!1,internalType:"uint256",name:"index",type:"uint256"}],name:"Registered",type:"event"},{inputs:[],name:"deRegister",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"id",type:"address"}],name:"deRegisterAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"deRegisterAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"getNodeAtIndex",outputs:[{components:[{internalType:"address",name:"nodeAddress",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"},{internalType:"uint256",name:"timestamp",type:"uint256"}],internalType:"struct NodeRegistry.Registration",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"getNodeCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"node",type:"address"}],name:"getNodeIndexByAddress",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getNodes",outputs:[{components:[{internalType:"address",name:"nodeAddress",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"},{internalType:"uint256",name:"timestamp",type:"uint256"}],internalType:"struct NodeRegistry.Registration[]",name:"",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"nodeIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"registerNode",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"registeredNodes",outputs:[{internalType:"address",name:"nodeAddress",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"},{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_logic",type:"address"},{internalType:"address",name:"admin_",type:"address"},{internalType:"bytes",name:"_data",type:"bytes"}],stateMutability:"payable",type:"constructor"}],transactionHash:"0xc0ef3c27fef21ea7b7bb7416233e0ab87e8003d187e5ec456702acb9ad77da30",receipt:{to:null,from:"0xE3AcBBB129F14681C315028dB0A156597fb5058B",contractAddress:"0x84B5e1c533F3A4b24336a4cFFE546E09D56666Ce",transactionIndex:0,gasUsed:"838900",logsBloom:"0x00000000000000000000000000000000400000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000001000000000000000000000000000000000000020000000000000001000800000000800000100000000000000000400000000000000000000800200000000000400000000080000000000000800000000000400020000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000484000000000000200020000000000000000000000000000000000000001000000000000000000000000000",blockHash:"0xd751190a6da75c41237bc3401fe502ce0472756712112ba97a76225c21b2e897",transactionHash:"0xc0ef3c27fef21ea7b7bb7416233e0ab87e8003d187e5ec456702acb9ad77da30",logs:[{transactionIndex:0,blockNumber:36899438,transactionHash:"0xc0ef3c27fef21ea7b7bb7416233e0ab87e8003d187e5ec456702acb9ad77da30",address:"0x84B5e1c533F3A4b24336a4cFFE546E09D56666Ce",topics:["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000ef0a373cf91d998ff06dcefe27c4273dcdbcf329"],data:"0x",logIndex:0,blockHash:"0xd751190a6da75c41237bc3401fe502ce0472756712112ba97a76225c21b2e897"},{transactionIndex:0,blockNumber:36899438,transactionHash:"0xc0ef3c27fef21ea7b7bb7416233e0ab87e8003d187e5ec456702acb9ad77da30",address:"0x84B5e1c533F3A4b24336a4cFFE546E09D56666Ce",topics:["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x000000000000000000000000e3acbbb129f14681c315028db0a156597fb5058b"],data:"0x",logIndex:1,blockHash:"0xd751190a6da75c41237bc3401fe502ce0472756712112ba97a76225c21b2e897"},{transactionIndex:0,blockNumber:36899438,transactionHash:"0xc0ef3c27fef21ea7b7bb7416233e0ab87e8003d187e5ec456702acb9ad77da30",address:"0x84B5e1c533F3A4b24336a4cFFE546E09D56666Ce",topics:["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"],data:"0x0000000000000000000000000000000000000000000000000000000000000001",logIndex:2,blockHash:"0xd751190a6da75c41237bc3401fe502ce0472756712112ba97a76225c21b2e897"},{transactionIndex:0,blockNumber:36899438,transactionHash:"0xc0ef3c27fef21ea7b7bb7416233e0ab87e8003d187e5ec456702acb9ad77da30",address:"0x84B5e1c533F3A4b24336a4cFFE546E09D56666Ce",topics:["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],data:"0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f9739ed4c06aad02f1e2b7632ba35d1760796382",logIndex:3,blockHash:"0xd751190a6da75c41237bc3401fe502ce0472756712112ba97a76225c21b2e897"}],blockNumber:36899438,cumulativeGasUsed:"838900",status:1,byzantium:!0},args:["0xEF0A373cF91d998fF06dcEFE27c4273dcDbCf329","0xF9739Ed4c06aad02F1E2b7632Ba35D1760796382","0x8129fc1c"],numDeployments:1,solcInputHash:"0e89febeebc7444140de8e67c9067d2c",metadata:'{"compiler":{"version":"0.8.10+commit.fc410830"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"admin_","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"admin_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"changeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"implementation_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}],"devdoc":{"details":"This contract implements a proxy that is upgradeable by an admin. To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector clashing], which can potentially be used in an attack, this contract uses the https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two things that go hand in hand: 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if that call matches one of the admin functions exposed by the proxy itself. 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the implementation. If the admin tries to call a function on the implementation it will fail with an error that says \\"admin cannot fallback to proxy target\\". These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing the admin, so it\'s best if it\'s a dedicated account that is not used for anything else. This will avoid headaches due to sudden errors when trying to call a function from the proxy implementation. Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way, you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.","kind":"dev","methods":{"admin()":{"details":"Returns the current admin. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`"},"changeAdmin(address)":{"details":"Changes the admin of the proxy. Emits an {AdminChanged} event. NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}."},"constructor":{"details":"Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}."},"implementation()":{"details":"Returns the current implementation. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`"},"upgradeTo(address)":{"details":"Upgrade the implementation of the proxy. NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}."},"upgradeToAndCall(address,bytes)":{"details":"Upgrade the implementation of the proxy, and then call a function from the new implementation as specified by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the proxied contract. NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}."}},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"compilationTarget":{"solc_0.8/openzeppelin/proxy/transparent/TransparentUpgradeableProxy.sol":"TransparentUpgradeableProxy"},"evmVersion":"london","libraries":{},"metadata":{"bytecodeHash":"ipfs","useLiteralContent":true},"optimizer":{"enabled":true,"runs":999999},"remappings":[]},"sources":{"solc_0.8/openzeppelin/interfaces/draft-IERC1822.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n","keccak256":"0x93b4e21c931252739a1ec13ea31d3d35a5c068be3163ccab83e4d70c40355f03","license":"MIT"},"solc_0.8/openzeppelin/proxy/ERC1967/ERC1967Proxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/ERC1967/ERC1967Proxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\"../Proxy.sol\\";\\nimport \\"./ERC1967Upgrade.sol\\";\\n\\n/**\\n * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an\\n * implementation address that can be changed. This address is stored in storage in the location specified by\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn\'t conflict with the storage layout of the\\n * implementation behind the proxy.\\n */\\ncontract ERC1967Proxy is Proxy, ERC1967Upgrade {\\n /**\\n * @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.\\n *\\n * If `_data` is nonempty, it\'s used as data in a delegate call to `_logic`. This will typically be an encoded\\n * function call, and allows initializating the storage of the proxy like a Solidity constructor.\\n */\\n constructor(address _logic, bytes memory _data) payable {\\n assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256(\\"eip1967.proxy.implementation\\")) - 1));\\n _upgradeToAndCall(_logic, _data, false);\\n }\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _implementation() internal view virtual override returns (address impl) {\\n return ERC1967Upgrade._getImplementation();\\n }\\n}\\n","keccak256":"0x6309f9f39dc6f4f45a24f296543867aa358e32946cd6b2874627a996d606b3a0","license":"MIT"},"solc_0.8/openzeppelin/proxy/ERC1967/ERC1967Upgrade.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (proxy/ERC1967/ERC1967Upgrade.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\"../beacon/IBeacon.sol\\";\\nimport \\"../../interfaces/draft-IERC1822.sol\\";\\nimport \\"../../utils/Address.sol\\";\\nimport \\"../../utils/StorageSlot.sol\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n *\\n * _Available since v4.1._\\n *\\n * @custom:oz-upgrades-unsafe-allow delegatecall\\n */\\nabstract contract ERC1967Upgrade {\\n // This is the keccak-256 hash of \\"eip1967.proxy.rollback\\" subtracted by 1\\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\"eip1967.proxy.implementation\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(Address.isContract(newImplementation), \\"ERC1967: new implementation is not a contract\\");\\n StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Perform implementation upgrade\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeTo(address newImplementation) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCall(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _upgradeTo(newImplementation);\\n if (data.length > 0 || forceCall) {\\n Address.functionDelegateCall(newImplementation, data);\\n }\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n // Upgrades from old implementations will perform a rollback test. This test requires the new\\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\\n // this special case will break upgrade paths from old UUPS implementation to new ones.\\n if (StorageSlot.getBooleanSlot(_ROLLBACK_SLOT).value) {\\n _setImplementation(newImplementation);\\n } else {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n require(slot == _IMPLEMENTATION_SLOT, \\"ERC1967Upgrade: unsupported proxiableUUID\\");\\n } catch {\\n revert(\\"ERC1967Upgrade: new implementation is not UUPS\\");\\n }\\n _upgradeToAndCall(newImplementation, data, forceCall);\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\"eip1967.proxy.admin\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _getAdmin() internal view virtual returns (address) {\\n return StorageSlot.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n require(newAdmin != address(0), \\"ERC1967: new admin is the zero address\\");\\n StorageSlot.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n */\\n function _changeAdmin(address newAdmin) internal {\\n emit AdminChanged(_getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is bytes32(uint256(keccak256(\'eip1967.proxy.beacon\')) - 1)) and is validated in the constructor.\\n */\\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Emitted when the beacon is upgraded.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function _getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(_BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n require(Address.isContract(newBeacon), \\"ERC1967: new beacon is not a contract\\");\\n require(Address.isContract(IBeacon(newBeacon).implementation()), \\"ERC1967: beacon implementation is not a contract\\");\\n StorageSlot.getAddressSlot(_BEACON_SLOT).value = newBeacon;\\n }\\n\\n /**\\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\\n *\\n * Emits a {BeaconUpgraded} event.\\n */\\n function _upgradeBeaconToAndCall(\\n address newBeacon,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n if (data.length > 0 || forceCall) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n }\\n }\\n}\\n","keccak256":"0x17668652127feebed0ce8d9431ef95ccc8c4292f03e3b8cf06c6ca16af396633","license":"MIT"},"solc_0.8/openzeppelin/proxy/Proxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (proxy/Proxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM\\n * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to\\n * be specified by overriding the virtual {_implementation} function.\\n *\\n * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a\\n * different contract through the {_delegate} function.\\n *\\n * The success and return data of the delegated call will be returned back to the caller of the proxy.\\n */\\nabstract contract Proxy {\\n /**\\n * @dev Delegates the current call to `implementation`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _delegate(address implementation) internal virtual {\\n assembly {\\n // Copy msg.data. We take full control of memory in this inline assembly\\n // block because it will not return to Solidity code. We overwrite the\\n // Solidity scratch pad at memory position 0.\\n calldatacopy(0, 0, calldatasize())\\n\\n // Call the implementation.\\n // out and outsize are 0 because we don\'t know the size yet.\\n let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\\n\\n // Copy the returned data.\\n returndatacopy(0, 0, returndatasize())\\n\\n switch result\\n // delegatecall returns 0 on error.\\n case 0 {\\n revert(0, returndatasize())\\n }\\n default {\\n return(0, returndatasize())\\n }\\n }\\n }\\n\\n /**\\n * @dev This is a virtual function that should be overriden so it returns the address to which the fallback function\\n * and {_fallback} should delegate.\\n */\\n function _implementation() internal view virtual returns (address);\\n\\n /**\\n * @dev Delegates the current call to the address returned by `_implementation()`.\\n *\\n * This function does not return to its internall call site, it will return directly to the external caller.\\n */\\n function _fallback() internal virtual {\\n _beforeFallback();\\n _delegate(_implementation());\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other\\n * function in the contract matches the call data.\\n */\\n fallback() external payable virtual {\\n _fallback();\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data\\n * is empty.\\n */\\n receive() external payable virtual {\\n _fallback();\\n }\\n\\n /**\\n * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`\\n * call, or as part of the Solidity `fallback` or `receive` functions.\\n *\\n * If overriden should call `super._beforeFallback()`.\\n */\\n function _beforeFallback() internal virtual {}\\n}\\n","keccak256":"0xd5d1fd16e9faff7fcb3a52e02a8d49156f42a38a03f07b5f1810c21c2149a8ab","license":"MIT"},"solc_0.8/openzeppelin/proxy/beacon/IBeacon.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {BeaconProxy} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n","keccak256":"0xd50a3421ac379ccb1be435fa646d66a65c986b4924f0849839f08692f39dde61","license":"MIT"},"solc_0.8/openzeppelin/proxy/transparent/TransparentUpgradeableProxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/transparent/TransparentUpgradeableProxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\"../ERC1967/ERC1967Proxy.sol\\";\\n\\n/**\\n * @dev This contract implements a proxy that is upgradeable by an admin.\\n *\\n * To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector\\n * clashing], which can potentially be used in an attack, this contract uses the\\n * https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two\\n * things that go hand in hand:\\n *\\n * 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if\\n * that call matches one of the admin functions exposed by the proxy itself.\\n * 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the\\n * implementation. If the admin tries to call a function on the implementation it will fail with an error that says\\n * \\"admin cannot fallback to proxy target\\".\\n *\\n * These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing\\n * the admin, so it\'s best if it\'s a dedicated account that is not used for anything else. This will avoid headaches due\\n * to sudden errors when trying to call a function from the proxy implementation.\\n *\\n * Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way,\\n * you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.\\n */\\ncontract TransparentUpgradeableProxy is ERC1967Proxy {\\n /**\\n * @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and\\n * optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}.\\n */\\n constructor(\\n address _logic,\\n address admin_,\\n bytes memory _data\\n ) payable ERC1967Proxy(_logic, _data) {\\n assert(_ADMIN_SLOT == bytes32(uint256(keccak256(\\"eip1967.proxy.admin\\")) - 1));\\n _changeAdmin(admin_);\\n }\\n\\n /**\\n * @dev Modifier used internally that will delegate the call to the implementation unless the sender is the admin.\\n */\\n modifier ifAdmin() {\\n if (msg.sender == _getAdmin()) {\\n _;\\n } else {\\n _fallback();\\n }\\n }\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the\\n * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function admin() external ifAdmin returns (address admin_) {\\n admin_ = _getAdmin();\\n }\\n\\n /**\\n * @dev Returns the current implementation.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the\\n * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`\\n */\\n function implementation() external ifAdmin returns (address implementation_) {\\n implementation_ = _implementation();\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}.\\n */\\n function changeAdmin(address newAdmin) external virtual ifAdmin {\\n _changeAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}.\\n */\\n function upgradeTo(address newImplementation) external ifAdmin {\\n _upgradeToAndCall(newImplementation, bytes(\\"\\"), false);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy, and then call a function from the new implementation as specified\\n * by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the\\n * proxied contract.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}.\\n */\\n function upgradeToAndCall(address newImplementation, bytes calldata data) external payable ifAdmin {\\n _upgradeToAndCall(newImplementation, data, true);\\n }\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _admin() internal view virtual returns (address) {\\n return _getAdmin();\\n }\\n\\n /**\\n * @dev Makes sure the admin cannot access the fallback function. See {Proxy-_beforeFallback}.\\n */\\n function _beforeFallback() internal virtual override {\\n require(msg.sender != _getAdmin(), \\"TransparentUpgradeableProxy: admin cannot fallback to proxy target\\");\\n super._beforeFallback();\\n }\\n}\\n","keccak256":"0x140055a64cf579d622e04f5a198595832bf2cb193cd0005f4f2d4d61ca906253","license":"MIT"},"solc_0.8/openzeppelin/utils/Address.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn\'t rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity\'s `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\"Address: insufficient balance\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\"\\");\\n require(success, \\"Address: unable to send value, recipient may have reverted\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCall(target, data, \\"Address: low-level call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\"Address: low-level call with value failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\"Address: insufficient balance for call\\");\\n require(isContract(target), \\"Address: call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\"Address: low-level static call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n require(isContract(target), \\"Address: static call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\"Address: low-level delegate call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(isContract(target), \\"Address: delegate call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verifies that a low level call was successful, and revert if it wasn\'t, either by bubbling the\\n * revert reason using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n }\\n}\\n","keccak256":"0x3777e696b62134e6177440dbe6e6601c0c156a443f57167194b67e75527439de","license":"MIT"},"solc_0.8/openzeppelin/utils/StorageSlot.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\"ERC1967: new implementation is not a contract\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._\\n */\\nlibrary StorageSlot {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n}\\n","keccak256":"0xfe1b7a9aa2a530a9e705b220e26cd584e2fbdc9602a3a1066032b12816b46aca","license":"MIT"}},"version":1}',bytecode:"0x6080604052604051620011b2380380620011b2833981016040819052620000269162000519565b82816200005560017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd620005f9565b6000805160206200116b833981519152146200007557620000756200061f565b6200008382826000620000e7565b50620000b3905060017fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6104620005f9565b6000805160206200114b83398151915214620000d357620000d36200061f565b620000de8262000124565b50505062000688565b620000f2836200017f565b600082511180620001005750805b156200011f576200011d8383620001c160201b620002ff1760201c565b505b505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6200014f620001f0565b604080516001600160a01b03928316815291841660208301520160405180910390a16200017c8162000229565b50565b6200018a81620002de565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060620001e983836040518060600160405280602781526020016200118b6027913962000381565b9392505050565b60006200021a6000805160206200114b83398151915260001b6200046760201b620002731760201c565b546001600160a01b0316919050565b6001600160a01b038116620002945760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b80620002bd6000805160206200114b83398151915260001b6200046760201b620002731760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b620002f4816200046a60201b6200032b1760201c565b620003585760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016200028b565b80620002bd6000805160206200116b83398151915260001b6200046760201b620002731760201c565b60606001600160a01b0384163b620003eb5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016200028b565b600080856001600160a01b03168560405162000408919062000635565b600060405180830381855af49150503d806000811462000445576040519150601f19603f3d011682016040523d82523d6000602084013e6200044a565b606091505b5090925090506200045d82828662000479565b9695505050505050565b90565b6001600160a01b03163b151590565b606083156200048a575081620001e9565b8251156200049b5782518084602001fd5b8160405162461bcd60e51b81526004016200028b919062000653565b80516001600160a01b0381168114620004cf57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101562000507578181015183820152602001620004ed565b838111156200011d5750506000910152565b6000806000606084860312156200052f57600080fd5b6200053a84620004b7565b92506200054a60208501620004b7565b60408501519092506001600160401b03808211156200056857600080fd5b818601915086601f8301126200057d57600080fd5b815181811115620005925762000592620004d4565b604051601f8201601f19908116603f01168101908382118183101715620005bd57620005bd620004d4565b81604052828152896020848701011115620005d757600080fd5b620005ea836020830160208801620004ea565b80955050505050509250925092565b6000828210156200061a57634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052600160045260246000fd5b6000825162000649818460208701620004ea565b9190910192915050565b602081526000825180602084015262000674816040850160208701620004ea565b601f01601f19169190910160400192915050565b610ab380620006986000396000f3fe60806040526004361061005e5760003560e01c80635c60da1b116100435780635c60da1b146100a85780638f283970146100e6578063f851a440146101065761006d565b80633659cfe6146100755780634f1ef286146100955761006d565b3661006d5761006b61011b565b005b61006b61011b565b34801561008157600080fd5b5061006b61009036600461091f565b610135565b61006b6100a336600461093a565b610196565b3480156100b457600080fd5b506100bd610221565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100f257600080fd5b5061006b61010136600461091f565b610276565b34801561011257600080fd5b506100bd6102ba565b610123610347565b61013361012e610435565b61043f565b565b61013d610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816040518060200160405280600081525060006104a3565b50565b61018b61011b565b61019e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610219576102148383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250600192506104a3915050565b505050565b61021461011b565b600061022b610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610435565b905090565b61027361011b565b90565b61027e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816104ce565b60006102c4610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610463565b60606103248383604051806060016040528060278152602001610a576027913961052f565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b61034f610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f7879207461726760648201527f6574000000000000000000000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b6000610266610657565b3660008037600080366000845af43d6000803e80801561045e573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b5473ffffffffffffffffffffffffffffffffffffffff16919050565b6104ac8361067f565b6000825111806104b95750805b15610214576104c883836102ff565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6104f7610463565b6040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301520160405180910390a161018b816106cc565b606073ffffffffffffffffffffffffffffffffffffffff84163b6105d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161042c565b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516105fd91906109e9565b600060405180830381855af49150503d8060008114610638576040519150601f19603f3d011682016040523d82523d6000602084013e61063d565b606091505b509150915061064d8282866107d8565b9695505050505050565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610487565b6106888161082b565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b73ffffffffffffffffffffffffffffffffffffffff811661076f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161042c565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905550565b606083156107e7575081610324565b8251156107f75782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c9190610a05565b73ffffffffffffffffffffffffffffffffffffffff81163b6108cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e747261637400000000000000000000000000000000000000606482015260840161042c565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610792565b803573ffffffffffffffffffffffffffffffffffffffff8116811461091a57600080fd5b919050565b60006020828403121561093157600080fd5b610324826108f6565b60008060006040848603121561094f57600080fd5b610958846108f6565b9250602084013567ffffffffffffffff8082111561097557600080fd5b818601915086601f83011261098957600080fd5b81358181111561099857600080fd5b8760208285010111156109aa57600080fd5b6020830194508093505050509250925092565b60005b838110156109d85781810151838201526020016109c0565b838111156104c85750506000910152565b600082516109fb8184602087016109bd565b9190910192915050565b6020815260008251806020840152610a248160408501602087016109bd565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b29caa54336b3ee836679675e9732ec5e526fb3f803cca2fe336cc3555aba62264736f6c634300080a0033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564",deployedBytecode:"0x60806040526004361061005e5760003560e01c80635c60da1b116100435780635c60da1b146100a85780638f283970146100e6578063f851a440146101065761006d565b80633659cfe6146100755780634f1ef286146100955761006d565b3661006d5761006b61011b565b005b61006b61011b565b34801561008157600080fd5b5061006b61009036600461091f565b610135565b61006b6100a336600461093a565b610196565b3480156100b457600080fd5b506100bd610221565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100f257600080fd5b5061006b61010136600461091f565b610276565b34801561011257600080fd5b506100bd6102ba565b610123610347565b61013361012e610435565b61043f565b565b61013d610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816040518060200160405280600081525060006104a3565b50565b61018b61011b565b61019e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610219576102148383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250600192506104a3915050565b505050565b61021461011b565b600061022b610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610435565b905090565b61027361011b565b90565b61027e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816104ce565b60006102c4610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610463565b60606103248383604051806060016040528060278152602001610a576027913961052f565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b61034f610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f7879207461726760648201527f6574000000000000000000000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b6000610266610657565b3660008037600080366000845af43d6000803e80801561045e573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b5473ffffffffffffffffffffffffffffffffffffffff16919050565b6104ac8361067f565b6000825111806104b95750805b15610214576104c883836102ff565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6104f7610463565b6040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301520160405180910390a161018b816106cc565b606073ffffffffffffffffffffffffffffffffffffffff84163b6105d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161042c565b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516105fd91906109e9565b600060405180830381855af49150503d8060008114610638576040519150601f19603f3d011682016040523d82523d6000602084013e61063d565b606091505b509150915061064d8282866107d8565b9695505050505050565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610487565b6106888161082b565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b73ffffffffffffffffffffffffffffffffffffffff811661076f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161042c565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905550565b606083156107e7575081610324565b8251156107f75782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c9190610a05565b73ffffffffffffffffffffffffffffffffffffffff81163b6108cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e747261637400000000000000000000000000000000000000606482015260840161042c565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610792565b803573ffffffffffffffffffffffffffffffffffffffff8116811461091a57600080fd5b919050565b60006020828403121561093157600080fd5b610324826108f6565b60008060006040848603121561094f57600080fd5b610958846108f6565b9250602084013567ffffffffffffffff8082111561097557600080fd5b818601915086601f83011261098957600080fd5b81358181111561099857600080fd5b8760208285010111156109aa57600080fd5b6020830194508093505050509250925092565b60005b838110156109d85781810151838201526020016109c0565b838111156104c85750506000910152565b600082516109fb8184602087016109bd565b9190910192915050565b6020815260008251806020840152610a248160408501602087016109bd565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b29caa54336b3ee836679675e9732ec5e526fb3f803cca2fe336cc3555aba62264736f6c634300080a0033",execute:{methodName:"initialize",args:[]},implementation:"0xEF0A373cF91d998fF06dcEFE27c4273dcDbCf329",devdoc:{details:"This contract implements a proxy that is upgradeable by an admin. To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector clashing], which can potentially be used in an attack, this contract uses the https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two things that go hand in hand: 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if that call matches one of the admin functions exposed by the proxy itself. 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the implementation. If the admin tries to call a function on the implementation it will fail with an error that says \"admin cannot fallback to proxy target\". These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing the admin, so it's best if it's a dedicated account that is not used for anything else. This will avoid headaches due to sudden errors when trying to call a function from the proxy implementation. Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way, you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.",kind:"dev",methods:{"admin()":{details:"Returns the current admin. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`"},"changeAdmin(address)":{details:"Changes the admin of the proxy. Emits an {AdminChanged} event. NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}."},constructor:{details:"Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}."},"implementation()":{details:"Returns the current implementation. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`"},"upgradeTo(address)":{details:"Upgrade the implementation of the proxy. NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}."},"upgradeToAndCall(address,bytes)":{details:"Upgrade the implementation of the proxy, and then call a function from the new implementation as specified by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the proxied contract. NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}."}},version:1},userdoc:{kind:"user",methods:{},version:1},storageLayout:{storage:[],types:null}};var Vx={address:"0xdA5a5a58ee6fd52B3D0a60758695F7f0f2354F7a",abi:[{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"previousAdmin",type:"address"},{indexed:!1,internalType:"address",name:"newAdmin",type:"address"}],name:"AdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"beacon",type:"address"}],name:"BeaconUpgraded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"implementation",type:"address"}],name:"Upgraded",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"admin",outputs:[{internalType:"address",name:"admin_",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newAdmin",type:"address"}],name:"changeAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"implementation",outputs:[{internalType:"address",name:"implementation_",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"}],name:"upgradeTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"},{inputs:[],name:"ECDSAInvalidSignature",type:"error"},{inputs:[{internalType:"uint256",name:"length",type:"uint256"}],name:"ECDSAInvalidSignatureLength",type:"error"},{inputs:[{internalType:"bytes32",name:"s",type:"bytes32"}],name:"ECDSAInvalidSignatureS",type:"error"},{inputs:[],name:"InvalidInitialization",type:"error"},{inputs:[],name:"NotInitializing",type:"error"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"OwnableInvalidOwner",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"OwnableUnauthorizedAccount",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"}],name:"Deregistered",type:"event"},{anonymous:!1,inputs:[],name:"EIP712DomainChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!0,internalType:"address",name:"grantee",type:"address"}],name:"Granted",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint64",name:"version",type:"uint64"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"}],name:"Registered",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!0,internalType:"address",name:"grantee",type:"address"}],name:"Revoked",type:"event"},{inputs:[{internalType:"string",name:"apiKeyHash",type:"string"}],name:"deregister",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"string",name:"apiKeyHash",type:"string"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"deregisterWithSignature",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"eip712Domain",outputs:[{internalType:"bytes1",name:"fields",type:"bytes1"},{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"version",type:"string"},{internalType:"uint256",name:"chainId",type:"uint256"},{internalType:"address",name:"verifyingContract",type:"address"},{internalType:"bytes32",name:"salt",type:"bytes32"},{internalType:"uint256[]",name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"apiKeyHash",type:"string"}],name:"getPayer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"address",name:"grantee",type:"address"}],name:"grant",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"string",name:"namespace",type:"string"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"grantWithSignature",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_taskRegistry",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"address",name:"grantee",type:"address"}],name:"isAuthorized",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"apiKeyHash",type:"string"}],name:"register",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"string",name:"apiKeyHash",type:"string"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"registerWithSignature",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"address",name:"grantee",type:"address"}],name:"revoke",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"string",name:"namespace",type:"string"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"revokeWithSignature",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_taskRegistry",type:"address"}],name:"setTaskRegistry",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"taskRegistry",outputs:[{internalType:"contract ITaskRegistry",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_logic",type:"address"},{internalType:"address",name:"admin_",type:"address"},{internalType:"bytes",name:"_data",type:"bytes"}],stateMutability:"payable",type:"constructor"}],transactionHash:"0xcba23cb5787932a0fc65d4a525f1c5c54f89d28eaed35c6574c003d29b8e0f66",receipt:{to:null,from:"0xE3AcBBB129F14681C315028dB0A156597fb5058B",contractAddress:"0xdA5a5a58ee6fd52B3D0a60758695F7f0f2354F7a",transactionIndex:1,gasUsed:"842507",logsBloom:"0x00000000000000000000000000000000400010000000000000800000200000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000008000002000001000000000000000000000000000000000000020000000000000000000800000000800000000000000000000000400000000000000000000800000000000000400000000080000000000000800000000000000000000000000000000000000000000000000000000000000000000000000020000000002000000000000000000000000484000000000000200020000000000000002000000000000000000000000000000000000000000000000000",blockHash:"0xc9bb667f9cd31206c8fa8fb088237f69660f07faf34e983d461e3f36262ee6ab",transactionHash:"0xcba23cb5787932a0fc65d4a525f1c5c54f89d28eaed35c6574c003d29b8e0f66",logs:[{transactionIndex:1,blockNumber:36870192,transactionHash:"0xcba23cb5787932a0fc65d4a525f1c5c54f89d28eaed35c6574c003d29b8e0f66",address:"0xdA5a5a58ee6fd52B3D0a60758695F7f0f2354F7a",topics:["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000a98db30a9fdb61737c234b5cd03f38a400353cc8"],data:"0x",logIndex:0,blockHash:"0xc9bb667f9cd31206c8fa8fb088237f69660f07faf34e983d461e3f36262ee6ab"},{transactionIndex:1,blockNumber:36870192,transactionHash:"0xcba23cb5787932a0fc65d4a525f1c5c54f89d28eaed35c6574c003d29b8e0f66",address:"0xdA5a5a58ee6fd52B3D0a60758695F7f0f2354F7a",topics:["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x000000000000000000000000e3acbbb129f14681c315028db0a156597fb5058b"],data:"0x",logIndex:1,blockHash:"0xc9bb667f9cd31206c8fa8fb088237f69660f07faf34e983d461e3f36262ee6ab"},{transactionIndex:1,blockNumber:36870192,transactionHash:"0xcba23cb5787932a0fc65d4a525f1c5c54f89d28eaed35c6574c003d29b8e0f66",address:"0xdA5a5a58ee6fd52B3D0a60758695F7f0f2354F7a",topics:["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"],data:"0x0000000000000000000000000000000000000000000000000000000000000001",logIndex:2,blockHash:"0xc9bb667f9cd31206c8fa8fb088237f69660f07faf34e983d461e3f36262ee6ab"},{transactionIndex:1,blockNumber:36870192,transactionHash:"0xcba23cb5787932a0fc65d4a525f1c5c54f89d28eaed35c6574c003d29b8e0f66",address:"0xdA5a5a58ee6fd52B3D0a60758695F7f0f2354F7a",topics:["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],data:"0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b20955e8799609a8277f52a3d9fa28aa703c5d27",logIndex:3,blockHash:"0xc9bb667f9cd31206c8fa8fb088237f69660f07faf34e983d461e3f36262ee6ab"}],blockNumber:36870192,cumulativeGasUsed:"879471",status:1,byzantium:!0},args:["0xa98db30A9FdB61737C234B5cD03f38A400353CC8","0xB20955e8799609A8277f52a3d9Fa28aA703c5d27","0xc4d66de800000000000000000000000026f9ad5e14518c4d4fd86eda9753c28db5a85bea"],numDeployments:1,solcInputHash:"0e89febeebc7444140de8e67c9067d2c",metadata:'{"compiler":{"version":"0.8.10+commit.fc410830"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"admin_","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"admin_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"changeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"implementation_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}],"devdoc":{"details":"This contract implements a proxy that is upgradeable by an admin. To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector clashing], which can potentially be used in an attack, this contract uses the https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two things that go hand in hand: 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if that call matches one of the admin functions exposed by the proxy itself. 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the implementation. If the admin tries to call a function on the implementation it will fail with an error that says \\"admin cannot fallback to proxy target\\". These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing the admin, so it\'s best if it\'s a dedicated account that is not used for anything else. This will avoid headaches due to sudden errors when trying to call a function from the proxy implementation. Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way, you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.","kind":"dev","methods":{"admin()":{"details":"Returns the current admin. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`"},"changeAdmin(address)":{"details":"Changes the admin of the proxy. Emits an {AdminChanged} event. NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}."},"constructor":{"details":"Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}."},"implementation()":{"details":"Returns the current implementation. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`"},"upgradeTo(address)":{"details":"Upgrade the implementation of the proxy. NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}."},"upgradeToAndCall(address,bytes)":{"details":"Upgrade the implementation of the proxy, and then call a function from the new implementation as specified by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the proxied contract. NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}."}},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"compilationTarget":{"solc_0.8/openzeppelin/proxy/transparent/TransparentUpgradeableProxy.sol":"TransparentUpgradeableProxy"},"evmVersion":"london","libraries":{},"metadata":{"bytecodeHash":"ipfs","useLiteralContent":true},"optimizer":{"enabled":true,"runs":999999},"remappings":[]},"sources":{"solc_0.8/openzeppelin/interfaces/draft-IERC1822.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n","keccak256":"0x93b4e21c931252739a1ec13ea31d3d35a5c068be3163ccab83e4d70c40355f03","license":"MIT"},"solc_0.8/openzeppelin/proxy/ERC1967/ERC1967Proxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/ERC1967/ERC1967Proxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\"../Proxy.sol\\";\\nimport \\"./ERC1967Upgrade.sol\\";\\n\\n/**\\n * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an\\n * implementation address that can be changed. This address is stored in storage in the location specified by\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn\'t conflict with the storage layout of the\\n * implementation behind the proxy.\\n */\\ncontract ERC1967Proxy is Proxy, ERC1967Upgrade {\\n /**\\n * @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.\\n *\\n * If `_data` is nonempty, it\'s used as data in a delegate call to `_logic`. This will typically be an encoded\\n * function call, and allows initializating the storage of the proxy like a Solidity constructor.\\n */\\n constructor(address _logic, bytes memory _data) payable {\\n assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256(\\"eip1967.proxy.implementation\\")) - 1));\\n _upgradeToAndCall(_logic, _data, false);\\n }\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _implementation() internal view virtual override returns (address impl) {\\n return ERC1967Upgrade._getImplementation();\\n }\\n}\\n","keccak256":"0x6309f9f39dc6f4f45a24f296543867aa358e32946cd6b2874627a996d606b3a0","license":"MIT"},"solc_0.8/openzeppelin/proxy/ERC1967/ERC1967Upgrade.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (proxy/ERC1967/ERC1967Upgrade.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\"../beacon/IBeacon.sol\\";\\nimport \\"../../interfaces/draft-IERC1822.sol\\";\\nimport \\"../../utils/Address.sol\\";\\nimport \\"../../utils/StorageSlot.sol\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n *\\n * _Available since v4.1._\\n *\\n * @custom:oz-upgrades-unsafe-allow delegatecall\\n */\\nabstract contract ERC1967Upgrade {\\n // This is the keccak-256 hash of \\"eip1967.proxy.rollback\\" subtracted by 1\\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\"eip1967.proxy.implementation\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(Address.isContract(newImplementation), \\"ERC1967: new implementation is not a contract\\");\\n StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Perform implementation upgrade\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeTo(address newImplementation) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCall(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _upgradeTo(newImplementation);\\n if (data.length > 0 || forceCall) {\\n Address.functionDelegateCall(newImplementation, data);\\n }\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n // Upgrades from old implementations will perform a rollback test. This test requires the new\\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\\n // this special case will break upgrade paths from old UUPS implementation to new ones.\\n if (StorageSlot.getBooleanSlot(_ROLLBACK_SLOT).value) {\\n _setImplementation(newImplementation);\\n } else {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n require(slot == _IMPLEMENTATION_SLOT, \\"ERC1967Upgrade: unsupported proxiableUUID\\");\\n } catch {\\n revert(\\"ERC1967Upgrade: new implementation is not UUPS\\");\\n }\\n _upgradeToAndCall(newImplementation, data, forceCall);\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\"eip1967.proxy.admin\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _getAdmin() internal view virtual returns (address) {\\n return StorageSlot.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n require(newAdmin != address(0), \\"ERC1967: new admin is the zero address\\");\\n StorageSlot.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n */\\n function _changeAdmin(address newAdmin) internal {\\n emit AdminChanged(_getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is bytes32(uint256(keccak256(\'eip1967.proxy.beacon\')) - 1)) and is validated in the constructor.\\n */\\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Emitted when the beacon is upgraded.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function _getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(_BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n require(Address.isContract(newBeacon), \\"ERC1967: new beacon is not a contract\\");\\n require(Address.isContract(IBeacon(newBeacon).implementation()), \\"ERC1967: beacon implementation is not a contract\\");\\n StorageSlot.getAddressSlot(_BEACON_SLOT).value = newBeacon;\\n }\\n\\n /**\\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\\n *\\n * Emits a {BeaconUpgraded} event.\\n */\\n function _upgradeBeaconToAndCall(\\n address newBeacon,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n if (data.length > 0 || forceCall) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n }\\n }\\n}\\n","keccak256":"0x17668652127feebed0ce8d9431ef95ccc8c4292f03e3b8cf06c6ca16af396633","license":"MIT"},"solc_0.8/openzeppelin/proxy/Proxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (proxy/Proxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM\\n * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to\\n * be specified by overriding the virtual {_implementation} function.\\n *\\n * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a\\n * different contract through the {_delegate} function.\\n *\\n * The success and return data of the delegated call will be returned back to the caller of the proxy.\\n */\\nabstract contract Proxy {\\n /**\\n * @dev Delegates the current call to `implementation`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _delegate(address implementation) internal virtual {\\n assembly {\\n // Copy msg.data. We take full control of memory in this inline assembly\\n // block because it will not return to Solidity code. We overwrite the\\n // Solidity scratch pad at memory position 0.\\n calldatacopy(0, 0, calldatasize())\\n\\n // Call the implementation.\\n // out and outsize are 0 because we don\'t know the size yet.\\n let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\\n\\n // Copy the returned data.\\n returndatacopy(0, 0, returndatasize())\\n\\n switch result\\n // delegatecall returns 0 on error.\\n case 0 {\\n revert(0, returndatasize())\\n }\\n default {\\n return(0, returndatasize())\\n }\\n }\\n }\\n\\n /**\\n * @dev This is a virtual function that should be overriden so it returns the address to which the fallback function\\n * and {_fallback} should delegate.\\n */\\n function _implementation() internal view virtual returns (address);\\n\\n /**\\n * @dev Delegates the current call to the address returned by `_implementation()`.\\n *\\n * This function does not return to its internall call site, it will return directly to the external caller.\\n */\\n function _fallback() internal virtual {\\n _beforeFallback();\\n _delegate(_implementation());\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other\\n * function in the contract matches the call data.\\n */\\n fallback() external payable virtual {\\n _fallback();\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data\\n * is empty.\\n */\\n receive() external payable virtual {\\n _fallback();\\n }\\n\\n /**\\n * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`\\n * call, or as part of the Solidity `fallback` or `receive` functions.\\n *\\n * If overriden should call `super._beforeFallback()`.\\n */\\n function _beforeFallback() internal virtual {}\\n}\\n","keccak256":"0xd5d1fd16e9faff7fcb3a52e02a8d49156f42a38a03f07b5f1810c21c2149a8ab","license":"MIT"},"solc_0.8/openzeppelin/proxy/beacon/IBeacon.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {BeaconProxy} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n","keccak256":"0xd50a3421ac379ccb1be435fa646d66a65c986b4924f0849839f08692f39dde61","license":"MIT"},"solc_0.8/openzeppelin/proxy/transparent/TransparentUpgradeableProxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/transparent/TransparentUpgradeableProxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\"../ERC1967/ERC1967Proxy.sol\\";\\n\\n/**\\n * @dev This contract implements a proxy that is upgradeable by an admin.\\n *\\n * To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector\\n * clashing], which can potentially be used in an attack, this contract uses the\\n * https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two\\n * things that go hand in hand:\\n *\\n * 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if\\n * that call matches one of the admin functions exposed by the proxy itself.\\n * 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the\\n * implementation. If the admin tries to call a function on the implementation it will fail with an error that says\\n * \\"admin cannot fallback to proxy target\\".\\n *\\n * These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing\\n * the admin, so it\'s best if it\'s a dedicated account that is not used for anything else. This will avoid headaches due\\n * to sudden errors when trying to call a function from the proxy implementation.\\n *\\n * Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way,\\n * you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.\\n */\\ncontract TransparentUpgradeableProxy is ERC1967Proxy {\\n /**\\n * @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and\\n * optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}.\\n */\\n constructor(\\n address _logic,\\n address admin_,\\n bytes memory _data\\n ) payable ERC1967Proxy(_logic, _data) {\\n assert(_ADMIN_SLOT == bytes32(uint256(keccak256(\\"eip1967.proxy.admin\\")) - 1));\\n _changeAdmin(admin_);\\n }\\n\\n /**\\n * @dev Modifier used internally that will delegate the call to the implementation unless the sender is the admin.\\n */\\n modifier ifAdmin() {\\n if (msg.sender == _getAdmin()) {\\n _;\\n } else {\\n _fallback();\\n }\\n }\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the\\n * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function admin() external ifAdmin returns (address admin_) {\\n admin_ = _getAdmin();\\n }\\n\\n /**\\n * @dev Returns the current implementation.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the\\n * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`\\n */\\n function implementation() external ifAdmin returns (address implementation_) {\\n implementation_ = _implementation();\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}.\\n */\\n function changeAdmin(address newAdmin) external virtual ifAdmin {\\n _changeAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}.\\n */\\n function upgradeTo(address newImplementation) external ifAdmin {\\n _upgradeToAndCall(newImplementation, bytes(\\"\\"), false);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy, and then call a function from the new implementation as specified\\n * by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the\\n * proxied contract.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}.\\n */\\n function upgradeToAndCall(address newImplementation, bytes calldata data) external payable ifAdmin {\\n _upgradeToAndCall(newImplementation, data, true);\\n }\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _admin() internal view virtual returns (address) {\\n return _getAdmin();\\n }\\n\\n /**\\n * @dev Makes sure the admin cannot access the fallback function. See {Proxy-_beforeFallback}.\\n */\\n function _beforeFallback() internal virtual override {\\n require(msg.sender != _getAdmin(), \\"TransparentUpgradeableProxy: admin cannot fallback to proxy target\\");\\n super._beforeFallback();\\n }\\n}\\n","keccak256":"0x140055a64cf579d622e04f5a198595832bf2cb193cd0005f4f2d4d61ca906253","license":"MIT"},"solc_0.8/openzeppelin/utils/Address.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn\'t rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity\'s `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\"Address: insufficient balance\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\"\\");\\n require(success, \\"Address: unable to send value, recipient may have reverted\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCall(target, data, \\"Address: low-level call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\"Address: low-level call with value failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\"Address: insufficient balance for call\\");\\n require(isContract(target), \\"Address: call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\"Address: low-level static call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n require(isContract(target), \\"Address: static call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\"Address: low-level delegate call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(isContract(target), \\"Address: delegate call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verifies that a low level call was successful, and revert if it wasn\'t, either by bubbling the\\n * revert reason using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n }\\n}\\n","keccak256":"0x3777e696b62134e6177440dbe6e6601c0c156a443f57167194b67e75527439de","license":"MIT"},"solc_0.8/openzeppelin/utils/StorageSlot.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\"ERC1967: new implementation is not a contract\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._\\n */\\nlibrary StorageSlot {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n}\\n","keccak256":"0xfe1b7a9aa2a530a9e705b220e26cd584e2fbdc9602a3a1066032b12816b46aca","license":"MIT"}},"version":1}',bytecode:"0x6080604052604051620011b2380380620011b2833981016040819052620000269162000519565b82816200005560017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd620005f9565b6000805160206200116b833981519152146200007557620000756200061f565b6200008382826000620000e7565b50620000b3905060017fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6104620005f9565b6000805160206200114b83398151915214620000d357620000d36200061f565b620000de8262000124565b50505062000688565b620000f2836200017f565b600082511180620001005750805b156200011f576200011d8383620001c160201b620002ff1760201c565b505b505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6200014f620001f0565b604080516001600160a01b03928316815291841660208301520160405180910390a16200017c8162000229565b50565b6200018a81620002de565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060620001e983836040518060600160405280602781526020016200118b6027913962000381565b9392505050565b60006200021a6000805160206200114b83398151915260001b6200046760201b620002731760201c565b546001600160a01b0316919050565b6001600160a01b038116620002945760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b80620002bd6000805160206200114b83398151915260001b6200046760201b620002731760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b620002f4816200046a60201b6200032b1760201c565b620003585760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016200028b565b80620002bd6000805160206200116b83398151915260001b6200046760201b620002731760201c565b60606001600160a01b0384163b620003eb5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016200028b565b600080856001600160a01b03168560405162000408919062000635565b600060405180830381855af49150503d806000811462000445576040519150601f19603f3d011682016040523d82523d6000602084013e6200044a565b606091505b5090925090506200045d82828662000479565b9695505050505050565b90565b6001600160a01b03163b151590565b606083156200048a575081620001e9565b8251156200049b5782518084602001fd5b8160405162461bcd60e51b81526004016200028b919062000653565b80516001600160a01b0381168114620004cf57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101562000507578181015183820152602001620004ed565b838111156200011d5750506000910152565b6000806000606084860312156200052f57600080fd5b6200053a84620004b7565b92506200054a60208501620004b7565b60408501519092506001600160401b03808211156200056857600080fd5b818601915086601f8301126200057d57600080fd5b815181811115620005925762000592620004d4565b604051601f8201601f19908116603f01168101908382118183101715620005bd57620005bd620004d4565b81604052828152896020848701011115620005d757600080fd5b620005ea836020830160208801620004ea565b80955050505050509250925092565b6000828210156200061a57634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052600160045260246000fd5b6000825162000649818460208701620004ea565b9190910192915050565b602081526000825180602084015262000674816040850160208701620004ea565b601f01601f19169190910160400192915050565b610ab380620006986000396000f3fe60806040526004361061005e5760003560e01c80635c60da1b116100435780635c60da1b146100a85780638f283970146100e6578063f851a440146101065761006d565b80633659cfe6146100755780634f1ef286146100955761006d565b3661006d5761006b61011b565b005b61006b61011b565b34801561008157600080fd5b5061006b61009036600461091f565b610135565b61006b6100a336600461093a565b610196565b3480156100b457600080fd5b506100bd610221565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100f257600080fd5b5061006b61010136600461091f565b610276565b34801561011257600080fd5b506100bd6102ba565b610123610347565b61013361012e610435565b61043f565b565b61013d610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816040518060200160405280600081525060006104a3565b50565b61018b61011b565b61019e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610219576102148383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250600192506104a3915050565b505050565b61021461011b565b600061022b610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610435565b905090565b61027361011b565b90565b61027e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816104ce565b60006102c4610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610463565b60606103248383604051806060016040528060278152602001610a576027913961052f565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b61034f610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f7879207461726760648201527f6574000000000000000000000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b6000610266610657565b3660008037600080366000845af43d6000803e80801561045e573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b5473ffffffffffffffffffffffffffffffffffffffff16919050565b6104ac8361067f565b6000825111806104b95750805b15610214576104c883836102ff565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6104f7610463565b6040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301520160405180910390a161018b816106cc565b606073ffffffffffffffffffffffffffffffffffffffff84163b6105d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161042c565b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516105fd91906109e9565b600060405180830381855af49150503d8060008114610638576040519150601f19603f3d011682016040523d82523d6000602084013e61063d565b606091505b509150915061064d8282866107d8565b9695505050505050565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610487565b6106888161082b565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b73ffffffffffffffffffffffffffffffffffffffff811661076f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161042c565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905550565b606083156107e7575081610324565b8251156107f75782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c9190610a05565b73ffffffffffffffffffffffffffffffffffffffff81163b6108cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e747261637400000000000000000000000000000000000000606482015260840161042c565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610792565b803573ffffffffffffffffffffffffffffffffffffffff8116811461091a57600080fd5b919050565b60006020828403121561093157600080fd5b610324826108f6565b60008060006040848603121561094f57600080fd5b610958846108f6565b9250602084013567ffffffffffffffff8082111561097557600080fd5b818601915086601f83011261098957600080fd5b81358181111561099857600080fd5b8760208285010111156109aa57600080fd5b6020830194508093505050509250925092565b60005b838110156109d85781810151838201526020016109c0565b838111156104c85750506000910152565b600082516109fb8184602087016109bd565b9190910192915050565b6020815260008251806020840152610a248160408501602087016109bd565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b29caa54336b3ee836679675e9732ec5e526fb3f803cca2fe336cc3555aba62264736f6c634300080a0033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564",deployedBytecode:"0x60806040526004361061005e5760003560e01c80635c60da1b116100435780635c60da1b146100a85780638f283970146100e6578063f851a440146101065761006d565b80633659cfe6146100755780634f1ef286146100955761006d565b3661006d5761006b61011b565b005b61006b61011b565b34801561008157600080fd5b5061006b61009036600461091f565b610135565b61006b6100a336600461093a565b610196565b3480156100b457600080fd5b506100bd610221565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100f257600080fd5b5061006b61010136600461091f565b610276565b34801561011257600080fd5b506100bd6102ba565b610123610347565b61013361012e610435565b61043f565b565b61013d610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816040518060200160405280600081525060006104a3565b50565b61018b61011b565b61019e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610219576102148383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250600192506104a3915050565b505050565b61021461011b565b600061022b610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610435565b905090565b61027361011b565b90565b61027e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816104ce565b60006102c4610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610463565b60606103248383604051806060016040528060278152602001610a576027913961052f565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b61034f610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f7879207461726760648201527f6574000000000000000000000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b6000610266610657565b3660008037600080366000845af43d6000803e80801561045e573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b5473ffffffffffffffffffffffffffffffffffffffff16919050565b6104ac8361067f565b6000825111806104b95750805b15610214576104c883836102ff565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6104f7610463565b6040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301520160405180910390a161018b816106cc565b606073ffffffffffffffffffffffffffffffffffffffff84163b6105d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161042c565b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516105fd91906109e9565b600060405180830381855af49150503d8060008114610638576040519150601f19603f3d011682016040523d82523d6000602084013e61063d565b606091505b509150915061064d8282866107d8565b9695505050505050565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610487565b6106888161082b565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b73ffffffffffffffffffffffffffffffffffffffff811661076f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161042c565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905550565b606083156107e7575081610324565b8251156107f75782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c9190610a05565b73ffffffffffffffffffffffffffffffffffffffff81163b6108cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e747261637400000000000000000000000000000000000000606482015260840161042c565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610792565b803573ffffffffffffffffffffffffffffffffffffffff8116811461091a57600080fd5b919050565b60006020828403121561093157600080fd5b610324826108f6565b60008060006040848603121561094f57600080fd5b610958846108f6565b9250602084013567ffffffffffffffff8082111561097557600080fd5b818601915086601f83011261098957600080fd5b81358181111561099857600080fd5b8760208285010111156109aa57600080fd5b6020830194508093505050509250925092565b60005b838110156109d85781810151838201526020016109c0565b838111156104c85750506000910152565b600082516109fb8184602087016109bd565b9190910192915050565b6020815260008251806020840152610a248160408501602087016109bd565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b29caa54336b3ee836679675e9732ec5e526fb3f803cca2fe336cc3555aba62264736f6c634300080a0033",execute:{methodName:"initialize",args:["0x26F9aD5E14518C4D4FD86EDA9753c28db5a85bEA"]},implementation:"0xa98db30A9FdB61737C234B5cD03f38A400353CC8",devdoc:{details:"This contract implements a proxy that is upgradeable by an admin. To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector clashing], which can potentially be used in an attack, this contract uses the https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two things that go hand in hand: 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if that call matches one of the admin functions exposed by the proxy itself. 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the implementation. If the admin tries to call a function on the implementation it will fail with an error that says \"admin cannot fallback to proxy target\". These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing the admin, so it's best if it's a dedicated account that is not used for anything else. This will avoid headaches due to sudden errors when trying to call a function from the proxy implementation. Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way, you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.",kind:"dev",methods:{"admin()":{details:"Returns the current admin. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`"},"changeAdmin(address)":{details:"Changes the admin of the proxy. Emits an {AdminChanged} event. NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}."},constructor:{details:"Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}."},"implementation()":{details:"Returns the current implementation. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`"},"upgradeTo(address)":{details:"Upgrade the implementation of the proxy. NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}."},"upgradeToAndCall(address,bytes)":{details:"Upgrade the implementation of the proxy, and then call a function from the new implementation as specified by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the proxied contract. NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}."}},version:1},userdoc:{kind:"user",methods:{},version:1},storageLayout:{storage:[],types:null}};var Gx={address:"0x26F9aD5E14518C4D4FD86EDA9753c28db5a85bEA",abi:[{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"previousAdmin",type:"address"},{indexed:!1,internalType:"address",name:"newAdmin",type:"address"}],name:"AdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"beacon",type:"address"}],name:"BeaconUpgraded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"implementation",type:"address"}],name:"Upgraded",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"admin",outputs:[{internalType:"address",name:"admin_",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newAdmin",type:"address"}],name:"changeAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"implementation",outputs:[{internalType:"address",name:"implementation_",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"}],name:"upgradeTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"},{inputs:[],name:"ECDSAInvalidSignature",type:"error"},{inputs:[{internalType:"uint256",name:"length",type:"uint256"}],name:"ECDSAInvalidSignatureLength",type:"error"},{inputs:[{internalType:"bytes32",name:"s",type:"bytes32"}],name:"ECDSAInvalidSignatureS",type:"error"},{inputs:[],name:"InvalidInitialization",type:"error"},{inputs:[],name:"NotInitializing",type:"error"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"OwnableInvalidOwner",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"OwnableUnauthorizedAccount",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!1,internalType:"address",name:"grantee",type:"address"}],name:"AccessGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!1,internalType:"address",name:"grantee",type:"address"}],name:"AccessRevoked",type:"event"},{anonymous:!1,inputs:[],name:"EIP712DomainChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint64",name:"version",type:"uint64"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!1,internalType:"string",name:"namespace",type:"string"},{indexed:!1,internalType:"uint256",name:"nonce",type:"uint256"}],name:"MetaNamespaceRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!1,internalType:"string",name:"namespace",type:"string"},{indexed:!1,internalType:"string",name:"taskName",type:"string"},{indexed:!1,internalType:"uint256",name:"nonce",type:"uint256"}],name:"MetaTaskRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!1,internalType:"address",name:"oldOwner",type:"address"},{indexed:!1,internalType:"address",name:"newOwner",type:"address"}],name:"NamespaceOwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"NamespaceRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!0,internalType:"string",name:"taskName",type:"string"},{indexed:!1,internalType:"uint256",name:"version",type:"uint256"}],name:"TaskDisabled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!0,internalType:"string",name:"taskName",type:"string"},{indexed:!1,internalType:"uint256",name:"version",type:"uint256"}],name:"TaskEnabled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"cid",type:"string"},{indexed:!1,internalType:"address",name:"sender",type:"address"}],name:"TaskIdRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!0,internalType:"string",name:"taskName",type:"string"},{indexed:!1,internalType:"uint256",name:"version",type:"uint256"}],name:"TaskRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"namespace",type:"string"},{indexed:!0,internalType:"string",name:"taskName",type:"string"},{indexed:!1,internalType:"uint256",name:"version",type:"uint256"},{indexed:!1,internalType:"string",name:"label",type:"string"}],name:"VersionLabelSet",type:"event"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"},{internalType:"uint256",name:"version",type:"uint256"}],name:"disableTask",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"},{internalType:"string",name:"label",type:"string"}],name:"disableTaskByLabel",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"eip712Domain",outputs:[{internalType:"bytes1",name:"fields",type:"bytes1"},{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"version",type:"string"},{internalType:"uint256",name:"chainId",type:"uint256"},{internalType:"address",name:"verifyingContract",type:"address"},{internalType:"bytes32",name:"salt",type:"bytes32"},{internalType:"uint256[]",name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"},{internalType:"uint256",name:"version",type:"uint256"}],name:"enableTask",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"}],name:"getLatestActiveVersion",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"}],name:"getLatestVersion",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"}],name:"getTask",outputs:[{components:[{internalType:"string",name:"taskId",type:"string"},{internalType:"string",name:"meta",type:"string"},{internalType:"bool",name:"active",type:"bool"}],internalType:"struct TaskRegistry.Task",name:"",type:"tuple"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"},{internalType:"string",name:"label",type:"string"}],name:"getTaskByLabel",outputs:[{components:[{internalType:"string",name:"taskId",type:"string"},{internalType:"string",name:"meta",type:"string"},{internalType:"bool",name:"active",type:"bool"}],internalType:"struct TaskRegistry.Task",name:"",type:"tuple"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"},{internalType:"uint256",name:"version",type:"uint256"}],name:"getTaskByVersion",outputs:[{components:[{internalType:"string",name:"taskId",type:"string"},{internalType:"string",name:"meta",type:"string"},{internalType:"bool",name:"active",type:"bool"}],internalType:"struct TaskRegistry.Task",name:"",type:"tuple"},{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"address",name:"grantee",type:"address"}],name:"grantNamespaceAccess",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"input",type:"string"}],name:"isAsciiString",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"string",name:"taskId",type:"string"}],name:"isTaskRevoked",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"str",type:"string"}],name:"isValidName",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"string",name:"",type:"string"},{internalType:"string",name:"",type:"string"},{internalType:"string",name:"",type:"string"}],name:"labeledVersions",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"",type:"string"},{internalType:"string",name:"",type:"string"}],name:"latestVersion",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"",type:"string"},{internalType:"address",name:"",type:"address"}],name:"namespaceGrantees",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"",type:"string"}],name:"namespaceOwners",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"},{components:[{internalType:"string",name:"taskId",type:"string"},{internalType:"string",name:"meta",type:"string"},{internalType:"bool",name:"active",type:"bool"}],internalType:"struct TaskRegistry.Task",name:"task",type:"tuple"}],name:"registerTask",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"}],name:"registerTaskNamespace",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"string",name:"namespace",type:"string"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"registerTaskNamespaceWithSignature",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"},{components:[{internalType:"string",name:"taskId",type:"string"},{internalType:"string",name:"meta",type:"string"},{internalType:"bool",name:"active",type:"bool"}],internalType:"struct TaskRegistry.Task",name:"task",type:"tuple"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"registerTaskWithSignature",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"address",name:"grantee",type:"address"}],name:"revokeNamespaceAccess",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"taskId",type:"string"}],name:"revokeTask",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"",type:"string"}],name:"revokedTaskId",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"string",name:"taskName",type:"string"},{internalType:"uint256",name:"version",type:"uint256"},{internalType:"string",name:"label",type:"string"}],name:"setTaskLabel",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"",type:"string"},{internalType:"string",name:"",type:"string"},{internalType:"uint256",name:"",type:"uint256"}],name:"tasks",outputs:[{internalType:"string",name:"taskId",type:"string"},{internalType:"string",name:"meta",type:"string"},{internalType:"bool",name:"active",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"namespace",type:"string"},{internalType:"address",name:"newOwner",type:"address"}],name:"transferTaskNamespace",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_logic",type:"address"},{internalType:"address",name:"admin_",type:"address"},{internalType:"bytes",name:"_data",type:"bytes"}],stateMutability:"payable",type:"constructor"}],transactionHash:"0x17800fa47a9c8d8952efa6829d76d216f95e547b4a5e5060af529bf4f86822b5",receipt:{to:null,from:"0xE3AcBBB129F14681C315028dB0A156597fb5058B",contractAddress:"0x26F9aD5E14518C4D4FD86EDA9753c28db5a85bEA",transactionIndex:2,gasUsed:"819988",logsBloom:"0x00000000000000000000000000000000400000000000000000800000000000000000020000000000000000000000000000000000000000000000000080000000000000000000000000000000000002020001000000000000000000000000000000004000020000000000000000000800000000800000000000000000000002400000000000000000000800000000000000400000000080002000000000800000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000484000000000000200020000000000000000000000000000000000000000000000000000000000000000000",blockHash:"0x5c8e17a8862d2bffb7610b56d3e82b52d9898281dd940bc7ca14a90c1dc3e83f",transactionHash:"0x17800fa47a9c8d8952efa6829d76d216f95e547b4a5e5060af529bf4f86822b5",logs:[{transactionIndex:2,blockNumber:36870186,transactionHash:"0x17800fa47a9c8d8952efa6829d76d216f95e547b4a5e5060af529bf4f86822b5",address:"0x26F9aD5E14518C4D4FD86EDA9753c28db5a85bEA",topics:["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000cfa95911ca7c48065a38b7c932881d1b10fb7ff9"],data:"0x",logIndex:0,blockHash:"0x5c8e17a8862d2bffb7610b56d3e82b52d9898281dd940bc7ca14a90c1dc3e83f"},{transactionIndex:2,blockNumber:36870186,transactionHash:"0x17800fa47a9c8d8952efa6829d76d216f95e547b4a5e5060af529bf4f86822b5",address:"0x26F9aD5E14518C4D4FD86EDA9753c28db5a85bEA",topics:["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x000000000000000000000000e3acbbb129f14681c315028db0a156597fb5058b"],data:"0x",logIndex:1,blockHash:"0x5c8e17a8862d2bffb7610b56d3e82b52d9898281dd940bc7ca14a90c1dc3e83f"},{transactionIndex:2,blockNumber:36870186,transactionHash:"0x17800fa47a9c8d8952efa6829d76d216f95e547b4a5e5060af529bf4f86822b5",address:"0x26F9aD5E14518C4D4FD86EDA9753c28db5a85bEA",topics:["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"],data:"0x0000000000000000000000000000000000000000000000000000000000000001",logIndex:2,blockHash:"0x5c8e17a8862d2bffb7610b56d3e82b52d9898281dd940bc7ca14a90c1dc3e83f"},{transactionIndex:2,blockNumber:36870186,transactionHash:"0x17800fa47a9c8d8952efa6829d76d216f95e547b4a5e5060af529bf4f86822b5",address:"0x26F9aD5E14518C4D4FD86EDA9753c28db5a85bEA",topics:["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],data:"0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b20955e8799609a8277f52a3d9fa28aa703c5d27",logIndex:3,blockHash:"0x5c8e17a8862d2bffb7610b56d3e82b52d9898281dd940bc7ca14a90c1dc3e83f"}],blockNumber:36870186,cumulativeGasUsed:"893892",status:1,byzantium:!0},args:["0xcfa95911cA7c48065A38B7C932881D1b10FB7FF9","0xB20955e8799609A8277f52a3d9Fa28aA703c5d27","0x8129fc1c"],numDeployments:1,solcInputHash:"0e89febeebc7444140de8e67c9067d2c",metadata:'{"compiler":{"version":"0.8.10+commit.fc410830"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"admin_","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"admin_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"changeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"implementation_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}],"devdoc":{"details":"This contract implements a proxy that is upgradeable by an admin. To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector clashing], which can potentially be used in an attack, this contract uses the https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two things that go hand in hand: 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if that call matches one of the admin functions exposed by the proxy itself. 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the implementation. If the admin tries to call a function on the implementation it will fail with an error that says \\"admin cannot fallback to proxy target\\". These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing the admin, so it\'s best if it\'s a dedicated account that is not used for anything else. This will avoid headaches due to sudden errors when trying to call a function from the proxy implementation. Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way, you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.","kind":"dev","methods":{"admin()":{"details":"Returns the current admin. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`"},"changeAdmin(address)":{"details":"Changes the admin of the proxy. Emits an {AdminChanged} event. NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}."},"constructor":{"details":"Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}."},"implementation()":{"details":"Returns the current implementation. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`"},"upgradeTo(address)":{"details":"Upgrade the implementation of the proxy. NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}."},"upgradeToAndCall(address,bytes)":{"details":"Upgrade the implementation of the proxy, and then call a function from the new implementation as specified by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the proxied contract. NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}."}},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"compilationTarget":{"solc_0.8/openzeppelin/proxy/transparent/TransparentUpgradeableProxy.sol":"TransparentUpgradeableProxy"},"evmVersion":"london","libraries":{},"metadata":{"bytecodeHash":"ipfs","useLiteralContent":true},"optimizer":{"enabled":true,"runs":999999},"remappings":[]},"sources":{"solc_0.8/openzeppelin/interfaces/draft-IERC1822.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n","keccak256":"0x93b4e21c931252739a1ec13ea31d3d35a5c068be3163ccab83e4d70c40355f03","license":"MIT"},"solc_0.8/openzeppelin/proxy/ERC1967/ERC1967Proxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/ERC1967/ERC1967Proxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\"../Proxy.sol\\";\\nimport \\"./ERC1967Upgrade.sol\\";\\n\\n/**\\n * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an\\n * implementation address that can be changed. This address is stored in storage in the location specified by\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn\'t conflict with the storage layout of the\\n * implementation behind the proxy.\\n */\\ncontract ERC1967Proxy is Proxy, ERC1967Upgrade {\\n /**\\n * @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.\\n *\\n * If `_data` is nonempty, it\'s used as data in a delegate call to `_logic`. This will typically be an encoded\\n * function call, and allows initializating the storage of the proxy like a Solidity constructor.\\n */\\n constructor(address _logic, bytes memory _data) payable {\\n assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256(\\"eip1967.proxy.implementation\\")) - 1));\\n _upgradeToAndCall(_logic, _data, false);\\n }\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _implementation() internal view virtual override returns (address impl) {\\n return ERC1967Upgrade._getImplementation();\\n }\\n}\\n","keccak256":"0x6309f9f39dc6f4f45a24f296543867aa358e32946cd6b2874627a996d606b3a0","license":"MIT"},"solc_0.8/openzeppelin/proxy/ERC1967/ERC1967Upgrade.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (proxy/ERC1967/ERC1967Upgrade.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\"../beacon/IBeacon.sol\\";\\nimport \\"../../interfaces/draft-IERC1822.sol\\";\\nimport \\"../../utils/Address.sol\\";\\nimport \\"../../utils/StorageSlot.sol\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n *\\n * _Available since v4.1._\\n *\\n * @custom:oz-upgrades-unsafe-allow delegatecall\\n */\\nabstract contract ERC1967Upgrade {\\n // This is the keccak-256 hash of \\"eip1967.proxy.rollback\\" subtracted by 1\\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\"eip1967.proxy.implementation\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(Address.isContract(newImplementation), \\"ERC1967: new implementation is not a contract\\");\\n StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Perform implementation upgrade\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeTo(address newImplementation) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCall(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _upgradeTo(newImplementation);\\n if (data.length > 0 || forceCall) {\\n Address.functionDelegateCall(newImplementation, data);\\n }\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n // Upgrades from old implementations will perform a rollback test. This test requires the new\\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\\n // this special case will break upgrade paths from old UUPS implementation to new ones.\\n if (StorageSlot.getBooleanSlot(_ROLLBACK_SLOT).value) {\\n _setImplementation(newImplementation);\\n } else {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n require(slot == _IMPLEMENTATION_SLOT, \\"ERC1967Upgrade: unsupported proxiableUUID\\");\\n } catch {\\n revert(\\"ERC1967Upgrade: new implementation is not UUPS\\");\\n }\\n _upgradeToAndCall(newImplementation, data, forceCall);\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\"eip1967.proxy.admin\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _getAdmin() internal view virtual returns (address) {\\n return StorageSlot.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n require(newAdmin != address(0), \\"ERC1967: new admin is the zero address\\");\\n StorageSlot.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n */\\n function _changeAdmin(address newAdmin) internal {\\n emit AdminChanged(_getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is bytes32(uint256(keccak256(\'eip1967.proxy.beacon\')) - 1)) and is validated in the constructor.\\n */\\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Emitted when the beacon is upgraded.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function _getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(_BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n require(Address.isContract(newBeacon), \\"ERC1967: new beacon is not a contract\\");\\n require(Address.isContract(IBeacon(newBeacon).implementation()), \\"ERC1967: beacon implementation is not a contract\\");\\n StorageSlot.getAddressSlot(_BEACON_SLOT).value = newBeacon;\\n }\\n\\n /**\\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\\n *\\n * Emits a {BeaconUpgraded} event.\\n */\\n function _upgradeBeaconToAndCall(\\n address newBeacon,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n if (data.length > 0 || forceCall) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n }\\n }\\n}\\n","keccak256":"0x17668652127feebed0ce8d9431ef95ccc8c4292f03e3b8cf06c6ca16af396633","license":"MIT"},"solc_0.8/openzeppelin/proxy/Proxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (proxy/Proxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM\\n * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to\\n * be specified by overriding the virtual {_implementation} function.\\n *\\n * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a\\n * different contract through the {_delegate} function.\\n *\\n * The success and return data of the delegated call will be returned back to the caller of the proxy.\\n */\\nabstract contract Proxy {\\n /**\\n * @dev Delegates the current call to `implementation`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _delegate(address implementation) internal virtual {\\n assembly {\\n // Copy msg.data. We take full control of memory in this inline assembly\\n // block because it will not return to Solidity code. We overwrite the\\n // Solidity scratch pad at memory position 0.\\n calldatacopy(0, 0, calldatasize())\\n\\n // Call the implementation.\\n // out and outsize are 0 because we don\'t know the size yet.\\n let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\\n\\n // Copy the returned data.\\n returndatacopy(0, 0, returndatasize())\\n\\n switch result\\n // delegatecall returns 0 on error.\\n case 0 {\\n revert(0, returndatasize())\\n }\\n default {\\n return(0, returndatasize())\\n }\\n }\\n }\\n\\n /**\\n * @dev This is a virtual function that should be overriden so it returns the address to which the fallback function\\n * and {_fallback} should delegate.\\n */\\n function _implementation() internal view virtual returns (address);\\n\\n /**\\n * @dev Delegates the current call to the address returned by `_implementation()`.\\n *\\n * This function does not return to its internall call site, it will return directly to the external caller.\\n */\\n function _fallback() internal virtual {\\n _beforeFallback();\\n _delegate(_implementation());\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other\\n * function in the contract matches the call data.\\n */\\n fallback() external payable virtual {\\n _fallback();\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data\\n * is empty.\\n */\\n receive() external payable virtual {\\n _fallback();\\n }\\n\\n /**\\n * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`\\n * call, or as part of the Solidity `fallback` or `receive` functions.\\n *\\n * If overriden should call `super._beforeFallback()`.\\n */\\n function _beforeFallback() internal virtual {}\\n}\\n","keccak256":"0xd5d1fd16e9faff7fcb3a52e02a8d49156f42a38a03f07b5f1810c21c2149a8ab","license":"MIT"},"solc_0.8/openzeppelin/proxy/beacon/IBeacon.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {BeaconProxy} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n","keccak256":"0xd50a3421ac379ccb1be435fa646d66a65c986b4924f0849839f08692f39dde61","license":"MIT"},"solc_0.8/openzeppelin/proxy/transparent/TransparentUpgradeableProxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/transparent/TransparentUpgradeableProxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\"../ERC1967/ERC1967Proxy.sol\\";\\n\\n/**\\n * @dev This contract implements a proxy that is upgradeable by an admin.\\n *\\n * To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector\\n * clashing], which can potentially be used in an attack, this contract uses the\\n * https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two\\n * things that go hand in hand:\\n *\\n * 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if\\n * that call matches one of the admin functions exposed by the proxy itself.\\n * 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the\\n * implementation. If the admin tries to call a function on the implementation it will fail with an error that says\\n * \\"admin cannot fallback to proxy target\\".\\n *\\n * These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing\\n * the admin, so it\'s best if it\'s a dedicated account that is not used for anything else. This will avoid headaches due\\n * to sudden errors when trying to call a function from the proxy implementation.\\n *\\n * Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way,\\n * you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.\\n */\\ncontract TransparentUpgradeableProxy is ERC1967Proxy {\\n /**\\n * @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and\\n * optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}.\\n */\\n constructor(\\n address _logic,\\n address admin_,\\n bytes memory _data\\n ) payable ERC1967Proxy(_logic, _data) {\\n assert(_ADMIN_SLOT == bytes32(uint256(keccak256(\\"eip1967.proxy.admin\\")) - 1));\\n _changeAdmin(admin_);\\n }\\n\\n /**\\n * @dev Modifier used internally that will delegate the call to the implementation unless the sender is the admin.\\n */\\n modifier ifAdmin() {\\n if (msg.sender == _getAdmin()) {\\n _;\\n } else {\\n _fallback();\\n }\\n }\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the\\n * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function admin() external ifAdmin returns (address admin_) {\\n admin_ = _getAdmin();\\n }\\n\\n /**\\n * @dev Returns the current implementation.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the\\n * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`\\n */\\n function implementation() external ifAdmin returns (address implementation_) {\\n implementation_ = _implementation();\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}.\\n */\\n function changeAdmin(address newAdmin) external virtual ifAdmin {\\n _changeAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}.\\n */\\n function upgradeTo(address newImplementation) external ifAdmin {\\n _upgradeToAndCall(newImplementation, bytes(\\"\\"), false);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy, and then call a function from the new implementation as specified\\n * by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the\\n * proxied contract.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}.\\n */\\n function upgradeToAndCall(address newImplementation, bytes calldata data) external payable ifAdmin {\\n _upgradeToAndCall(newImplementation, data, true);\\n }\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _admin() internal view virtual returns (address) {\\n return _getAdmin();\\n }\\n\\n /**\\n * @dev Makes sure the admin cannot access the fallback function. See {Proxy-_beforeFallback}.\\n */\\n function _beforeFallback() internal virtual override {\\n require(msg.sender != _getAdmin(), \\"TransparentUpgradeableProxy: admin cannot fallback to proxy target\\");\\n super._beforeFallback();\\n }\\n}\\n","keccak256":"0x140055a64cf579d622e04f5a198595832bf2cb193cd0005f4f2d4d61ca906253","license":"MIT"},"solc_0.8/openzeppelin/utils/Address.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn\'t rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity\'s `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\"Address: insufficient balance\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\"\\");\\n require(success, \\"Address: unable to send value, recipient may have reverted\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCall(target, data, \\"Address: low-level call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\"Address: low-level call with value failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\"Address: insufficient balance for call\\");\\n require(isContract(target), \\"Address: call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\"Address: low-level static call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n require(isContract(target), \\"Address: static call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\"Address: low-level delegate call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(isContract(target), \\"Address: delegate call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verifies that a low level call was successful, and revert if it wasn\'t, either by bubbling the\\n * revert reason using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n }\\n}\\n","keccak256":"0x3777e696b62134e6177440dbe6e6601c0c156a443f57167194b67e75527439de","license":"MIT"},"solc_0.8/openzeppelin/utils/StorageSlot.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\"ERC1967: new implementation is not a contract\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._\\n */\\nlibrary StorageSlot {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n}\\n","keccak256":"0xfe1b7a9aa2a530a9e705b220e26cd584e2fbdc9602a3a1066032b12816b46aca","license":"MIT"}},"version":1}',bytecode:"0x6080604052604051620011b2380380620011b2833981016040819052620000269162000519565b82816200005560017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd620005f9565b6000805160206200116b833981519152146200007557620000756200061f565b6200008382826000620000e7565b50620000b3905060017fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6104620005f9565b6000805160206200114b83398151915214620000d357620000d36200061f565b620000de8262000124565b50505062000688565b620000f2836200017f565b600082511180620001005750805b156200011f576200011d8383620001c160201b620002ff1760201c565b505b505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6200014f620001f0565b604080516001600160a01b03928316815291841660208301520160405180910390a16200017c8162000229565b50565b6200018a81620002de565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060620001e983836040518060600160405280602781526020016200118b6027913962000381565b9392505050565b60006200021a6000805160206200114b83398151915260001b6200046760201b620002731760201c565b546001600160a01b0316919050565b6001600160a01b038116620002945760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b80620002bd6000805160206200114b83398151915260001b6200046760201b620002731760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b620002f4816200046a60201b6200032b1760201c565b620003585760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016200028b565b80620002bd6000805160206200116b83398151915260001b6200046760201b620002731760201c565b60606001600160a01b0384163b620003eb5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016200028b565b600080856001600160a01b03168560405162000408919062000635565b600060405180830381855af49150503d806000811462000445576040519150601f19603f3d011682016040523d82523d6000602084013e6200044a565b606091505b5090925090506200045d82828662000479565b9695505050505050565b90565b6001600160a01b03163b151590565b606083156200048a575081620001e9565b8251156200049b5782518084602001fd5b8160405162461bcd60e51b81526004016200028b919062000653565b80516001600160a01b0381168114620004cf57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101562000507578181015183820152602001620004ed565b838111156200011d5750506000910152565b6000806000606084860312156200052f57600080fd5b6200053a84620004b7565b92506200054a60208501620004b7565b60408501519092506001600160401b03808211156200056857600080fd5b818601915086601f8301126200057d57600080fd5b815181811115620005925762000592620004d4565b604051601f8201601f19908116603f01168101908382118183101715620005bd57620005bd620004d4565b81604052828152896020848701011115620005d757600080fd5b620005ea836020830160208801620004ea565b80955050505050509250925092565b6000828210156200061a57634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052600160045260246000fd5b6000825162000649818460208701620004ea565b9190910192915050565b602081526000825180602084015262000674816040850160208701620004ea565b601f01601f19169190910160400192915050565b610ab380620006986000396000f3fe60806040526004361061005e5760003560e01c80635c60da1b116100435780635c60da1b146100a85780638f283970146100e6578063f851a440146101065761006d565b80633659cfe6146100755780634f1ef286146100955761006d565b3661006d5761006b61011b565b005b61006b61011b565b34801561008157600080fd5b5061006b61009036600461091f565b610135565b61006b6100a336600461093a565b610196565b3480156100b457600080fd5b506100bd610221565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100f257600080fd5b5061006b61010136600461091f565b610276565b34801561011257600080fd5b506100bd6102ba565b610123610347565b61013361012e610435565b61043f565b565b61013d610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816040518060200160405280600081525060006104a3565b50565b61018b61011b565b61019e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610219576102148383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250600192506104a3915050565b505050565b61021461011b565b600061022b610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610435565b905090565b61027361011b565b90565b61027e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816104ce565b60006102c4610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610463565b60606103248383604051806060016040528060278152602001610a576027913961052f565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b61034f610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f7879207461726760648201527f6574000000000000000000000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b6000610266610657565b3660008037600080366000845af43d6000803e80801561045e573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b5473ffffffffffffffffffffffffffffffffffffffff16919050565b6104ac8361067f565b6000825111806104b95750805b15610214576104c883836102ff565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6104f7610463565b6040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301520160405180910390a161018b816106cc565b606073ffffffffffffffffffffffffffffffffffffffff84163b6105d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161042c565b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516105fd91906109e9565b600060405180830381855af49150503d8060008114610638576040519150601f19603f3d011682016040523d82523d6000602084013e61063d565b606091505b509150915061064d8282866107d8565b9695505050505050565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610487565b6106888161082b565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b73ffffffffffffffffffffffffffffffffffffffff811661076f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161042c565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905550565b606083156107e7575081610324565b8251156107f75782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c9190610a05565b73ffffffffffffffffffffffffffffffffffffffff81163b6108cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e747261637400000000000000000000000000000000000000606482015260840161042c565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610792565b803573ffffffffffffffffffffffffffffffffffffffff8116811461091a57600080fd5b919050565b60006020828403121561093157600080fd5b610324826108f6565b60008060006040848603121561094f57600080fd5b610958846108f6565b9250602084013567ffffffffffffffff8082111561097557600080fd5b818601915086601f83011261098957600080fd5b81358181111561099857600080fd5b8760208285010111156109aa57600080fd5b6020830194508093505050509250925092565b60005b838110156109d85781810151838201526020016109c0565b838111156104c85750506000910152565b600082516109fb8184602087016109bd565b9190910192915050565b6020815260008251806020840152610a248160408501602087016109bd565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b29caa54336b3ee836679675e9732ec5e526fb3f803cca2fe336cc3555aba62264736f6c634300080a0033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564",deployedBytecode:"0x60806040526004361061005e5760003560e01c80635c60da1b116100435780635c60da1b146100a85780638f283970146100e6578063f851a440146101065761006d565b80633659cfe6146100755780634f1ef286146100955761006d565b3661006d5761006b61011b565b005b61006b61011b565b34801561008157600080fd5b5061006b61009036600461091f565b610135565b61006b6100a336600461093a565b610196565b3480156100b457600080fd5b506100bd610221565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100f257600080fd5b5061006b61010136600461091f565b610276565b34801561011257600080fd5b506100bd6102ba565b610123610347565b61013361012e610435565b61043f565b565b61013d610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816040518060200160405280600081525060006104a3565b50565b61018b61011b565b61019e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610219576102148383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250600192506104a3915050565b505050565b61021461011b565b600061022b610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610435565b905090565b61027361011b565b90565b61027e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816104ce565b60006102c4610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610463565b60606103248383604051806060016040528060278152602001610a576027913961052f565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b61034f610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f7879207461726760648201527f6574000000000000000000000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b6000610266610657565b3660008037600080366000845af43d6000803e80801561045e573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b5473ffffffffffffffffffffffffffffffffffffffff16919050565b6104ac8361067f565b6000825111806104b95750805b15610214576104c883836102ff565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6104f7610463565b6040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301520160405180910390a161018b816106cc565b606073ffffffffffffffffffffffffffffffffffffffff84163b6105d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161042c565b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516105fd91906109e9565b600060405180830381855af49150503d8060008114610638576040519150601f19603f3d011682016040523d82523d6000602084013e61063d565b606091505b509150915061064d8282866107d8565b9695505050505050565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610487565b6106888161082b565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b73ffffffffffffffffffffffffffffffffffffffff811661076f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161042c565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905550565b606083156107e7575081610324565b8251156107f75782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c9190610a05565b73ffffffffffffffffffffffffffffffffffffffff81163b6108cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e747261637400000000000000000000000000000000000000606482015260840161042c565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610792565b803573ffffffffffffffffffffffffffffffffffffffff8116811461091a57600080fd5b919050565b60006020828403121561093157600080fd5b610324826108f6565b60008060006040848603121561094f57600080fd5b610958846108f6565b9250602084013567ffffffffffffffff8082111561097557600080fd5b818601915086601f83011261098957600080fd5b81358181111561099857600080fd5b8760208285010111156109aa57600080fd5b6020830194508093505050509250925092565b60005b838110156109d85781810151838201526020016109c0565b838111156104c85750506000910152565b600082516109fb8184602087016109bd565b9190910192915050565b6020815260008251806020840152610a248160408501602087016109bd565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b29caa54336b3ee836679675e9732ec5e526fb3f803cca2fe336cc3555aba62264736f6c634300080a0033",execute:{methodName:"initialize",args:[]},implementation:"0xcfa95911cA7c48065A38B7C932881D1b10FB7FF9",devdoc:{details:"This contract implements a proxy that is upgradeable by an admin. To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector clashing], which can potentially be used in an attack, this contract uses the https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two things that go hand in hand: 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if that call matches one of the admin functions exposed by the proxy itself. 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the implementation. If the admin tries to call a function on the implementation it will fail with an error that says \"admin cannot fallback to proxy target\". These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing the admin, so it's best if it's a dedicated account that is not used for anything else. This will avoid headaches due to sudden errors when trying to call a function from the proxy implementation. Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way, you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.",kind:"dev",methods:{"admin()":{details:"Returns the current admin. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`"},"changeAdmin(address)":{details:"Changes the admin of the proxy. Emits an {AdminChanged} event. NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}."},constructor:{details:"Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}."},"implementation()":{details:"Returns the current implementation. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`"},"upgradeTo(address)":{details:"Upgrade the implementation of the proxy. NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}."},"upgradeToAndCall(address,bytes)":{details:"Upgrade the implementation of the proxy, and then call a function from the new implementation as specified by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the proxied contract. NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}."}},version:1},userdoc:{kind:"user",methods:{},version:1},storageLayout:{storage:[],types:null}};var Wx={address:"0xB0Cd8d3430C14ecc08c4ccff713d5b21b472f88C",abi:[{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"previousAdmin",type:"address"},{indexed:!1,internalType:"address",name:"newAdmin",type:"address"}],name:"AdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"beacon",type:"address"}],name:"BeaconUpgraded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"implementation",type:"address"}],name:"Upgraded",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"admin",outputs:[{internalType:"address",name:"admin_",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newAdmin",type:"address"}],name:"changeAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"implementation",outputs:[{internalType:"address",name:"implementation_",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"}],name:"upgradeTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"},{inputs:[],name:"InvalidInitialization",type:"error"},{inputs:[],name:"NotInitializing",type:"error"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"OwnableInvalidOwner",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"OwnableUnauthorizedAccount",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"id",type:"address"}],name:"DeRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint64",name:"version",type:"uint64"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"id",type:"address"},{indexed:!1,internalType:"uint256",name:"index",type:"uint256"}],name:"Registered",type:"event"},{inputs:[],name:"deRegister",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"id",type:"address"}],name:"deRegisterAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"deRegisterAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"getNodeAtIndex",outputs:[{components:[{internalType:"address",name:"nodeAddress",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"},{internalType:"uint256",name:"timestamp",type:"uint256"}],internalType:"struct NodeRegistry.Registration",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"getNodeCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"node",type:"address"}],name:"getNodeIndexByAddress",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getNodes",outputs:[{components:[{internalType:"address",name:"nodeAddress",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"},{internalType:"uint256",name:"timestamp",type:"uint256"}],internalType:"struct NodeRegistry.Registration[]",name:"",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"nodeIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"registerNode",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"registeredNodes",outputs:[{internalType:"address",name:"nodeAddress",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"},{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_logic",type:"address"},{internalType:"address",name:"admin_",type:"address"},{internalType:"bytes",name:"_data",type:"bytes"}],stateMutability:"payable",type:"constructor"}],transactionHash:"0x3df6b821e783bd12b83dbcb416a5b819f436bbaab4382f265a324fe4a0a10839",receipt:{to:null,from:"0xE3AcBBB129F14681C315028dB0A156597fb5058B",contractAddress:"0xB0Cd8d3430C14ecc08c4ccff713d5b21b472f88C",transactionIndex:0,gasUsed:"838900",logsBloom:"0x000000000000000000000000008000004000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000020000010000000000000000000000000000000000000200000000000000000008000000008000000000000000000000004000000000000000000008000400000000004000000000800000000000008000000000000000000000000000000000000000800000000000000000000000000000000000200000000000000000000000000000000004c4000000000000200020000000000000000000000000000000000000000000000000000000000008000000",blockHash:"0xfd09c064e327c30e18eb955c0819cb915e32dba23e3fe2bda98c1eac3fc1050e",transactionHash:"0x3df6b821e783bd12b83dbcb416a5b819f436bbaab4382f265a324fe4a0a10839",logs:[{transactionIndex:0,blockNumber:36870178,transactionHash:"0x3df6b821e783bd12b83dbcb416a5b819f436bbaab4382f265a324fe4a0a10839",address:"0xB0Cd8d3430C14ecc08c4ccff713d5b21b472f88C",topics:["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x0000000000000000000000009688c6c3e8523e709bc978941f0ec2d755621d27"],data:"0x",logIndex:0,blockHash:"0xfd09c064e327c30e18eb955c0819cb915e32dba23e3fe2bda98c1eac3fc1050e"},{transactionIndex:0,blockNumber:36870178,transactionHash:"0x3df6b821e783bd12b83dbcb416a5b819f436bbaab4382f265a324fe4a0a10839",address:"0xB0Cd8d3430C14ecc08c4ccff713d5b21b472f88C",topics:["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x000000000000000000000000e3acbbb129f14681c315028db0a156597fb5058b"],data:"0x",logIndex:1,blockHash:"0xfd09c064e327c30e18eb955c0819cb915e32dba23e3fe2bda98c1eac3fc1050e"},{transactionIndex:0,blockNumber:36870178,transactionHash:"0x3df6b821e783bd12b83dbcb416a5b819f436bbaab4382f265a324fe4a0a10839",address:"0xB0Cd8d3430C14ecc08c4ccff713d5b21b472f88C",topics:["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"],data:"0x0000000000000000000000000000000000000000000000000000000000000001",logIndex:2,blockHash:"0xfd09c064e327c30e18eb955c0819cb915e32dba23e3fe2bda98c1eac3fc1050e"},{transactionIndex:0,blockNumber:36870178,transactionHash:"0x3df6b821e783bd12b83dbcb416a5b819f436bbaab4382f265a324fe4a0a10839",address:"0xB0Cd8d3430C14ecc08c4ccff713d5b21b472f88C",topics:["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],data:"0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b20955e8799609a8277f52a3d9fa28aa703c5d27",logIndex:3,blockHash:"0xfd09c064e327c30e18eb955c0819cb915e32dba23e3fe2bda98c1eac3fc1050e"}],blockNumber:36870178,cumulativeGasUsed:"838900",status:1,byzantium:!0},args:["0x9688C6c3E8523e709bC978941f0ec2D755621D27","0xB20955e8799609A8277f52a3d9Fa28aA703c5d27","0x8129fc1c"],numDeployments:1,solcInputHash:"0e89febeebc7444140de8e67c9067d2c",metadata:'{"compiler":{"version":"0.8.10+commit.fc410830"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"admin_","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"admin_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"changeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"implementation_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}],"devdoc":{"details":"This contract implements a proxy that is upgradeable by an admin. To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector clashing], which can potentially be used in an attack, this contract uses the https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two things that go hand in hand: 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if that call matches one of the admin functions exposed by the proxy itself. 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the implementation. If the admin tries to call a function on the implementation it will fail with an error that says \\"admin cannot fallback to proxy target\\". These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing the admin, so it\'s best if it\'s a dedicated account that is not used for anything else. This will avoid headaches due to sudden errors when trying to call a function from the proxy implementation. Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way, you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.","kind":"dev","methods":{"admin()":{"details":"Returns the current admin. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`"},"changeAdmin(address)":{"details":"Changes the admin of the proxy. Emits an {AdminChanged} event. NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}."},"constructor":{"details":"Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}."},"implementation()":{"details":"Returns the current implementation. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`"},"upgradeTo(address)":{"details":"Upgrade the implementation of the proxy. NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}."},"upgradeToAndCall(address,bytes)":{"details":"Upgrade the implementation of the proxy, and then call a function from the new implementation as specified by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the proxied contract. NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}."}},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"compilationTarget":{"solc_0.8/openzeppelin/proxy/transparent/TransparentUpgradeableProxy.sol":"TransparentUpgradeableProxy"},"evmVersion":"london","libraries":{},"metadata":{"bytecodeHash":"ipfs","useLiteralContent":true},"optimizer":{"enabled":true,"runs":999999},"remappings":[]},"sources":{"solc_0.8/openzeppelin/interfaces/draft-IERC1822.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n","keccak256":"0x93b4e21c931252739a1ec13ea31d3d35a5c068be3163ccab83e4d70c40355f03","license":"MIT"},"solc_0.8/openzeppelin/proxy/ERC1967/ERC1967Proxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/ERC1967/ERC1967Proxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\"../Proxy.sol\\";\\nimport \\"./ERC1967Upgrade.sol\\";\\n\\n/**\\n * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an\\n * implementation address that can be changed. This address is stored in storage in the location specified by\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn\'t conflict with the storage layout of the\\n * implementation behind the proxy.\\n */\\ncontract ERC1967Proxy is Proxy, ERC1967Upgrade {\\n /**\\n * @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.\\n *\\n * If `_data` is nonempty, it\'s used as data in a delegate call to `_logic`. This will typically be an encoded\\n * function call, and allows initializating the storage of the proxy like a Solidity constructor.\\n */\\n constructor(address _logic, bytes memory _data) payable {\\n assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256(\\"eip1967.proxy.implementation\\")) - 1));\\n _upgradeToAndCall(_logic, _data, false);\\n }\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _implementation() internal view virtual override returns (address impl) {\\n return ERC1967Upgrade._getImplementation();\\n }\\n}\\n","keccak256":"0x6309f9f39dc6f4f45a24f296543867aa358e32946cd6b2874627a996d606b3a0","license":"MIT"},"solc_0.8/openzeppelin/proxy/ERC1967/ERC1967Upgrade.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (proxy/ERC1967/ERC1967Upgrade.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\"../beacon/IBeacon.sol\\";\\nimport \\"../../interfaces/draft-IERC1822.sol\\";\\nimport \\"../../utils/Address.sol\\";\\nimport \\"../../utils/StorageSlot.sol\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n *\\n * _Available since v4.1._\\n *\\n * @custom:oz-upgrades-unsafe-allow delegatecall\\n */\\nabstract contract ERC1967Upgrade {\\n // This is the keccak-256 hash of \\"eip1967.proxy.rollback\\" subtracted by 1\\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\"eip1967.proxy.implementation\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(Address.isContract(newImplementation), \\"ERC1967: new implementation is not a contract\\");\\n StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Perform implementation upgrade\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeTo(address newImplementation) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCall(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _upgradeTo(newImplementation);\\n if (data.length > 0 || forceCall) {\\n Address.functionDelegateCall(newImplementation, data);\\n }\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n // Upgrades from old implementations will perform a rollback test. This test requires the new\\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\\n // this special case will break upgrade paths from old UUPS implementation to new ones.\\n if (StorageSlot.getBooleanSlot(_ROLLBACK_SLOT).value) {\\n _setImplementation(newImplementation);\\n } else {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n require(slot == _IMPLEMENTATION_SLOT, \\"ERC1967Upgrade: unsupported proxiableUUID\\");\\n } catch {\\n revert(\\"ERC1967Upgrade: new implementation is not UUPS\\");\\n }\\n _upgradeToAndCall(newImplementation, data, forceCall);\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\"eip1967.proxy.admin\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _getAdmin() internal view virtual returns (address) {\\n return StorageSlot.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n require(newAdmin != address(0), \\"ERC1967: new admin is the zero address\\");\\n StorageSlot.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n */\\n function _changeAdmin(address newAdmin) internal {\\n emit AdminChanged(_getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is bytes32(uint256(keccak256(\'eip1967.proxy.beacon\')) - 1)) and is validated in the constructor.\\n */\\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Emitted when the beacon is upgraded.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function _getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(_BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n require(Address.isContract(newBeacon), \\"ERC1967: new beacon is not a contract\\");\\n require(Address.isContract(IBeacon(newBeacon).implementation()), \\"ERC1967: beacon implementation is not a contract\\");\\n StorageSlot.getAddressSlot(_BEACON_SLOT).value = newBeacon;\\n }\\n\\n /**\\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\\n *\\n * Emits a {BeaconUpgraded} event.\\n */\\n function _upgradeBeaconToAndCall(\\n address newBeacon,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n if (data.length > 0 || forceCall) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n }\\n }\\n}\\n","keccak256":"0x17668652127feebed0ce8d9431ef95ccc8c4292f03e3b8cf06c6ca16af396633","license":"MIT"},"solc_0.8/openzeppelin/proxy/Proxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (proxy/Proxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM\\n * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to\\n * be specified by overriding the virtual {_implementation} function.\\n *\\n * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a\\n * different contract through the {_delegate} function.\\n *\\n * The success and return data of the delegated call will be returned back to the caller of the proxy.\\n */\\nabstract contract Proxy {\\n /**\\n * @dev Delegates the current call to `implementation`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _delegate(address implementation) internal virtual {\\n assembly {\\n // Copy msg.data. We take full control of memory in this inline assembly\\n // block because it will not return to Solidity code. We overwrite the\\n // Solidity scratch pad at memory position 0.\\n calldatacopy(0, 0, calldatasize())\\n\\n // Call the implementation.\\n // out and outsize are 0 because we don\'t know the size yet.\\n let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\\n\\n // Copy the returned data.\\n returndatacopy(0, 0, returndatasize())\\n\\n switch result\\n // delegatecall returns 0 on error.\\n case 0 {\\n revert(0, returndatasize())\\n }\\n default {\\n return(0, returndatasize())\\n }\\n }\\n }\\n\\n /**\\n * @dev This is a virtual function that should be overriden so it returns the address to which the fallback function\\n * and {_fallback} should delegate.\\n */\\n function _implementation() internal view virtual returns (address);\\n\\n /**\\n * @dev Delegates the current call to the address returned by `_implementation()`.\\n *\\n * This function does not return to its internall call site, it will return directly to the external caller.\\n */\\n function _fallback() internal virtual {\\n _beforeFallback();\\n _delegate(_implementation());\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other\\n * function in the contract matches the call data.\\n */\\n fallback() external payable virtual {\\n _fallback();\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data\\n * is empty.\\n */\\n receive() external payable virtual {\\n _fallback();\\n }\\n\\n /**\\n * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`\\n * call, or as part of the Solidity `fallback` or `receive` functions.\\n *\\n * If overriden should call `super._beforeFallback()`.\\n */\\n function _beforeFallback() internal virtual {}\\n}\\n","keccak256":"0xd5d1fd16e9faff7fcb3a52e02a8d49156f42a38a03f07b5f1810c21c2149a8ab","license":"MIT"},"solc_0.8/openzeppelin/proxy/beacon/IBeacon.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {BeaconProxy} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n","keccak256":"0xd50a3421ac379ccb1be435fa646d66a65c986b4924f0849839f08692f39dde61","license":"MIT"},"solc_0.8/openzeppelin/proxy/transparent/TransparentUpgradeableProxy.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/transparent/TransparentUpgradeableProxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\"../ERC1967/ERC1967Proxy.sol\\";\\n\\n/**\\n * @dev This contract implements a proxy that is upgradeable by an admin.\\n *\\n * To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector\\n * clashing], which can potentially be used in an attack, this contract uses the\\n * https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two\\n * things that go hand in hand:\\n *\\n * 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if\\n * that call matches one of the admin functions exposed by the proxy itself.\\n * 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the\\n * implementation. If the admin tries to call a function on the implementation it will fail with an error that says\\n * \\"admin cannot fallback to proxy target\\".\\n *\\n * These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing\\n * the admin, so it\'s best if it\'s a dedicated account that is not used for anything else. This will avoid headaches due\\n * to sudden errors when trying to call a function from the proxy implementation.\\n *\\n * Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way,\\n * you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.\\n */\\ncontract TransparentUpgradeableProxy is ERC1967Proxy {\\n /**\\n * @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and\\n * optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}.\\n */\\n constructor(\\n address _logic,\\n address admin_,\\n bytes memory _data\\n ) payable ERC1967Proxy(_logic, _data) {\\n assert(_ADMIN_SLOT == bytes32(uint256(keccak256(\\"eip1967.proxy.admin\\")) - 1));\\n _changeAdmin(admin_);\\n }\\n\\n /**\\n * @dev Modifier used internally that will delegate the call to the implementation unless the sender is the admin.\\n */\\n modifier ifAdmin() {\\n if (msg.sender == _getAdmin()) {\\n _;\\n } else {\\n _fallback();\\n }\\n }\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the\\n * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function admin() external ifAdmin returns (address admin_) {\\n admin_ = _getAdmin();\\n }\\n\\n /**\\n * @dev Returns the current implementation.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the\\n * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`\\n */\\n function implementation() external ifAdmin returns (address implementation_) {\\n implementation_ = _implementation();\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}.\\n */\\n function changeAdmin(address newAdmin) external virtual ifAdmin {\\n _changeAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}.\\n */\\n function upgradeTo(address newImplementation) external ifAdmin {\\n _upgradeToAndCall(newImplementation, bytes(\\"\\"), false);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy, and then call a function from the new implementation as specified\\n * by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the\\n * proxied contract.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}.\\n */\\n function upgradeToAndCall(address newImplementation, bytes calldata data) external payable ifAdmin {\\n _upgradeToAndCall(newImplementation, data, true);\\n }\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _admin() internal view virtual returns (address) {\\n return _getAdmin();\\n }\\n\\n /**\\n * @dev Makes sure the admin cannot access the fallback function. See {Proxy-_beforeFallback}.\\n */\\n function _beforeFallback() internal virtual override {\\n require(msg.sender != _getAdmin(), \\"TransparentUpgradeableProxy: admin cannot fallback to proxy target\\");\\n super._beforeFallback();\\n }\\n}\\n","keccak256":"0x140055a64cf579d622e04f5a198595832bf2cb193cd0005f4f2d4d61ca906253","license":"MIT"},"solc_0.8/openzeppelin/utils/Address.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn\'t rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity\'s `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\"Address: insufficient balance\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\"\\");\\n require(success, \\"Address: unable to send value, recipient may have reverted\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCall(target, data, \\"Address: low-level call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\"Address: low-level call with value failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\"Address: insufficient balance for call\\");\\n require(isContract(target), \\"Address: call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\"Address: low-level static call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n require(isContract(target), \\"Address: static call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\"Address: low-level delegate call failed\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(isContract(target), \\"Address: delegate call to non-contract\\");\\n\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verifies that a low level call was successful, and revert if it wasn\'t, either by bubbling the\\n * revert reason using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n }\\n}\\n","keccak256":"0x3777e696b62134e6177440dbe6e6601c0c156a443f57167194b67e75527439de","license":"MIT"},"solc_0.8/openzeppelin/utils/StorageSlot.sol":{"content":"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\"ERC1967: new implementation is not a contract\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._\\n */\\nlibrary StorageSlot {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n}\\n","keccak256":"0xfe1b7a9aa2a530a9e705b220e26cd584e2fbdc9602a3a1066032b12816b46aca","license":"MIT"}},"version":1}',bytecode:"0x6080604052604051620011b2380380620011b2833981016040819052620000269162000519565b82816200005560017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd620005f9565b6000805160206200116b833981519152146200007557620000756200061f565b6200008382826000620000e7565b50620000b3905060017fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6104620005f9565b6000805160206200114b83398151915214620000d357620000d36200061f565b620000de8262000124565b50505062000688565b620000f2836200017f565b600082511180620001005750805b156200011f576200011d8383620001c160201b620002ff1760201c565b505b505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6200014f620001f0565b604080516001600160a01b03928316815291841660208301520160405180910390a16200017c8162000229565b50565b6200018a81620002de565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060620001e983836040518060600160405280602781526020016200118b6027913962000381565b9392505050565b60006200021a6000805160206200114b83398151915260001b6200046760201b620002731760201c565b546001600160a01b0316919050565b6001600160a01b038116620002945760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b80620002bd6000805160206200114b83398151915260001b6200046760201b620002731760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b620002f4816200046a60201b6200032b1760201c565b620003585760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016200028b565b80620002bd6000805160206200116b83398151915260001b6200046760201b620002731760201c565b60606001600160a01b0384163b620003eb5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016200028b565b600080856001600160a01b03168560405162000408919062000635565b600060405180830381855af49150503d806000811462000445576040519150601f19603f3d011682016040523d82523d6000602084013e6200044a565b606091505b5090925090506200045d82828662000479565b9695505050505050565b90565b6001600160a01b03163b151590565b606083156200048a575081620001e9565b8251156200049b5782518084602001fd5b8160405162461bcd60e51b81526004016200028b919062000653565b80516001600160a01b0381168114620004cf57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101562000507578181015183820152602001620004ed565b838111156200011d5750506000910152565b6000806000606084860312156200052f57600080fd5b6200053a84620004b7565b92506200054a60208501620004b7565b60408501519092506001600160401b03808211156200056857600080fd5b818601915086601f8301126200057d57600080fd5b815181811115620005925762000592620004d4565b604051601f8201601f19908116603f01168101908382118183101715620005bd57620005bd620004d4565b81604052828152896020848701011115620005d757600080fd5b620005ea836020830160208801620004ea565b80955050505050509250925092565b6000828210156200061a57634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052600160045260246000fd5b6000825162000649818460208701620004ea565b9190910192915050565b602081526000825180602084015262000674816040850160208701620004ea565b601f01601f19169190910160400192915050565b610ab380620006986000396000f3fe60806040526004361061005e5760003560e01c80635c60da1b116100435780635c60da1b146100a85780638f283970146100e6578063f851a440146101065761006d565b80633659cfe6146100755780634f1ef286146100955761006d565b3661006d5761006b61011b565b005b61006b61011b565b34801561008157600080fd5b5061006b61009036600461091f565b610135565b61006b6100a336600461093a565b610196565b3480156100b457600080fd5b506100bd610221565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100f257600080fd5b5061006b61010136600461091f565b610276565b34801561011257600080fd5b506100bd6102ba565b610123610347565b61013361012e610435565b61043f565b565b61013d610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816040518060200160405280600081525060006104a3565b50565b61018b61011b565b61019e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610219576102148383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250600192506104a3915050565b505050565b61021461011b565b600061022b610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610435565b905090565b61027361011b565b90565b61027e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816104ce565b60006102c4610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610463565b60606103248383604051806060016040528060278152602001610a576027913961052f565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b61034f610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f7879207461726760648201527f6574000000000000000000000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b6000610266610657565b3660008037600080366000845af43d6000803e80801561045e573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b5473ffffffffffffffffffffffffffffffffffffffff16919050565b6104ac8361067f565b6000825111806104b95750805b15610214576104c883836102ff565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6104f7610463565b6040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301520160405180910390a161018b816106cc565b606073ffffffffffffffffffffffffffffffffffffffff84163b6105d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161042c565b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516105fd91906109e9565b600060405180830381855af49150503d8060008114610638576040519150601f19603f3d011682016040523d82523d6000602084013e61063d565b606091505b509150915061064d8282866107d8565b9695505050505050565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610487565b6106888161082b565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b73ffffffffffffffffffffffffffffffffffffffff811661076f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161042c565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905550565b606083156107e7575081610324565b8251156107f75782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c9190610a05565b73ffffffffffffffffffffffffffffffffffffffff81163b6108cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e747261637400000000000000000000000000000000000000606482015260840161042c565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610792565b803573ffffffffffffffffffffffffffffffffffffffff8116811461091a57600080fd5b919050565b60006020828403121561093157600080fd5b610324826108f6565b60008060006040848603121561094f57600080fd5b610958846108f6565b9250602084013567ffffffffffffffff8082111561097557600080fd5b818601915086601f83011261098957600080fd5b81358181111561099857600080fd5b8760208285010111156109aa57600080fd5b6020830194508093505050509250925092565b60005b838110156109d85781810151838201526020016109c0565b838111156104c85750506000910152565b600082516109fb8184602087016109bd565b9190910192915050565b6020815260008251806020840152610a248160408501602087016109bd565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b29caa54336b3ee836679675e9732ec5e526fb3f803cca2fe336cc3555aba62264736f6c634300080a0033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564",deployedBytecode:"0x60806040526004361061005e5760003560e01c80635c60da1b116100435780635c60da1b146100a85780638f283970146100e6578063f851a440146101065761006d565b80633659cfe6146100755780634f1ef286146100955761006d565b3661006d5761006b61011b565b005b61006b61011b565b34801561008157600080fd5b5061006b61009036600461091f565b610135565b61006b6100a336600461093a565b610196565b3480156100b457600080fd5b506100bd610221565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100f257600080fd5b5061006b61010136600461091f565b610276565b34801561011257600080fd5b506100bd6102ba565b610123610347565b61013361012e610435565b61043f565b565b61013d610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816040518060200160405280600081525060006104a3565b50565b61018b61011b565b61019e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610219576102148383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250600192506104a3915050565b505050565b61021461011b565b600061022b610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610435565b905090565b61027361011b565b90565b61027e610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018e5761018b816104ce565b60006102c4610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026b57610266610463565b60606103248383604051806060016040528060278152602001610a576027913961052f565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b61034f610463565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f7879207461726760648201527f6574000000000000000000000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b6000610266610657565b3660008037600080366000845af43d6000803e80801561045e573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b5473ffffffffffffffffffffffffffffffffffffffff16919050565b6104ac8361067f565b6000825111806104b95750805b15610214576104c883836102ff565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6104f7610463565b6040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301520160405180910390a161018b816106cc565b606073ffffffffffffffffffffffffffffffffffffffff84163b6105d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161042c565b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516105fd91906109e9565b600060405180830381855af49150503d8060008114610638576040519150601f19603f3d011682016040523d82523d6000602084013e61063d565b606091505b509150915061064d8282866107d8565b9695505050505050565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610487565b6106888161082b565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b73ffffffffffffffffffffffffffffffffffffffff811661076f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161042c565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905550565b606083156107e7575081610324565b8251156107f75782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042c9190610a05565b73ffffffffffffffffffffffffffffffffffffffff81163b6108cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e747261637400000000000000000000000000000000000000606482015260840161042c565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610792565b803573ffffffffffffffffffffffffffffffffffffffff8116811461091a57600080fd5b919050565b60006020828403121561093157600080fd5b610324826108f6565b60008060006040848603121561094f57600080fd5b610958846108f6565b9250602084013567ffffffffffffffff8082111561097557600080fd5b818601915086601f83011261098957600080fd5b81358181111561099857600080fd5b8760208285010111156109aa57600080fd5b6020830194508093505050509250925092565b60005b838110156109d85781810151838201526020016109c0565b838111156104c85750506000910152565b600082516109fb8184602087016109bd565b9190910192915050565b6020815260008251806020840152610a248160408501602087016109bd565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b29caa54336b3ee836679675e9732ec5e526fb3f803cca2fe336cc3555aba62264736f6c634300080a0033",execute:{methodName:"initialize",args:[]},implementation:"0x9688C6c3E8523e709bC978941f0ec2D755621D27",devdoc:{details:"This contract implements a proxy that is upgradeable by an admin. To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector clashing], which can potentially be used in an attack, this contract uses the https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two things that go hand in hand: 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if that call matches one of the admin functions exposed by the proxy itself. 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the implementation. If the admin tries to call a function on the implementation it will fail with an error that says \"admin cannot fallback to proxy target\". These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing the admin, so it's best if it's a dedicated account that is not used for anything else. This will avoid headaches due to sudden errors when trying to call a function from the proxy implementation. Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way, you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.",kind:"dev",methods:{"admin()":{details:"Returns the current admin. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`"},"changeAdmin(address)":{details:"Changes the admin of the proxy. Emits an {AdminChanged} event. NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}."},constructor:{details:"Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}."},"implementation()":{details:"Returns the current implementation. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`"},"upgradeTo(address)":{details:"Upgrade the implementation of the proxy. NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}."},"upgradeToAndCall(address,bytes)":{details:"Upgrade the implementation of the proxy, and then call a function from the new implementation as specified by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the proxied contract. NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}."}},version:1},userdoc:{kind:"user",methods:{},version:1},storageLayout:{storage:[],types:null}};function Io(e){switch(e){case Eo.LOCAL:return{url:"http://localhost:8545",chainId:"31337",registry:{address:Ep.address,abi:Ep.abi},taskRegistry:{address:Tp.address,abi:Tp.abi},authorization:{address:Sp.address,abi:Sp.abi},watchTower:{address:x0.address,abi:x0.abi}};case Eo.LOCAL_DOCKER:return{url:"http://hardhat-node:8545",chainId:"31337",registry:{address:Ep.address,abi:Ep.abi},taskRegistry:{address:Tp.address,abi:Tp.abi},authorization:{address:Sp.address,abi:Sp.abi},watchTower:{address:x0.address,abi:x0.abi}};case Eo.TESTNET:return{url:process.env.RPC_URL||"https://api.avax-test.network/ext/bc/C/rpc",chainId:"43113",registry:{address:Wx.address,abi:Wx.abi},taskRegistry:{address:Gx.address,abi:Gx.abi},authorization:{address:Vx.address,abi:Vx.abi},watchTower:{address:x0.address,abi:x0.abi}};case Eo.STAGING:return{url:process.env.RPC_URL||"https://api.avax-test.network/ext/bc/C/rpc",chainId:"43113",registry:{address:zx.address,abi:zx.abi},taskRegistry:{address:Hx.address,abi:Hx.abi},authorization:{address:jx.address,abi:jx.abi},watchTower:{address:x0.address,abi:x0.abi}};case Eo.PRODUCTION:return{url:process.env.RPC_URL||"https://api.avax.network/ext/bc/C/rpc",chainId:"43114",registry:{address:Ux.address,abi:Ux.abi},taskRegistry:{address:Fx.address,abi:Fx.abi},authorization:{address:qx.address,abi:qx.abi},watchTower:{address:x0.address,abi:x0.abi}};default:throw new Error(`Unsupported environment: ${e}`)}}import{retryAsync as VW}from"ts-retry";var ub=class{serviceLogger;provider;signer;contractAddress;nodeRegistryContract;constructor(t,n,a){this.serviceLogger=t;let r=Io(n);this.provider=a.provider,this.signer=a,this.contractAddress=r.registry.address,this.nodeRegistryContract=new LPe.Contract(this.contractAddress,r.registry.abi,this.signer)}async getChainId(){let{chainId:t}=await this.provider.getNetwork();return t.toString()}getRegistrationContractAddress(){return this.contractAddress}async registerNode(){await this.nodeRegistryContract.registerNode()}async getNodes(){return(await this.nodeRegistryContract.getNodes()).map(n=>({nodeAddress:n.nodeAddress,blockNumber:n.blockNumber,timestamp:n.timestamp}))}async getNodeCount(){return await this.nodeRegistryContract.getNodeCount()}async deRegister(){return await this.nodeRegistryContract.deRegister()}async deRegisterAddress(t){await this.nodeRegistryContract.deRegisterAddress(t)}async getNodeAtIndex(t){let n=await this.nodeRegistryContract.getNodeAtIndex(t);return{nodeAddress:n.nodeAddress,blockNumber:n.blockNumber,timestamp:n.timestamp}}async getNodeIndexByAddress(t){return await this.nodeRegistryContract.getNodeIndexByAddress(t)}async deRegisterAll(){await this.nodeRegistryContract.deRegisterAll()}async getBlockInfo(){let t=await this.provider.getBlock("latest");if(!t)throw"Couldn't get latest block information";if(!t.hash)throw"Couldn't get block hash";return{hash:t.hash,number:t.number,timestamp:t.timestamp}}async getBlockHash(){let t=await this.provider.getBlock("latest");return t?t.hash:null}async waitForBlocks(t){let a=(await VW(async()=>await this.provider.getBlock("latest"),{delay:2e3,maxTry:Number.MAX_SAFE_INTEGER,until:r=>r!=null})).number+t;await VW(async()=>await this.provider.getBlock("latest"),{delay:2e3,maxTry:Number.MAX_SAFE_INTEGER,until:r=>r!=null&&r.number>=a})}async sendSignedTransaction(t){if(!this.signer)throw"Private key wasn't provided";let a=await(await this.signer.sendTransaction({data:t})).wait();if(a)return a.blockHash;throw new Error("Transaction receipt is null")}async signTransaction(t){if(!this.signer)throw"Private key wasn't provided";return await this.signer.signTransaction(t)}async estimateGas(t){try{return await this.provider.estimateGas(t)}catch(n){throw console.error("Error estimating gas:",n),n}}};import{ethers as Kx}from"ethers";import{retryAsync as GW}from"ts-retry";var pb=class{serviceLogger;provider;signer;taskRegistryAddress;taskRegistryContract;transactionSuccess=1;constructor(t,n,a){this.serviceLogger=t;let r=Io(n);this.provider=a.provider,this.signer=a,this.taskRegistryAddress=r.taskRegistry.address,this.taskRegistryContract=new Kx.Contract(this.taskRegistryAddress,r.taskRegistry.abi,this.signer)}getTaskRegistryContractAddress(){return this.taskRegistryAddress}async getEIP712Domain(){return{name:"TaskRegistry",version:"1",chainId:Number(await this.provider.getNetwork().then(t=>t.chainId)),verifyingContract:this.taskRegistryAddress}}async registerTaskNamespace(t){if((await(await this.taskRegistryContract.registerTaskNamespace(t)).wait()).status==this.transactionSuccess)return!0;throw new Error("Error registering task namespace")}async nonces(t){return await this.taskRegistryContract.nonces(t)}async getNamespaceOwner(t){return await this.taskRegistryContract.namespaceOwners(t)}async registerTaskNamespaceWithSignature(t){let n=await this.provider.getFeeData(),a=null;n.gasPrice&&(a=n.gasPrice*2n);let i=await this.taskRegistryContract.registerTaskNamespaceWithSignature.estimateGas(t.user,t.namespace,t.deadline,t.signatureMeta,{gasPrice:a})*2n,s=await GW(async()=>await(await this.taskRegistryContract.registerTaskNamespaceWithSignature(t.user,t.namespace,t.deadline,t.signatureMeta,{gasPrice:a,gasLimit:i})).wait(),{delay:1e3,maxTry:10,until:o=>o.messages&&(o.messages.includes("nonce too")||o.messages.includes("replacement transaction underpriced"))?(this.serviceLogger&&this.serviceLogger.error(`${o.messages}`),this.signer instanceof Kx.NonceManager&&this.signer.reset(),!1):!0});if(s.status==this.transactionSuccess)return s;throw new Error("Error registering task namespace")}async transferTaskNamespace(t,n){if((await(await this.taskRegistryContract.transferTaskNamespace(t,n)).wait()).status==this.transactionSuccess)return!0;throw new Error("Error transferring task namespace")}async grantNamespaceAccess(t,n){if((await(await this.taskRegistryContract.grantNamespaceAccess(t,n)).wait()).status==this.transactionSuccess)return!0;throw new Error("Error granting task namespace")}async revokeNamespaceAccess(t,n){if((await(await this.taskRegistryContract.revokeNamespaceAccess(t,n)).wait()).status==this.transactionSuccess)return!0;throw new Error("Error revoking task namespace")}async setTaskLabel(t,n,a,r){if(r.length>128)throw new Error("Label exceeds maximum length of 128 chars");if((await(await this.taskRegistryContract.setTaskLabel(t,n,a,r)).wait()).status==this.transactionSuccess)return!0;throw new Error("Error setting task label")}async registerTask(t,n,a){if((await(await this.taskRegistryContract.registerTask(t,n,a)).wait()).status==this.transactionSuccess)return!0;throw new Error("Error registering task")}async registerTaskWithSignature(t){let n=await this.provider.getFeeData(),a=null;n.gasPrice&&(a=n.gasPrice*2n);let i=await this.taskRegistryContract.registerTaskWithSignature.estimateGas(t.user,t.namespace,t.taskName,t.task,t.deadline,t.signatureMeta,{gasPrice:a})*2n,s=await GW(async()=>await(await this.taskRegistryContract.registerTaskWithSignature(t.user,t.namespace,t.taskName,t.task,t.deadline,t.signatureMeta,{gasPrice:a,gasLimit:i})).wait(),{delay:1e3,maxTry:10,until:o=>o.messages&&(o.messages.includes("nonce too")||o.messages.includes("replacement transaction underpriced"))?(this.serviceLogger&&this.serviceLogger.error(`${o.messages}`),this.signer instanceof Kx.NonceManager&&this.signer.reset(),!1):!0});if(s.status==this.transactionSuccess)return s;throw new Error("Error registering task")}async getTask(t,n){let a=await this.taskRegistryContract.getTask(t,n);return{namespace:t,taskId:a[0][0],version:Number(a[2]),meta:a[0][1],nameSpaceOwner:a[1]}}async getTaskByLabel(t,n,a){let r=await this.taskRegistryContract.getTaskByLabel(t,n,a);return{namespace:t,taskId:r[0][0],version:Number(r[2]),label:a,meta:r[0][1],nameSpaceOwner:r[1]}}async getTaskByVersion(t,n,a){let r=await this.taskRegistryContract.getTaskByVersion(t,n,a);return{namespace:t,taskId:r[0][0],version:Number(a),meta:r[0][1],nameSpaceOwner:r[1]}}async disableTask(t,n,a){if((await(await this.taskRegistryContract.disableTask(t,n,a)).wait()).status==this.transactionSuccess)return!0;throw new Error("Error disabling task")}async enableTask(t,n,a){if((await(await this.taskRegistryContract.enableTask(t,n,a)).wait()).status==this.transactionSuccess)return!0;throw new Error("Error enabling task")}async isTaskRevoked(t){return await this.taskRegistryContract.isTaskRevoked(t)}async getLatestVersion(t,n){let a=Number(await this.taskRegistryContract.getLatestVersion(t,n));if(a==0)throw`Task (${n}) not found in namespace (${t})`;return a}async getLatestActiveVersion(t,n){return Number(await this.taskRegistryContract.getLatestActiveVersion(t,n))}};import{ethers as Ip}from"ethers";import{retryAsync as hb}from"ts-retry";var mb=class{serviceLogger;provider;signer;authorizationAddress;authorizationContract;transactionSuccess=1;constructor(t,n,a){this.serviceLogger=t;let r=Io(n);this.provider=a.provider,this.signer=a,this.authorizationAddress=r.authorization.address,this.authorizationContract=new Ip.Contract(this.authorizationAddress,r.authorization.abi,this.signer)}getAuthorizationContractAddress(){return this.authorizationAddress}async getEIP712Domain(){return{name:"Authorization",version:"1",chainId:Number(await this.provider.getNetwork().then(t=>t.chainId)),verifyingContract:this.authorizationAddress}}async nonces(t){return await this.authorizationContract.nonces(t)}async grantAuthorization(t,n){if((await(await this.authorizationContract.grant(t,n)).wait()).status==this.transactionSuccess)return!0;throw new Error("Error granting authorization")}async grantAuthorizationWithSignature(t){let n=await this.provider.getFeeData(),a=null;if(n.gasPrice&&(a=n.gasPrice*2n),(await hb(async()=>await(await this.authorizationContract.grantWithSignature(t.user,t.namespace,t.deadline,t.signatureMeta,{gasPrice:a})).wait(),{delay:1e3,maxTry:10,until:i=>i.messages&&(i.messages.includes("Nonce too")||i.messages.includes("replacement transaction underpriced"))?(this.serviceLogger&&this.serviceLogger.error(`${i.messages}`),this.signer instanceof Ip.NonceManager&&this.signer.reset(),!1):!0})).status==this.transactionSuccess)return!0;throw new Error("Error granting authorization with signature")}async revokeAuthorization(t,n){if((await(await this.authorizationContract.revoke(t,n)).wait()).status==this.transactionSuccess)return!0;throw new Error("Error revoking authorization")}async revokeAuthorizationWithSignature(t){if((await hb(async()=>await(await this.authorizationContract.revokeWithSignature(t.user,t.namespace,t.deadline,t.signatureMeta)).wait(),{delay:1e3,maxTry:10,until:a=>a.messages&&(a.messages.includes("Nonce too")||a.messages.includes("replacement transaction underpriced"))?(this.serviceLogger&&this.serviceLogger.error(`${a.messages}`),this.signer instanceof Ip.NonceManager&&this.signer.reset(),!1):!0})).status==this.transactionSuccess)return!0;throw new Error("Error revoking authorization with signature")}async registerAuthorization(t){if((await(await this.authorizationContract.register(t)).wait()).status==this.transactionSuccess)return!0;throw new Error("Error registering authorization")}async registerAuthorizationWithSignature(t){let n=await this.provider.getFeeData(),a=null;n.gasPrice&&(a=n.gasPrice*2n);let i=await this.authorizationContract.registerWithSignature.estimateGas(t.user,t.apiKeyHash,t.deadline,t.signatureMeta,{gasPrice:a})*2n,s=await hb(async()=>await(await this.authorizationContract.registerWithSignature(t.user,t.apiKeyHash,t.deadline,t.signatureMeta,{gasPrice:a,gasLimit:i})).wait(),{delay:1e3,maxTry:10,until:o=>o.messages&&(o.messages.includes("Nonce too")||o.messages.includes("replacement transaction underpriced"))?(this.serviceLogger&&this.serviceLogger.error(`${o.messages}`),this.signer instanceof Ip.NonceManager&&this.signer.reset(),!1):!0});if(s.status==this.transactionSuccess)return s;throw new Error("Error registering authorization with signature")}async deRegisterAuthorization(t){if((await(await this.authorizationContract.deregister(t)).wait()).status==this.transactionSuccess)return!0;throw new Error("Error deregistering authorization")}async deRegisterAuthorizationWithSignature(t){if((await hb(async()=>await(await this.authorizationContract.deregisterWithSignature(t.user,t.apiKeyHash,t.deadline,t.signatureMeta)).wait(),{delay:1e3,maxTry:10,until:a=>a.messages&&(a.messages.includes("Nonce too")||a.messages.includes("replacement transaction underpriced"))?(this.serviceLogger&&this.serviceLogger.error(`${a.messages}`),this.signer instanceof Ip.NonceManager&&this.signer.reset(),!1):!0})).status==this.transactionSuccess)return!0;throw new Error("Error deregistering authorization with signature")}async isAuthorized(t,n){return await this.authorizationContract.isAuthorized(t,n)}async getPayerAddress(t){return await this.authorizationContract.getPayer(t)}};import{ethers as BPe}from"ethers";function qPe(e){return e&&typeof e.name=="string"&&typeof e.version=="string"&&typeof e.chainId=="number"&&typeof e.verifyingContract=="string"}var bb=class{provider;signer;constructor(t,n){this.provider=n.provider,this.signer=n}async signMeta(t,n,a){if(!qPe(t))throw new Error("Invalid EIP712Domain");return await this.signer.signTypedData(t,n,a)}async getCurrentNonce(){return await this.signer.getNonce()}async reSyncNonceManager(){this.signer instanceof BPe.NonceManager&&this.signer.reset()}};import{ethers as yb}from"ethers";var wp=class extends Ap{nodeRegistry;taskRegistry;authorization;utils;signer;constructor(t,n,a){if(super(t,n,a),a===void 0)throw new Error("Private key wasn't provided");let r=Io(n),i=new yb.Network(n,r.chainId),s=new yb.JsonRpcProvider(`${r.url}`,i,{staticNetwork:i}),o=new yb.Wallet(a,s);this.signer=new yb.NonceManager(o),this.nodeRegistry=new ub(this.serviceLogger,n,this.signer),this.taskRegistry=new pb(this.serviceLogger,n,this.signer),this.authorization=new mb(this.serviceLogger,n,this.signer),this.utils=new bb(n,this.signer)}};import{ethers as jPe}from"ethers";var Nr=e=>{throw FPe.isAxiosError(e)?e.response?e.response.data.message.includes("Entitlement Validation Error")?Jt.USER_NO_REGISTERED:`${e.response.data.message||e.response.data}`:e.request?`Server is not responding: ${e.message}
214
- ${e.config?.method} - ${e.config?.url}`:e.message:e.message};function Ta(e,t){if(e!==e.toLowerCase())throw new Error(`${t} must be lowercase.`)}function dn(e){return xp.create(null,bo.EVM,e,At("privateKey"))}function Mp(e){if(!jPe.isAddress(e)||e.length!==42||!e.startsWith("0x"))throw new Error("Must be a valid ethereum address. (ENS not supported yet)")}async function gb(){try{return await UPe({onlyHttps:!0})}catch{return"unknown"}}function Mn(){return new Date().toUTCString().replace(",","")}function WW(e,t,n,a,r){let i=At("address");return{distinct_id:i,user_ip:n,date_time:Mn(),os_version:a,node_version:process.version,cli_version:r,taskId:e,input:t,wallet_address:i}}function KW(e,t,n){let a=At("address");return{distinct_id:a,user_ip:e,date_time:Mn(),os_version:t,node_version:process.version,cli_version:n,wallet_address:a}}function YW(e,t,n,a,r,i,s){let o=At("address");return{distinct_id:o,user_ip:r,date_time:Mn(),os_version:i,node_version:process.version,cli_version:s,taskId:e,task_name:t,namespace:n,label:a,wallet_address:o}}function ZW(e,t,n,a,r){let i=At("address");return{distinct_id:i,user_ip:n,date_time:Mn(),os_version:a,node_version:process.version,cli_version:r,manifest:e,authType:t,wallet_address:i}}function XW(e,t,n,a){let r=At("address");return{distinct_id:r,user_ip:t,date_time:Mn(),os_version:n,node_version:process.version,cli_version:a,manifest:e,wallet_address:r}}function JW(e,t,n,a,r,i,s){let o=At("address");return{distinct_id:o,user_ip:r,date_time:Mn(),os_version:i,node_version:process.version,cli_version:s,taskId:e,namespace:t,taskname:n,authType:a,wallet_address:o}}function ud(e,t,n,a,r){let i=At("address"),s={distinct_id:i,user_ip:t,date_time:Mn(),os_version:n,node_version:process.version,cli_version:a,namespace:e,wallet_address:i};return r&&(s.address_to=r),s}function Cp(e,t,n,a,r,i,s){let o=At("address");return{distinct_id:o,user_ip:n,date_time:Mn(),os_version:a,node_version:process.version,cli_version:r,namespace:e,wallet_address:o,taskname:t,label:i,version:s}}function vb(e,t,n,a){let r=At("address");return{distinct_id:r,user_ip:t,date_time:Mn(),os_version:n,node_version:process.version,cli_version:a,api_key:e,wallet_address:r}}function QW(e,t,n,a,r){let i=At("address");return{distinct_id:i,user_ip:n,date_time:Mn(),os_version:a,node_version:process.version,cli_version:r,namespace:e,address_check:t,wallet_address:i}}function cs(e){let t=Ga(),n=t!==null,a=0;switch(!n||n&&(!t.privateKey||!t.address)?a=1:a=2,a){case 1:console.error(Jt.USER_NO_REGISTERED),process.exit(1);break;case 2:{e=ds.createSignedBody(e,t.privateKey,t.address);break}}return e}async function tK(e,t){if(!fc.existsSync(e))throw"Invalid source code path";let a=fc.readdirSync(e);if(a.length===0)throw"No files found in directory";let r=new eK.default;for(let d of a){let p=e+`/${d}`,b=fc.readFileSync(p),w=HPe.basename(p);r.append("files",b,w)}r.append("lang",t);let i={files:a,lang:t},s=cs(i),o=await Rr();return r.append("walletAddress",s.walletAddress),r.append("signature",JSON.stringify(s.signature)),r.append("fmpayload",JSON.stringify(i)),(await o.post("api/filesystem/pushLocal",r,{headers:{...r.getHeaders()}}).catch(d=>{Nr(d)})).data}var Yx=async(e,t)=>{let a=`./tmp.${zPe()}`;try{Wa.mkdirSync(a);let r=dc.join(process.cwd(),t);if(!Wa.existsSync(r))throw"Task path doesn't exist";if(e===Fn.C||e===Fn.RUST||e===Fn.JS||e===Fn.PYTHON){let l="config.json",d=dc.join(r,l);Wa.existsSync(d)||Wa.writeFileSync(d,JSON.stringify({run:{limits:{call:CP,frame:PP,gas:MP,memory:kP}}})),Wa.copyFileSync(d,dc.join(a,l));let p="fs.tar",b=dc.join(r,p);Wa.existsSync(b)&&Wa.copyFileSync(b,dc.join(a,p))}await eb.createBuild(e).build(t,a);let o=await tK(a,e);return Wa.rmSync(a,{recursive:!0}),o}catch(r){throw Wa.rmSync(a,{recursive:!0}),r}};import*as LK from"fs";import uK from"axios";import nke from"https";var{parse:VPe,stringify:GPe}=JSON,{keys:BWe}=Object,WPe=String,KPe="string";var nK="object",YPe=(e,t)=>t;var aK=(e,t,n)=>{let a=WPe(t.push(n)-1);return e.set(n,a),a};var ZPe=(e,t,n)=>{let a=t&&typeof t===nK?(p,b)=>p===""||-1<t.indexOf(p)?b:void 0:t||YPe,r=new Map,i=[],s=[],o=+aK(r,i,a.call({"":e},"",e)),l=!o;for(;o<i.length;)l=!0,s[o]=GPe(i[o++],d,n);return"["+s.join(",")+"]";function d(p,b){if(l)return l=!l,b;let w=a.call(this,p,b);switch(typeof w){case nK:if(w===null)return w;case KPe:return r.get(w)||aK(r,i,w)}return w}},Zx=e=>VPe(ZPe(e));var ake=dt(Dd(),1),VWe=dt(a8(),1),YWe=dt(Dd(),1),QWe=dt(w8(),1),nw=dt(Sa(),1),rKe=dt(po(),1),bf=dt(mo(),1),be=dt(Sa(),1),Ka=dt(Sa(),1),sKe=dt(po(),1),oe=dt(Sa(),1),w0=dt(mo(),1),oKe=dt(po(),1),xe=dt(Sa(),1),jn=dt(mo(),1),fKe=dt(po(),1),pr=dt(Sa(),1),iw=dt(mo(),1),Oe=dt(Sa(),1);import"node:os";import{v4 as ike}from"uuid";import"axios";import"axios";var pKe=dt(dd(),1),hKe=dt(dd(),1);var mKe=dt(dd(),1);var NK=dt(Jx(),1);import yke from"openapi-enforcer";import{isIP as gke}from"net";var tke=Object.defineProperty,Re=(e,t)=>tke(e,"name",{value:t,configurable:!0}),{format:GWe,createLogger:WWe,transports:KWe}=ake;process.setMaxListeners(0);var wb;(function(e){e.RUST="rs",e.C="c",e.JS="js",e.API="api",e.PYTHON="py"})(wb||(wb={}));var Qx;(function(e){e.API="api"})(Qx||(Qx={}));var rke={...wb,...Qx},XWe=Object.values(rke),JWe=Object.values(wb),pK;(function(e){e.JSON="application/json",e.WASM="application/wasm",e.PLAIN_TXT="text/plain",e.JS="application/x-javascript",e.TAR="application/x-tar"})(pK||(pK={}));var hK;(function(e){e.JSON="json",e.WASM="wasm",e.PLAIN_TXT="txt",e.JS="js",e.DTA="dta",e.PY="py",e.TAR="tar"})(hK||(hK={}));var mK;(function(e){e.LEDGER="ledger",e.HTTP_ADAPTER="http-adapter",e.EVENTS_ADAPTER="events-adapter",e.FILESYSTEM_ADAPTER="filesystem-adapter",e.WASM_CHECKPOINTER="wasm-checkpointer",e.WASM_INSTRUMENTER="wasm-instrumenter",e.WASM_RUNNER="wasm-runner"})(mK||(mK={}));var us;(function(e){e.FAILED="failed",e.SUCCEED="succeed",e.RUNNING="running"})(us||(us={}));var bK;(function(e){e.MINIO="minio",e.S3="s3"})(bK||(bK={}));var yK;(function(e){e.TASK_CREATED="task_created",e.TASK_SOLVED="task_solved",e.FILE_SYSTEM="file_system",e.DISPATCH_TASK="dispatch_task",e.DISPATCH_API_TASK="dispatch_api_task",e.MESSAGE_SAVED="message_saved",e.COMPUTED_OUTCOME="computed_outcome",e.API_FETCH="api_fetch",e.API_OUTCOME="api_outcome",e.API_SOLVED="api_solved",e.READY_TO_SHUTDOWN="ready_to_shutdown",e.INVOICE="invoice",e.ENTITLEMENT="entitlement",e.HEALTH_CHECK="health_check",e.RUNNER_TASK_EXECUTED="runner_task_executed",e.DEPLOYER_EXECUTE_TASK="deployer_execute_task",e.DEPLOYER_TASK_EXECUTED="deployer_task_executed",e.HTTP_ADAPTER_TASK_EXECUTED="http_adapter_task_executed",e.HTTP_ADAPTER_TASK_INSTRUMENTED="http_adapter_task_instrumented",e.HTTP_ADAPTER_TASK_PUSHED="http_adapter_task_pushed",e.HTTP_ADAPTER_TASK_PULLED="http_adapter_task_pulled",e.HTTP_ADAPTER_TASK_CHECKPOINTED="http_adapter_task_checkpointed",e.HTTP_ADAPTER_TASK_CHECKPOINTS_LISTED="http_adapter_task_checkpoints_listed",e.HTTP_ADAPTER_READY_TO_SHUTDOWN="http_adapter_ready_to_shutdown",e.EVENTS_ADAPTER_TASK_EXECUTED="events_adapter_task_executed",e.EVENTS_ADAPTER_TASK_INSTRUMENTED="events_adapter_task_instrumented",e.EVENTS_ADAPTER_TASK_PUSHED="events_adapter_task_pushed",e.EVENTS_ADAPTER_TASK_PULLED="events_adapter_task_pulled",e.EVENTS_ADAPTER_TASK_CHECKPOINTED="events_adapter_task_checkpointed",e.EVENTS_ADAPTER_TASK_CHECKPOINTS_LISTED="events_adapter_task_checkpoints_listed",e.EVENTS_ADAPTER_COMPUTED_OUTCOME="events_adapter_compute_outcome",e.EVENTS_ADAPTER_TASK_CREATED="events_adapter_task_created",e.EVENTS_ADAPTER_NODE_DEREGISTERED="events_adapter_node_deregistered",e.EVENTS_ADAPTER_SERVICE_STARTED_CHECK="events_adapter_service_started_check",e.DISPATCHER_TASK_SOLVED_CLEAR="dispatcher_task_solved_clear",e.DISPATCHER_TASK_CREATED="dispatcher_task_created",e.WASM_INSTRUMENTER_INSTRUMENT_TASK="wasm_instrumenter_instrument_task",e.WASM_INSTRUMENTER_TASK_INSTRUMENTED="wasm_instrumenter_task_instrumented",e.FILESYSTEM_ADAPTER_PUSH_TASK="filesystem_adapter_push_task",e.FILESYSTEM_ADAPTER_TASK_PUSHED="filesystem_adapter_task_pushed",e.FILESYSTEM_ADAPTER_PULL_TASK="filesystem_adapter_pull_task",e.FILESYSTEM_ADAPTER_TASK_PULLED="filesystem_adapter_task_pulled",e.FILESYSTEM_ADAPTER_SERVICE_STARTED_CHECK="filesystem_adapter_service_started_check",e.WASM_CHECKPOINTER_CHECKPOINT_TASK="wasm_checkpointer_checkpoint_task",e.WASM_CHECKPOINTER_LIST_TASK_CHECKPOINTS="wasm_checkpointer_list_task_checkpoints",e.TRANSCRIPT_WRITER_SAVE_MESSAGE="transcript_writer_save_message",e.TRANSCRIPT_WRITER_INVOICE="transcript_writer_save_invoice",e.SEQUENCER_MESSAGE_SAVED="sequencer_message_saved",e.VERIFICATION_MESSAGE_SAVED="verification_message_saved",e.VERIFICATION_VALIDATE_MESSAGE="verification_validate_message",e.VERIFICATION_REVEAL_SOLUTION="verification_reveal_solution",e.VERIFICATION_ADJUDICATION_OUTCOME="verification_adjudication_outcome",e.VERIFICATION_ERRORS="verification_errors",e.LEDGER_SHUTDOWN="ledger_shutdown",e.LEDGER_SERVICE_STARTED="ledger_service_started"})(yK||(yK={}));var Dr;(function(e){e.TASK_INSTRUMENTED="task_instrumented",e.TASK_CREATED="task_created",e.API_TASK_CREATED="api_task_created",e.TASK_EXECUTED="task_executed",e.TASK_PUSHED="task_pushed",e.TASK_PULLED="task_pulled",e.TASK_CHECKPOINTED="task_checkpointed",e.TASK_CHECKPOINTS_LISTED="task_checkpoints_listed",e.COMPUTED_OUTCOME="computed_outcome",e.ADJUDICATION_OUTCOME="adjudication_outcome",e.MESSAGE_SAVED="message_saved",e.TASK_SOLVED="task_solved",e.TASK_SOLVED_CLEAR="task_solved_clear",e.NODE_OUTCOME="node_outcome",e.PLATFORM_ERRORS="errors",e.REVEAL_SOLUTIONS="reveal_solutions",e.SOLUTIONS_REVEALED="solutions_revealed",e.API_FETCHER_OUTCOME="api_fetcher_outcome",e.API_SOLVED="api_solved",e.API_OUTCOME="api_outcome",e.NODE_DEREGISTERED="node_deregistered",e.READY_TO_SHUTDOWN="ready_to_shutdown",e.EXECUTION_COMPLETED="execution_completed",e.SERVICE_STARTED="service_started",e.INVOICE="invoice",e.ENTITLEMENT_REQ="entitlement_req",e.ENTITLEMENT_RES="entitlement_res",e.HEALTH_CHECK="health_check",e.EXECUTION_METADATA="execution_metadata"})(Dr||(Dr={}));var gK;(function(e){e.SHUTDOWN="shutdown",e.LIST_TASK_CHECKPOINTS="list_task_checkpoints",e.EXECUTE_TASK="execute_task",e.CHECKPOINT_TASK="checkpoint_task",e.INSTRUMENT_TASK="instrument_task",e.PUSH_TASK="push_task",e.PULL_TASK="pull_task",e.DISPATCH_TASK="dispatch_task",e.DISPATCH_API_TASK="dispatch_api_task",e.SAVE_MESSAGE="save_message",e.REVEAL_SOLUTION="reveal_solution",e.VALIDATE_MESSAGE="validate_message",e.API_FETCH="api_fetch",e.ENTITLEMENT="entitlement",e.HEALTH_CHECK="health_check",e.ADJUDICATION_OUTCOME="adjudication_outcome"})(gK||(gK={}));var vK;(function(e){e.ERRORS="errors",e.TASK_INSTRUMENTED="task_instrumented",e.TASK_CREATED="task_created",e.API_TASK_CREATED="api_task_created",e.TASK_EXECUTED="task_executed",e.TASK_PUSHED="task_pushed",e.TASK_SOLVED="task_solved",e.TASK_SOLVED_CLEAR="task_solved_clear",e.TASK_PULLED="task_pulled",e.TASK_CHECKPOINTED="task_checkpointed",e.TASK_CHECKPOINTS_LISTED="task_checkpoints_listed",e.COMPUTED_OUTCOME="computed_outcome",e.ADJUDICATION_OUTCOME="adjudication_outcome",e.MESSAGE_SAVED="message_saved",e.API_FETCHER_OUTCOME="api_fetcher_outcome",e.API_SOLVED="api_solved",e.API_OUTCOME="api_outcome",e.NODE_DEREGISTERED="node_deregistered",e.READY_TO_SHUTDOWN="ready_to_shutdown",e.SERVICE_STARTED="service_started",e.INVOICES="invoice",e.ENTITLEMENTS_REQ="entitlement_req",e.ENTITLEMENTS_RES="entitlement_res",e.HEALTH_CHECK="health_check",e.SHUTDOWN="shutdown",e.LIST_TASK_CHECKPOINTS="list_task_checkpoints",e.EXECUTE_TASK="execute_task",e.CHECKPOINT_TASK="checkpoint_task",e.INSTRUMENT_TASK="instrument_task",e.PUSH_TASK="push_task",e.PULL_TASK="pull_task",e.DISPATCH_TASK="dispatch_task",e.DISPATCH_API_TASK="dispatch_api_task",e.SAVE_MESSAGE="save_message",e.REVEAL_SOLUTION="reveal_solution",e.VALIDATE_MESSAGE="validate_message",e.API_FETCH="api_fetch",e.DUMMY="DUMMY"})(vK||(vK={}));var _K;(function(e){e.VALIDATION_ERROR="validation_error"})(_K||(_K={}));var Ab;(function(e){e.GAME_PENDING="GamePending",e.READY_FOR_INVOICE="ReadyForInvoice",e.ERROR="Error"})(Ab||(Ab={}));var xK;(function(e){let t;(function(a){a.Pay="pay",a.Charge="charge"})(t=e.Operation||(e.Operation={}));let n;(function(a){a.IS_USER_REGISTER="isUserRegister"})(n=e.EntitlementOperation||(e.EntitlementOperation={}))})(xK||(xK={}));var wK;(function(e){e.Pay="pay",e.Charge="charge"})(wK||(wK={}));var aKe=[Dr.TASK_SOLVED,Dr.TASK_CREATED,Dr.API_TASK_CREATED,Dr.NODE_OUTCOME,Dr.SOLUTIONS_REVEALED,Dr.REVEAL_SOLUTIONS,Dr.API_OUTCOME,Dr.EXECUTION_COMPLETED,Dr.EXECUTION_METADATA,Dr.ADJUDICATION_OUTCOME];function mf(){return function(e,t){(0,nw.registerDecorator)({name:"IsUnixTimestamp",target:e.constructor,propertyName:t,validator:{validate(n){let a=n,r=new Date(a);return!isNaN(r.getTime())&&a>16725312e5}}})}}Re(mf,"IsUnixTimestamp");function aw(){return function(e,t){(0,nw.registerDecorator)({name:"IsUnixTimestamp",target:e.constructor,propertyName:t,validator:{validate(n){let a=n,r=new Date(a);return!isNaN(r.getTime())&&a>1672531200}}})}}Re(aw,"IsUnixTimestampSeconds");var _t=function(e,t,n,a){var r=arguments.length,i=r<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,a);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(r<3?s(i):r>3?s(t,n,i):s(t,n))||i);return r>3&&i&&Object.defineProperty(t,n,i),i},xt=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},ew;(function(e){e.FAILED="failed",e.SUCCEED="succeed",e.RUNNING="running"})(ew||(ew={}));var pf=class{static{Re(this,"EncryptedSolution")}iv;ephemPublicKey;ciphertext;mac;constructor(e,t,n,a){this.iv=e,this.ephemPublicKey=t,this.ciphertext=n,this.mac=a}};_t([(0,be.IsNotEmpty)(),(0,be.IsString)(),xt("design:type",String)],pf.prototype,"iv",void 0);_t([(0,be.IsNotEmpty)(),(0,be.IsString)(),xt("design:type",String)],pf.prototype,"ephemPublicKey",void 0);_t([(0,be.IsNotEmpty)(),(0,be.IsString)(),xt("design:type",String)],pf.prototype,"ciphertext",void 0);_t([(0,be.IsNotEmpty)(),(0,be.IsString)(),xt("design:type",String)],pf.prototype,"mac",void 0);var Qt=class{static{Re(this,"Signature")}v;r;s;constructor(e,t,n){this.v=e,this.r=t,this.s=n}};_t([(0,be.IsNotEmpty)(),(0,be.IsNumber)(),xt("design:type",Number)],Qt.prototype,"v",void 0);_t([(0,be.IsNotEmpty)(),(0,be.IsString)(),xt("design:type",String)],Qt.prototype,"r",void 0);_t([(0,be.IsNotEmpty)(),(0,be.IsString)(),xt("design:type",String)],Qt.prototype,"s",void 0);var cc=class{static{Re(this,"ExecutionOutputMeteringLast")}memoryGrowDelta;call;frame;steps;constructor(e,t,n,a){this.call=e,this.frame=t,this.steps=n,this.memoryGrowDelta=a}};_t([(0,be.IsNumber)(),(0,be.IsOptional)(),xt("design:type",Number)],cc.prototype,"memoryGrowDelta",void 0);_t([(0,be.IsNumber)(),(0,be.IsNotEmpty)(),xt("design:type",Number)],cc.prototype,"call",void 0);_t([(0,be.IsNumber)(),(0,be.IsNotEmpty)(),xt("design:type",Number)],cc.prototype,"frame",void 0);_t([(0,be.IsNumber)(),(0,be.IsNotEmpty)(),xt("design:type",Number)],cc.prototype,"steps",void 0);var uc=class{static{Re(this,"ExecutionOutputMeteringLimits")}call;frame;gas;memory;constructor(e,t,n,a){this.call=e,this.frame=t,this.gas=n,this.memory=a}};_t([(0,be.IsNumber)(),(0,be.IsNotEmpty)(),xt("design:type",Number)],uc.prototype,"call",void 0);_t([(0,be.IsNumber)(),(0,be.IsNotEmpty)(),xt("design:type",Number)],uc.prototype,"frame",void 0);_t([(0,be.IsNumber)(),(0,be.IsNotEmpty)(),xt("design:type",Number)],uc.prototype,"gas",void 0);_t([(0,be.IsNumber)(),(0,be.IsNotEmpty)(),xt("design:type",Number)],uc.prototype,"memory",void 0);var Op=class{static{Re(this,"ExecutionOutputMeteringPeak")}call;frame;memory;constructor(e,t,n){this.call=e,this.frame=t,this.memory=n}};_t([(0,be.IsNumber)(),(0,be.IsNotEmpty)(),xt("design:type",Number)],Op.prototype,"call",void 0);_t([(0,be.IsNumber)(),(0,be.IsNotEmpty)(),xt("design:type",Number)],Op.prototype,"frame",void 0);_t([(0,be.IsNumber)(),(0,be.IsNotEmpty)(),xt("design:type",Number)],Op.prototype,"memory",void 0);var tw=class{static{Re(this,"ExecutionOutputMeteringVersions")}protocol;constructor(e){this.protocol=e}};_t([(0,be.IsString)(),(0,be.IsNotEmpty)(),xt("design:type",String)],tw.prototype,"protocol",void 0);var hf=class{static{Re(this,"ExecutionOutputMetering")}last;limits;peak;versions;constructor(e,t,n,a){this.last=e,this.limits=t,this.peak=n,this.versions=a}};_t([(0,be.ValidateNested)(),(0,bf.Type)(()=>cc),xt("design:type",cc)],hf.prototype,"last",void 0);_t([(0,be.ValidateNested)(),(0,bf.Type)(()=>uc),xt("design:type",uc)],hf.prototype,"limits",void 0);_t([(0,be.ValidateNested)(),(0,bf.Type)(()=>Op),xt("design:type",Op)],hf.prototype,"peak",void 0);_t([(0,be.IsOptional)(),(0,be.ValidateNested)(),(0,bf.Type)(()=>tw),xt("design:type",tw)],hf.prototype,"versions",void 0);var pc=class{static{Re(this,"ClearTextSolution")}senderAddress;status;output;metering;constructor(e,t,n,a){this.senderAddress=e,this.status=t,this.output=n,this.metering=a}};_t([(0,be.IsNotEmpty)(),(0,be.IsEthereumAddress)(),xt("design:type",String)],pc.prototype,"senderAddress",void 0);_t([(0,be.IsNotEmpty)(),(0,be.IsEnum)(ew),xt("design:type",String)],pc.prototype,"status",void 0);_t([(0,be.IsOptional)(),(0,be.IsString)(),xt("design:type",String)],pc.prototype,"output",void 0);_t([(0,be.IsOptional)(),(0,be.ValidateNested)(),(0,bf.Type)(()=>hf),xt("design:type",hf)],pc.prototype,"metering",void 0);var rw=class{static{Re(this,"ClearTextSolutionSigned")}signature;clearTextSolution;constructor(e,t){this.signature=e,this.clearTextSolution=t}};_t([(0,be.ValidateNested)(),(0,bf.Type)(()=>Qt),xt("design:type",Qt)],rw.prototype,"signature",void 0);_t([(0,be.ValidateNested)(),(0,bf.Type)(()=>pc),xt("design:type",pc)],rw.prototype,"clearTextSolution",void 0);var Mo=class{static{Re(this,"WorkersParams")}blockNumber;selectionStrategy;setNodes;constructor(e,t,n){this.blockNumber=e,this.selectionStrategy=t,this.setNodes=n}};_t([(0,be.IsNotEmpty)(),(0,be.Min)(0),xt("design:type",Number)],Mo.prototype,"blockNumber",void 0);_t([(0,be.IsNotEmpty)(),(0,be.IsString)(),xt("design:type",String)],Mo.prototype,"selectionStrategy",void 0);_t([(0,be.ArrayNotEmpty)(),(0,be.IsNotEmpty)({each:!0}),(0,be.IsEthereumAddress)({each:!0}),xt("design:type",Array)],Mo.prototype,"setNodes",void 0);var ps=class{static{Re(this,"TaskExecutionLimitsParams")}gas;call;frame;memory;constructor(e,t,n,a){this.gas=e,this.call=t,this.frame=n,this.memory=a}};_t([(0,be.IsNotEmpty)(),(0,be.IsString)(),xt("design:type",String)],ps.prototype,"gas",void 0);_t([(0,be.IsNotEmpty)(),(0,be.IsString)(),xt("design:type",String)],ps.prototype,"call",void 0);_t([(0,be.IsNotEmpty)(),(0,be.IsString)(),xt("design:type",String)],ps.prototype,"frame",void 0);_t([(0,be.IsNotEmpty)(),(0,be.IsString)(),xt("design:type",String)],ps.prototype,"memory",void 0);var hs=class{static{Re(this,"EconParams")}reward;requiredSolutions;totalSolutions;executionTimeout;constructor(e,t,n,a){this.reward=e,this.requiredSolutions=t,this.totalSolutions=n,this.executionTimeout=a}};_t([(0,be.IsNotEmpty)(),(0,be.IsString)(),xt("design:type",String)],hs.prototype,"reward",void 0);_t([(0,be.Min)(1),(0,be.IsNotEmpty)(),(0,be.IsNumber)(),xt("design:type",Number)],hs.prototype,"requiredSolutions",void 0);_t([(0,be.Min)(1),(0,be.IsNotEmpty)(),(0,be.IsNumber)(),xt("design:type",Number)],hs.prototype,"totalSolutions",void 0);_t([(0,be.Min)(1),(0,be.IsNotEmpty)(),(0,be.IsNumber)(),xt("design:type",Number)],hs.prototype,"executionTimeout",void 0);var Sb=class{static{Re(this,"TotalTransferredBytes")}request;response;constructor(e,t){this.request=e,this.response=t}};_t([(0,be.IsNotEmpty)(),(0,be.IsNumber)(),xt("design:type",Number)],Sb.prototype,"request",void 0);_t([(0,be.IsNotEmpty)(),(0,be.IsNumber)(),xt("design:type",Number)],Sb.prototype,"response",void 0);var AK;(function(e){e.MINIO="minio",e.S3="s3"})(AK||(AK={}));var hc=function(e,t,n,a){var r=arguments.length,i=r<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,a);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(r<3?s(i):r>3?s(t,n,i):s(t,n))||i);return r>3&&i&&Object.defineProperty(t,n,i),i},mc=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},bc=class{static{Re(this,"BaseMessage")}msgType;messageId;payload;msgTimestamp=Date.now();constructor(e,t){this.msgType=this.constructor.name,this.messageId=t||ike(),this.payload=e}};hc([(0,Ka.IsNotEmpty)(),(0,Ka.IsString)(),mc("design:type",String)],bc.prototype,"msgType",void 0);hc([(0,Ka.IsOptional)(),(0,Ka.IsUUID)(),mc("design:type",String)],bc.prototype,"messageId",void 0);hc([(0,Ka.ValidateNested)(),mc("design:type",Object)],bc.prototype,"payload",void 0);hc([mf(),mc("design:type",Number)],bc.prototype,"msgTimestamp",void 0);var ske=class extends bc{static{Re(this,"FailedMessage")}error;constructor(e,t,n){super(t,n),this.error=e}};hc([(0,Ka.IsNotEmpty)(),(0,Ka.IsString)(),mc("design:type",String)],ske.prototype,"error",void 0);var oke=class extends bc{static{Re(this,"InvalidMessage")}error;constructor(e,t,n){super(t,n),this.error=e}};hc([(0,Ka.IsNotEmpty)(),(0,Ka.IsString)(),mc("design:type",String)],oke.prototype,"error",void 0);var Tb;(function(e){e.EVM="evm",e.AVALANCHE="avalanche"})(Tb||(Tb={}));var Ve=function(e,t,n,a){var r=arguments.length,i=r<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,a);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(r<3?s(i):r>3?s(t,n,i):s(t,n))||i);return r>3&&i&&Object.defineProperty(t,n,i),i},Ge=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},ms;(function(e){e.TASK_CREATED="task_created",e.API_TASK_CREATED="api_task_created",e.NODE_OUTCOME="node_outcome",e.TASK_SOLVED="task_solved",e.API_OUTCOME="api_outcome",e.SOLUTIONS_REVEALED="solutions_revealed",e.EXECUTION_COMPLETED="execution_completed",e.ADJUDICATION_OUTCOME="adjudication_outcome"})(ms||(ms={}));var A0=class{static{Re(this,"BaseTranscriptRecord")}type;executionId;message;msgHash;signature;sequencerAddress;timestamp;constructor(e,t,n,a,r,i,s){this.type=e,this.executionId=t,this.message=a,this.msgHash=n,this.signature=r,this.timestamp=s,this.sequencerAddress=i}};Ve([(0,oe.IsNotEmpty)(),(0,oe.IsEnum)(ms),Ge("design:type",String)],A0.prototype,"type",void 0);Ve([(0,oe.IsUUID)(),(0,oe.IsNotEmpty)(),Ge("design:type",String)],A0.prototype,"executionId",void 0);Ve([(0,oe.ValidateNested)(),Ge("design:type",Object)],A0.prototype,"message",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsHash)("sha256"),Ge("design:type",String)],A0.prototype,"msgHash",void 0);Ve([(0,oe.ValidateNested)(),(0,w0.Type)(()=>Qt),Ge("design:type",Qt)],A0.prototype,"signature",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsEthereumAddress)(),Ge("design:type",String)],A0.prototype,"sequencerAddress",void 0);Ve([mf(),(0,oe.IsNotEmpty)(),Ge("design:type",Number)],A0.prototype,"timestamp",void 0);var mn=class{static{Re(this,"TaskCreatedMessageParams")}type="dispatch_task";taskId;executionId;msgHash;signature;limits;econParams;workers;dispatcherTimestamp;taskRequesterTimestamp;ledgerName;blockHash;blockNumber;chainId;nodeRegistryContractAddress;taskRegistryContractAddress;taskAuthorizationContractAddress;taskRequesterAddress;taskPath;taskVersion;signedRequestBody;senderAddress;input;constructor(e,t,n,a,r,i,s,o,l,d,p,b,w,A,_,k,D,F,H,B,z,fe){this.taskId=e,this.executionId=t,this.msgHash=n,this.signature=a,this.limits=r,this.econParams=i,this.workers=s,this.dispatcherTimestamp=o,this.taskRequesterTimestamp=l,this.ledgerName=d,this.blockHash=p,this.blockNumber=b,this.chainId=w,this.nodeRegistryContractAddress=A,this.taskRegistryContractAddress=_,this.taskAuthorizationContractAddress=k,this.taskRequesterAddress=D,this.taskPath=F,this.taskVersion=H,this.signedRequestBody=fe,this.senderAddress=B,this.input=z}};Ve([(0,oe.IsNotEmpty)(),(0,oe.IsString)(),Ge("design:type",String)],mn.prototype,"taskId",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsUUID)(),Ge("design:type",String)],mn.prototype,"executionId",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsHash)("sha256"),Ge("design:type",String)],mn.prototype,"msgHash",void 0);Ve([(0,oe.ValidateNested)(),(0,w0.Type)(()=>Qt),Ge("design:type",Qt)],mn.prototype,"signature",void 0);Ve([(0,oe.ValidateNested)(),(0,w0.Type)(()=>ps),Ge("design:type",ps)],mn.prototype,"limits",void 0);Ve([(0,oe.ValidateNested)(),(0,w0.Type)(()=>hs),Ge("design:type",hs)],mn.prototype,"econParams",void 0);Ve([(0,oe.ValidateNested)(),(0,w0.Type)(()=>Mo),Ge("design:type",Mo)],mn.prototype,"workers",void 0);Ve([(0,oe.IsNotEmpty)(),aw(),Ge("design:type",Number)],mn.prototype,"dispatcherTimestamp",void 0);Ve([(0,oe.IsNotEmpty)(),aw(),Ge("design:type",Number)],mn.prototype,"taskRequesterTimestamp",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsEnum)(Tb),Ge("design:type",String)],mn.prototype,"ledgerName",void 0);Ve([(0,oe.IsNotEmpty)(),Ge("design:type",String)],mn.prototype,"blockHash",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.Min)(0),Ge("design:type",Number)],mn.prototype,"blockNumber",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsString)(),Ge("design:type",String)],mn.prototype,"chainId",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsEthereumAddress)(),Ge("design:type",String)],mn.prototype,"nodeRegistryContractAddress",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsEthereumAddress)(),Ge("design:type",String)],mn.prototype,"taskRegistryContractAddress",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsEthereumAddress)(),Ge("design:type",String)],mn.prototype,"taskAuthorizationContractAddress",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsEthereumAddress)(),Ge("design:type",String)],mn.prototype,"taskRequesterAddress",void 0);Ve([(0,oe.IsOptional)(),Ge("design:type",String)],mn.prototype,"taskPath",void 0);Ve([(0,oe.IsOptional)(),(0,oe.Min)(0),Ge("design:type",Number)],mn.prototype,"taskVersion",void 0);Ve([(0,oe.IsOptional)(),Ge("design:type",Object)],mn.prototype,"signedRequestBody",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsEthereumAddress)(),Ge("design:type",String)],mn.prototype,"senderAddress",void 0);Ve([(0,oe.IsOptional)(),(0,oe.Allow)(),Ge("design:type",String)],mn.prototype,"input",void 0);var Zn=class{static{Re(this,"APITaskCreatedMessageParams")}type="dispatch_task";taskId;executionId;msgHash;signature;ledgerName;blockHash;blockNumber;chainId;taskRegistryContractAddress;taskAuthorizationContractAddress;taskRequesterAddress;taskPath;taskVersion;senderAddress;executionTimeout;input;constructor(e,t,n,a,r,i,s,o,l,d,p,b,w,A,_,k){this.taskId=e,this.executionId=t,this.msgHash=n,this.signature=a,this.executionTimeout=_,this.ledgerName=i,this.blockHash=s,this.blockNumber=o,this.chainId=l,this.taskRegistryContractAddress=d,this.taskAuthorizationContractAddress=p,this.taskRequesterAddress=b,this.taskPath=w,this.taskVersion=A,this.senderAddress=r,this.input=k}};Ve([(0,oe.IsNotEmpty)(),(0,oe.IsString)(),Ge("design:type",String)],Zn.prototype,"taskId",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsUUID)(),Ge("design:type",String)],Zn.prototype,"executionId",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsHash)("sha256"),Ge("design:type",String)],Zn.prototype,"msgHash",void 0);Ve([(0,oe.ValidateNested)(),(0,w0.Type)(()=>Qt),Ge("design:type",Qt)],Zn.prototype,"signature",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsEnum)(Tb),Ge("design:type",String)],Zn.prototype,"ledgerName",void 0);Ve([(0,oe.IsNotEmpty)(),Ge("design:type",String)],Zn.prototype,"blockHash",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.Min)(0),Ge("design:type",Number)],Zn.prototype,"blockNumber",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsString)(),Ge("design:type",String)],Zn.prototype,"chainId",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsEthereumAddress)(),Ge("design:type",String)],Zn.prototype,"taskRegistryContractAddress",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsEthereumAddress)(),Ge("design:type",String)],Zn.prototype,"taskAuthorizationContractAddress",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsEthereumAddress)(),Ge("design:type",String)],Zn.prototype,"taskRequesterAddress",void 0);Ve([(0,oe.IsOptional)(),Ge("design:type",String)],Zn.prototype,"taskPath",void 0);Ve([(0,oe.IsOptional)(),(0,oe.Min)(0),Ge("design:type",Number)],Zn.prototype,"taskVersion",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsEthereumAddress)(),Ge("design:type",String)],Zn.prototype,"senderAddress",void 0);Ve([(0,oe.IsNumber)(),Ge("design:type",Number)],Zn.prototype,"executionTimeout",void 0);Ve([(0,oe.IsOptional)(),(0,oe.Allow)(),Ge("design:type",String)],Zn.prototype,"input",void 0);var pd=class{static{Re(this,"NodeOutcomeMessageParams")}executionId;senderAddress;encryptedSolution;msgHash;signature;constructor(e,t,n,a,r){this.executionId=e,this.signature=r,this.encryptedSolution=n,this.senderAddress=t,this.msgHash=a}};Ve([(0,oe.IsUUID)(),(0,oe.IsNotEmpty)(),Ge("design:type",String)],pd.prototype,"executionId",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsEthereumAddress)(),Ge("design:type",String)],pd.prototype,"senderAddress",void 0);Ve([(0,oe.ValidateNested)(),(0,w0.Type)(()=>pf),Ge("design:type",pf)],pd.prototype,"encryptedSolution",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsHash)("sha256"),Ge("design:type",String)],pd.prototype,"msgHash",void 0);Ve([(0,oe.ValidateNested)(),(0,w0.Type)(()=>Qt),Ge("design:type",Qt)],pd.prototype,"signature",void 0);var Co=class{static{Re(this,"ApiOutcomeMessageParams")}executionId;senderAddress;bodyResponse;msgHash;signature;tlsHandshakeHash;status;totalTransferredBytes;constructor(e,t,n,a,r,i,s,o){this.executionId=e,this.signature=r,this.bodyResponse=n,this.tlsHandshakeHash=i,this.senderAddress=t,this.msgHash=a,this.status=s,this.totalTransferredBytes=o}};Ve([(0,oe.IsUUID)(),(0,oe.IsNotEmpty)(),Ge("design:type",String)],Co.prototype,"executionId",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsEthereumAddress)(),Ge("design:type",String)],Co.prototype,"senderAddress",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsHash)("sha256"),Ge("design:type",String)],Co.prototype,"msgHash",void 0);Ve([(0,oe.ValidateNested)(),(0,w0.Type)(()=>Qt),Ge("design:type",Qt)],Co.prototype,"signature",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsString)(),Ge("design:type",String)],Co.prototype,"tlsHandshakeHash",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsString)(),Ge("design:type",String)],Co.prototype,"status",void 0);Ve([(0,oe.ValidateNested)(),(0,w0.Type)(()=>Sb),Ge("design:type",Sb)],Co.prototype,"totalTransferredBytes",void 0);var ut=function(e,t,n,a){var r=arguments.length,i=r<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,a);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(r<3?s(i):r>3?s(t,n,i):s(t,n))||i);return r>3&&i&&Object.defineProperty(t,n,i),i},pt=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},yf=class{static{Re(this,"DispatchTaskPayload")}executionId;msgHash;signature;limits;econParams;workers;senderAddress;input;constructor(e,t,n,a,r,i,s,o){this.executionId=e,this.msgHash=t,this.signature=n,this.limits=a,this.econParams=r,this.workers=i,this.senderAddress=s,this.input=o}};ut([(0,xe.IsUUID)(),(0,xe.IsNotEmpty)(),pt("design:type",String)],yf.prototype,"executionId",void 0);ut([(0,xe.IsNotEmpty)(),(0,xe.IsHash)("sha256"),pt("design:type",String)],yf.prototype,"msgHash",void 0);ut([(0,xe.ValidateNested)(),(0,jn.Type)(()=>Qt),pt("design:type",Qt)],yf.prototype,"signature",void 0);ut([(0,xe.ValidateNested)(),(0,jn.Type)(()=>ps),pt("design:type",ps)],yf.prototype,"limits",void 0);ut([(0,xe.ValidateNested)(),(0,jn.Type)(()=>hs),pt("design:type",hs)],yf.prototype,"econParams",void 0);ut([(0,xe.ValidateNested)(),(0,jn.Type)(()=>Mo),pt("design:type",Mo)],yf.prototype,"workers",void 0);ut([(0,xe.IsNotEmpty)(),(0,xe.IsString)(),pt("design:type",String)],yf.prototype,"senderAddress",void 0);ut([(0,xe.IsNotEmpty)(),(0,xe.IsString)(),pt("design:type",String)],yf.prototype,"input",void 0);var Eb=class{static{Re(this,"UnsignedDispatchTaskPayload")}executionId;limits;econParams;workers;input;constructor(e,t,n,a,r){this.executionId=e,this.limits=t,this.econParams=n,this.workers=a,this.input=r}};ut([(0,xe.IsUUID)(),(0,xe.IsNotEmpty)(),pt("design:type",String)],Eb.prototype,"executionId",void 0);ut([(0,xe.ValidateNested)(),(0,jn.Type)(()=>ps),pt("design:type",ps)],Eb.prototype,"limits",void 0);ut([(0,xe.ValidateNested)(),(0,jn.Type)(()=>hs),pt("design:type",hs)],Eb.prototype,"econParams",void 0);ut([(0,xe.ValidateNested)(),(0,jn.Type)(()=>Mo),pt("design:type",Mo)],Eb.prototype,"workers",void 0);var fke=class extends A0{static{Re(this,"NodeOutcomePayload")}message;constructor(e,t,n,a,r,i){super(ms.NODE_OUTCOME,e,t,n,a,r,i),this.message=n,this.executionId=e,this.msgHash=t,this.signature=a,this.timestamp=i,this.sequencerAddress=r,this.message=n}};ut([(0,xe.ValidateNested)(),(0,jn.Type)(()=>pd),pt("design:type",pd)],fke.prototype,"message",void 0);var dke=class extends A0{static{Re(this,"ApiOutcomePayload")}message;constructor(e,t,n,a,r,i){super(ms.API_OUTCOME,e,t,n,a,r,i),this.message=n,this.executionId=e,this.msgHash=t,this.signature=a,this.timestamp=i,this.sequencerAddress=r}};ut([(0,xe.ValidateNested)(),(0,jn.Type)(()=>Co),pt("design:type",Co)],dke.prototype,"message",void 0);var hd=class{static{Re(this,"ExecutionCompletedPayload")}type;executionId;transcriptHash;status;signature;signerAddress;timestamp;constructor(e,t,n,a,r,i){this.type=ms.EXECUTION_COMPLETED,this.executionId=e,this.transcriptHash=t,this.status=n,this.signature=a,this.signerAddress=r,this.timestamp=i}};ut([(0,xe.IsNotEmpty)(),(0,xe.IsString)(),pt("design:type",String)],hd.prototype,"type",void 0);ut([(0,xe.IsUUID)(),(0,xe.IsNotEmpty)(),pt("design:type",String)],hd.prototype,"executionId",void 0);ut([(0,xe.IsNotEmpty)(),(0,xe.IsHash)("sha256"),pt("design:type",String)],hd.prototype,"transcriptHash",void 0);ut([(0,xe.IsNotEmpty)(),(0,xe.IsEnum)(Ab),pt("design:type",String)],hd.prototype,"status",void 0);ut([(0,xe.ValidateNested)(),(0,jn.Type)(()=>Qt),pt("design:type",Qt)],hd.prototype,"signature",void 0);ut([(0,xe.IsNotEmpty)(),(0,xe.IsString)(),pt("design:type",String)],hd.prototype,"signerAddress",void 0);ut([mf(),(0,xe.IsNotEmpty)(),pt("design:type",Number)],hd.prototype,"timestamp",void 0);var gf=class{static{Re(this,"AdjudicationOutcomePayload")}type;executionId;status;signature;senderAddress;timestamp;output;metering;constructor(e,t,n,a,r,i,s){this.type=ms.ADJUDICATION_OUTCOME,this.executionId=e,this.status=t,this.signature=n,this.senderAddress=a,this.output=i,this.metering=s,this.timestamp=r}};ut([(0,xe.IsNotEmpty)(),(0,xe.IsString)(),pt("design:type",String)],gf.prototype,"type",void 0);ut([(0,xe.IsUUID)(),(0,xe.IsNotEmpty)(),pt("design:type",String)],gf.prototype,"executionId",void 0);ut([(0,xe.IsNotEmpty)(),(0,xe.IsEnum)(Ab),pt("design:type",String)],gf.prototype,"status",void 0);ut([(0,xe.ValidateNested)(),(0,jn.Type)(()=>Qt),pt("design:type",Qt)],gf.prototype,"signature",void 0);ut([(0,xe.IsNotEmpty)(),(0,xe.IsString)(),pt("design:type",String)],gf.prototype,"senderAddress",void 0);ut([mf(),(0,xe.IsNotEmpty)(),pt("design:type",Number)],gf.prototype,"timestamp",void 0);ut([(0,xe.IsOptional)(),(0,xe.IsString)(),pt("design:type",String)],gf.prototype,"output",void 0);ut([(0,xe.IsOptional)(),(0,xe.ValidateNested)(),(0,jn.Type)(()=>hf),pt("design:type",hf)],gf.prototype,"metering",void 0);var yc=class{static{Re(this,"SolutionsRevealedPayload")}type;executionId;signature;clearTextSolutions;sequencerAddress;msgHash;timestamp;constructor(e,t,n,a,r,i){this.type=ms.SOLUTIONS_REVEALED,this.executionId=e,this.signature=t,this.clearTextSolutions=n,this.sequencerAddress=a,this.msgHash=r,this.timestamp=i}};ut([(0,xe.IsUUID)(),(0,xe.IsNotEmpty)(),pt("design:type",String)],yc.prototype,"executionId",void 0);ut([(0,xe.ValidateNested)(),(0,jn.Type)(()=>Qt),pt("design:type",Qt)],yc.prototype,"signature",void 0);ut([(0,xe.ValidateNested)({each:!0}),(0,jn.Type)(()=>rw),pt("design:type",Array)],yc.prototype,"clearTextSolutions",void 0);ut([(0,xe.IsNotEmpty)(),(0,xe.IsEthereumAddress)(),pt("design:type",String)],yc.prototype,"sequencerAddress",void 0);ut([(0,xe.IsNotEmpty)(),(0,xe.IsHash)("sha256"),pt("design:type",String)],yc.prototype,"msgHash",void 0);ut([mf(),(0,xe.IsNotEmpty)(),pt("design:type",Number)],yc.prototype,"timestamp",void 0);var md=class extends A0{static{Re(this,"TaskCreatedPayload")}executionId;msgHash;message;signature;publicKey;sequencerAddress;timestamp;constructor(e,t,n,a,r,i,s){super(ms.TASK_CREATED,e,t,n,a,i,s),this.message=n,this.executionId=e,this.msgHash=t,this.signature=a,this.timestamp=s,this.sequencerAddress=i,this.publicKey=r,this.message=n}};ut([(0,xe.IsNotEmpty)(),(0,xe.IsUUID)(),pt("design:type",String)],md.prototype,"executionId",void 0);ut([(0,xe.IsNotEmpty)(),(0,xe.IsHash)("sha256"),pt("design:type",String)],md.prototype,"msgHash",void 0);ut([(0,xe.ValidateNested)(),(0,jn.Type)(()=>mn),pt("design:type",mn)],md.prototype,"message",void 0);ut([(0,xe.ValidateNested)(),(0,jn.Type)(()=>Qt),pt("design:type",Qt)],md.prototype,"signature",void 0);ut([(0,xe.IsNotEmpty)(),(0,xe.IsString)(),pt("design:type",String)],md.prototype,"publicKey",void 0);ut([(0,xe.IsNotEmpty)(),(0,xe.IsEthereumAddress)(),pt("design:type",String)],md.prototype,"sequencerAddress",void 0);ut([mf(),(0,xe.IsNotEmpty)(),pt("design:type",Number)],md.prototype,"timestamp",void 0);var bd=class extends A0{static{Re(this,"APITaskCreatedPayload")}executionId;msgHash;message;signature;publicKey;sequencerAddress;timestamp;constructor(e,t,n,a,r,i,s){super(ms.API_TASK_CREATED,e,t,n,a,i,s),this.message=n,this.executionId=e,this.msgHash=t,this.signature=a,this.timestamp=s,this.sequencerAddress=i,this.publicKey=r,this.message=n}};ut([(0,xe.IsNotEmpty)(),(0,xe.IsUUID)(),pt("design:type",String)],bd.prototype,"executionId",void 0);ut([(0,xe.IsNotEmpty)(),(0,xe.IsHash)("sha256"),pt("design:type",String)],bd.prototype,"msgHash",void 0);ut([(0,xe.ValidateNested)(),(0,jn.Type)(()=>Zn),pt("design:type",Zn)],bd.prototype,"message",void 0);ut([(0,xe.ValidateNested)(),(0,jn.Type)(()=>Qt),pt("design:type",Qt)],bd.prototype,"signature",void 0);ut([(0,xe.IsNotEmpty)(),(0,xe.IsString)(),pt("design:type",String)],bd.prototype,"publicKey",void 0);ut([(0,xe.IsNotEmpty)(),(0,xe.IsEthereumAddress)(),pt("design:type",String)],bd.prototype,"sequencerAddress",void 0);ut([mf(),(0,xe.IsNotEmpty)(),pt("design:type",Number)],bd.prototype,"timestamp",void 0);var $p=function(e,t,n,a){var r=arguments.length,i=r<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,a);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(r<3?s(i):r>3?s(t,n,i):s(t,n))||i);return r>3&&i&&Object.defineProperty(t,n,i),i},Rp=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},Np=class{static{Re(this,"ComputedOutcomePayload")}executionId;msgHash;signature;senderAddress;encryptedSolution;constructor(e,t,n,a,r){this.executionId=e,this.msgHash=t,this.signature=n,this.senderAddress=a,this.encryptedSolution=r}};$p([(0,pr.IsUUID)(),(0,pr.IsNotEmpty)(),Rp("design:type",String)],Np.prototype,"executionId",void 0);$p([(0,pr.IsNotEmpty)(),(0,pr.IsHash)("sha256"),Rp("design:type",String)],Np.prototype,"msgHash",void 0);$p([(0,pr.ValidateNested)(),(0,iw.Type)(()=>Qt),Rp("design:type",Qt)],Np.prototype,"signature",void 0);$p([(0,pr.IsNotEmpty)(),(0,pr.IsEthereumAddress)(),Rp("design:type",String)],Np.prototype,"senderAddress",void 0);$p([(0,pr.ValidateNested)(),(0,iw.Type)(()=>pf),Rp("design:type",pf)],Np.prototype,"encryptedSolution",void 0);var Vt=function(e,t,n,a){var r=arguments.length,i=r<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,a);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(r<3?s(i):r>3?s(t,n,i):s(t,n))||i);return r>3&&i&&Object.defineProperty(t,n,i),i},Gt=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},lke=class{static{Re(this,"PushTaskPayload")}taskId;constructor(e){this.taskId=e}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],lke.prototype,"taskId",void 0);var cke=class{static{Re(this,"PullTaskPayload")}taskId;constructor(e){this.taskId=e}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],cke.prototype,"taskId",void 0);var sw=class{static{Re(this,"CheckpointTaskPayload")}input;checkpoint;taskId;constructor(e,t,n){this.taskId=e,this.checkpoint=t,this.input=n}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],sw.prototype,"input",void 0);Vt([(0,Oe.IsNotEmpty)(),Gt("design:type",Object)],sw.prototype,"checkpoint",void 0);Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],sw.prototype,"taskId",void 0);var TK=class{static{Re(this,"ListTaskCheckpointPayload")}input;taskId;constructor(e,t){this.taskId=e,this.input=t}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],TK.prototype,"input",void 0);Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],TK.prototype,"taskId",void 0);var ow=class{static{Re(this,"ExecuteTaskPayload")}executionId;input;taskId;constructor(e,t,n){this.taskId=e,this.executionId=t,this.input=n}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsUUID)(),Gt("design:type",String)],ow.prototype,"executionId",void 0);Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],ow.prototype,"input",void 0);Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],ow.prototype,"taskId",void 0);var EK=class{static{Re(this,"InstrumentTaskPayload")}instrumentationId;taskId;constructor(e,t){this.taskId=e,this.instrumentationId=t}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsUUID)(),Gt("design:type",String)],EK.prototype,"instrumentationId",void 0);Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],EK.prototype,"taskId",void 0);var uke=class{static{Re(this,"TaskPushedPayload")}taskId;constructor(e){this.taskId=e}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],uke.prototype,"taskId",void 0);var pke=class{static{Re(this,"TaskPulledPayload")}taskId;constructor(e){this.taskId=e}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],pke.prototype,"taskId",void 0);var hke=class{static{Re(this,"TaskPulledFailedPayload")}taskId;constructor(e){this.taskId=e}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],hke.prototype,"taskId",void 0);var IK=class{static{Re(this,"TaskCheckpointedPayload")}checkpointHash;taskId;constructor(e,t){this.taskId=e,this.checkpointHash=t}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],IK.prototype,"checkpointHash",void 0);Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],IK.prototype,"taskId",void 0);var mke=class{static{Re(this,"TaskCheckpointedFailedPayload")}taskId;constructor(e){this.taskId=e}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],mke.prototype,"taskId",void 0);var MK=class{static{Re(this,"TaskCheckpointsListedPayload")}checkpointCount;taskId;constructor(e,t){this.taskId=e,this.checkpointCount=t}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsNumber)(),Gt("design:type",Number)],MK.prototype,"checkpointCount",void 0);Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],MK.prototype,"taskId",void 0);var bke=class{static{Re(this,"TaskCheckpointsListFailedPayload")}taskId;constructor(e,t){this.taskId=t}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],bke.prototype,"taskId",void 0);var fw=class{static{Re(this,"TaskExecutedPayload")}executionId;output;taskId;constructor(e,t,n){this.taskId=e,this.executionId=t,this.output=n}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsUUID)(),Gt("design:type",String)],fw.prototype,"executionId",void 0);Vt([(0,Oe.IsOptional)(),(0,Oe.IsString)(),Gt("design:type",String)],fw.prototype,"output",void 0);Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],fw.prototype,"taskId",void 0);var CK=class{static{Re(this,"TaskExecutionFailedPayload")}executionId;taskId;constructor(e,t,n){this.taskId=t,this.executionId=n}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsUUID)(),Gt("design:type",String)],CK.prototype,"executionId",void 0);Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],CK.prototype,"taskId",void 0);var Ib=class{static{Re(this,"TaskInstrumentedPayload")}instrumentationId;output;taskId;instrumentedTaskId;constructor(e,t,n,a){this.taskId=e,this.instrumentationId=t,this.output=a,this.instrumentedTaskId=n}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsUUID)(),Gt("design:type",String)],Ib.prototype,"instrumentationId",void 0);Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],Ib.prototype,"output",void 0);Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],Ib.prototype,"taskId",void 0);Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],Ib.prototype,"instrumentedTaskId",void 0);var PK=class{static{Re(this,"TaskInstrumentedFailedPayload")}instrumentationId;taskId;constructor(e,t,n){this.taskId=t,this.instrumentationId=n}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsUUID)(),Gt("design:type",String)],PK.prototype,"instrumentationId",void 0);Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],PK.prototype,"taskId",void 0);var SK;(function(e){e.ACTIVE="active",e.INACTIVE="inactive"})(SK||(SK={}));async function dw(e,t,n,a,r){let i=n.body,s=n.method.toLowerCase(),o,l={},d=0,p=0,b={...a,"x-service-name":"truebit-api-adapter"};["post","put","patch"].includes(s)?o=e+t.path:o=`${e}${kK(t.path,t.params||{})}`;let w=uK.create({headers:{Connection:"keep-alive"},httpsAgent:new nke.Agent({keepAlive:!0}).on("keylog",(A,_)=>{let k=_.getSession(),D=Buffer.from(k).toString("hex").toUpperCase();l={tlsCert:Zx(_.getPeerCertificate(!0)),localCertificate:Zx(_.getCertificate()),ephemeral:_.getEphemeralKeyInfo(),cipher:_.getCipher(),session:D,ticket:_.getTLSTicket(),localAddress:_.localAddress,sharedSigAlgs:_.getSharedSigalgs(),remoteAddress:_.remoteAddress,protocol:_.getProtocol()}}),maxContentLength:1/0,maxBodyLength:1/0});w.interceptors.request.use(A=>{let _=A.data?JSON.stringify(A.data):"";return d=(A.url?.length||0)+(_.length||0)+JSON.stringify(A.headers).length,A}),w.interceptors.response.use(A=>(p=JSON.stringify(A.data).length+JSON.stringify(A.headers).length,A));try{let A;switch(s){case"get":A=await w.get(o,{headers:b,timeout:r});break;case"patch":A=await w.patch(o,i,{headers:b,timeout:r});break;case"post":A=await w.post(o,i,{headers:b,timeout:r});break;case"put":A=await w.put(o,i,{headers:b,timeout:r});break;case"delete":A=await w.delete(o,{headers:b,timeout:r});break;default:throw new Error("Unsupported HTTP method")}return[A.data,JSON.stringify(l),us.SUCCEED,d,p]}catch(A){let _,k;return A.response&&A.response.data?k=JSON.stringify(A.response.data):k=A.message,uK.isAxiosError(A)?_=A.response||{data:k,status:500,statusText:"",headers:{},config:{headers:{}}}:_={data:k,status:500,statusText:"",headers:{},config:{headers:{}}},[_.data,JSON.stringify(l),us.FAILED,d,p]}}Re(dw,"handleAxiosCall");function kK(e,t){if(t)for(let n in t){let a=t[n];e=e.replace(new RegExp(`{${n}}`,"g"),a)}return e}Re(kK,"applyPathParams");function OK(e){let t=e.split(".").map(Number);return t.length!==4||t.some(n=>isNaN(n)||n<0||n>255)?!1:t[0]===10||t[0]===172&&t[1]>=16&&t[1]<=31||t[0]===192&&t[1]===168||t[0]===127||t[0]===169&&t[1]===254}Re(OK,"isPrivateIP");function $K(e){if(["local","testnet","staging"].includes(process.env.TRUEBIT_ENV))return[!0,""];try{let t=new URL(e),n=t.hostname;if(!["http:","https:"].includes(t.protocol))return[!1,"Only HTTP and HTTPS protocols are allowed"];if(gke(n)){if(OK(n))return[!1,"Internal IP addresses are not allowed"]}else{let a=[".local",".internal",".cluster.local","localhost","kubernetes","kubernetes.default","kubernetes.default.svc","kubernetes.default.svc.cluster.local"],r=n.toLowerCase();for(let i of a)if(r===i||r.endsWith(i))return[!1,"Internal domains are not allowed"]}return[!0,""]}catch{return[!1,"Invalid URL format"]}}Re($K,"validateExternalUrl");function RK(e){let t=e.servers;if(t&&t.length>0){let n=t[0],a=n.url;return n.variables&&Object.keys(n.variables).forEach(r=>{let i=n.variables[r],s=i.default||i.enum&&i.enum[0];if(s!==void 0)a=a.replace(`{${r}}`,s);else throw new Error(`No default value found for variable ${r}`)}),a}else throw new Error("No servers defined in OpenAPI document")}Re(RK,"getBaseURLFromOpenAPI");function Mb(e,t){let n=t.method;if(["POST","PUT","PATCH"].includes(n))return{host:e,path:t.path,method:n,body:t.body,headers:{}};if(n==="GET"||n==="DELETE"){let a=t.path,r=t.params,i=a.replace(/{(\w+)}/g,(s,o)=>r?.[o]??"");return{host:e,path:i,method:n,headers:{}}}else throw console.error("Unsupported method:",n),new Error("Api_Adapter create request error format")}Re(Mb,"createRequest");async function lw(e,t){try{let n=await yke(e),a=RK(n),[r,i]=$K(a);if(!r)return console.warn(`Manifest-based call blocked: ${i} - baseURL: ${a}`),["",`Security: ${i}`,us.FAILED];let s=Mb(a,t),[o,l]=n.request(s);return l?["",l,us.FAILED]:[a,"",us.SUCCEED]}catch(n){return console.log(n),["",n,us.FAILED]}}Re(lw,"handleEnforcerManifestCheck");async function cw(e){try{let t=JSON.parse(e);return[{path:t.path.toString(),method:t.method.toString(),body:t.body,params:t.params,headers:{}},"",us.SUCCEED]}catch(t){return console.error("Invalid JSON format:",t),[null,"Api_Adapter create request input format",us.FAILED]}}Re(cw,"createRequestInput");var uw=class{static{Re(this,"AuthMethod")}tokens=[];authInputs;parse(e,t){let n=this.parseKeyValuePairs(t);if(e.length==0){this.authInputs=n;return}let a=Object.keys(n);if(e.every(r=>a.includes(r))){let r={};for(let i of e)r[i]=n[i];this.authInputs=r}else throw new Error(`Invalid authString: ${e} are required`)}parseKeyValuePairs(e){try{let t=e.split(","),n={};for(let a of t){let[r,i]=a.split(":");n[r.trim()]=i.trim()}return n}catch{throw new Error("Invalid auth string")}}},vke=class extends uw{static{Re(this,"AwsSignature")}tokens=["accessKey","secretKey"];constructor(e){super(),this.parse(this.tokens,e)}authHeaders(e){return NK.default.sign(e,{accessKeyId:this.authInputs.accessKey,secretAccessKey:this.authInputs.secretKey}).headers||{}}},_ke=class extends uw{static{Re(this,"BasicAuth")}tokens=["username","password"];constructor(e){super(),this.parse(this.tokens,e)}authHeaders(e){return{Authorization:`Basic ${btoa(`${this.authInputs.username}:${this.authInputs.password}`)}`}}},xke=class extends uw{static{Re(this,"CustomHeader")}tokens=[];constructor(e){super(),this.parse([],e)}authHeaders(e){return{...this.authInputs}}},lc;(function(e){e.AWS_SIGNATURE="aws-signature",e.BASIC_AUTH="basic-auth",e.CUSTOM_HEADER="custom-header"})(lc||(lc={}));var wke=Re((e,t)=>{switch(e){case lc.AWS_SIGNATURE:return new vke(t);case lc.BASIC_AUTH:return new _ke(t);case lc.CUSTOM_HEADER:return new xke(t);default:throw new Error(`Invalid authentication method specified. Should be one of <${Object.values(lc)}>`)}},"createApiAuthParser"),DK=Re((e,t,n)=>wke(e,t).authHeaders(n),"handleGetAuthHeaders");import S0 from"chalk";var pw=async(e,t,n,a)=>{let r="",i=LK.readFileSync(t,"utf8"),s=JSON.parse(i).input,o=JSON.parse(i).executionTimeout,[l,d,p]=await cw(JSON.stringify(s));if(r+=`${S0.cyanBright(`
214
+ ${e.config?.method} - ${e.config?.url}`:e.message:e.message};function Ta(e,t){if(e!==e.toLowerCase())throw new Error(`${t} must be lowercase.`)}function dn(e){return xp.create(null,bo.EVM,e,At("privateKey"))}function Mp(e){if(!jPe.isAddress(e)||e.length!==42||!e.startsWith("0x"))throw new Error("Must be a valid ethereum address. (ENS not supported yet)")}async function gb(){try{return await UPe({onlyHttps:!0})}catch{return"unknown"}}function Mn(){return new Date().toUTCString().replace(",","")}function WW(e,t,n,a,r){let i=At("address");return{distinct_id:i,user_ip:n,date_time:Mn(),os_version:a,node_version:process.version,cli_version:r,taskId:e,input:t,wallet_address:i}}function KW(e,t,n){let a=At("address");return{distinct_id:a,user_ip:e,date_time:Mn(),os_version:t,node_version:process.version,cli_version:n,wallet_address:a}}function YW(e,t,n,a,r,i,s){let o=At("address");return{distinct_id:o,user_ip:r,date_time:Mn(),os_version:i,node_version:process.version,cli_version:s,taskId:e,task_name:t,namespace:n,label:a,wallet_address:o}}function ZW(e,t,n,a,r){let i=At("address");return{distinct_id:i,user_ip:n,date_time:Mn(),os_version:a,node_version:process.version,cli_version:r,manifest:e,authType:t,wallet_address:i}}function XW(e,t,n,a){let r=At("address");return{distinct_id:r,user_ip:t,date_time:Mn(),os_version:n,node_version:process.version,cli_version:a,manifest:e,wallet_address:r}}function JW(e,t,n,a,r,i,s){let o=At("address");return{distinct_id:o,user_ip:r,date_time:Mn(),os_version:i,node_version:process.version,cli_version:s,taskId:e,namespace:t,taskname:n,authType:a,wallet_address:o}}function ud(e,t,n,a,r){let i=At("address"),s={distinct_id:i,user_ip:t,date_time:Mn(),os_version:n,node_version:process.version,cli_version:a,namespace:e,wallet_address:i};return r&&(s.address_to=r),s}function Cp(e,t,n,a,r,i,s){let o=At("address");return{distinct_id:o,user_ip:n,date_time:Mn(),os_version:a,node_version:process.version,cli_version:r,namespace:e,wallet_address:o,taskname:t,label:i,version:s}}function vb(e,t,n,a){let r=At("address");return{distinct_id:r,user_ip:t,date_time:Mn(),os_version:n,node_version:process.version,cli_version:a,api_key:e,wallet_address:r}}function QW(e,t,n,a,r){let i=At("address");return{distinct_id:i,user_ip:n,date_time:Mn(),os_version:a,node_version:process.version,cli_version:r,namespace:e,address_check:t,wallet_address:i}}function cs(e){let t=Ga(),n=t!==null,a=0;switch(!n||n&&(!t.privateKey||!t.address)?a=1:a=2,a){case 1:console.error(Jt.USER_NO_REGISTERED),process.exit(1);break;case 2:{e=ds.createSignedBody(e,t.privateKey,t.address);break}}return e}async function tK(e,t){if(!fc.existsSync(e))throw"Invalid source code path";let a=fc.readdirSync(e);if(a.length===0)throw"No files found in directory";let r=new eK.default;for(let d of a){let p=e+`/${d}`,b=fc.readFileSync(p),w=HPe.basename(p);r.append("files",b,w)}r.append("lang",t);let i={files:a,lang:t},s=cs(i),o=await Rr();return r.append("walletAddress",s.walletAddress),r.append("signature",JSON.stringify(s.signature)),r.append("fmpayload",JSON.stringify(i)),(await o.post("api/filesystem/pushLocal",r,{headers:{...r.getHeaders()}}).catch(d=>{Nr(d)})).data}var Yx=async(e,t)=>{let a=`./tmp.${zPe()}`;try{Wa.mkdirSync(a);let r=dc.join(process.cwd(),t);if(!Wa.existsSync(r))throw"Task path doesn't exist";if(e===Fn.C||e===Fn.RUST||e===Fn.JS||e===Fn.PYTHON){let l="config.json",d=dc.join(r,l);Wa.existsSync(d)||Wa.writeFileSync(d,JSON.stringify({run:{limits:{call:CP,frame:PP,gas:MP,memory:kP}}})),Wa.copyFileSync(d,dc.join(a,l));let p="fs.tar",b=dc.join(r,p);Wa.existsSync(b)&&Wa.copyFileSync(b,dc.join(a,p))}await eb.createBuild(e).build(t,a);let o=await tK(a,e);return Wa.rmSync(a,{recursive:!0}),o}catch(r){throw Wa.rmSync(a,{recursive:!0}),r}};import*as LK from"fs";import uK from"axios";import nke from"https";var{parse:VPe,stringify:GPe}=JSON,{keys:BWe}=Object,WPe=String,KPe="string";var nK="object",YPe=(e,t)=>t;var aK=(e,t,n)=>{let a=WPe(t.push(n)-1);return e.set(n,a),a};var ZPe=(e,t,n)=>{let a=t&&typeof t===nK?(p,b)=>p===""||-1<t.indexOf(p)?b:void 0:t||YPe,r=new Map,i=[],s=[],o=+aK(r,i,a.call({"":e},"",e)),l=!o;for(;o<i.length;)l=!0,s[o]=GPe(i[o++],d,n);return"["+s.join(",")+"]";function d(p,b){if(l)return l=!l,b;let w=a.call(this,p,b);switch(typeof w){case nK:if(w===null)return w;case KPe:return r.get(w)||aK(r,i,w)}return w}},Zx=e=>VPe(ZPe(e));var ake=dt(Dd(),1),VWe=dt(a8(),1),YWe=dt(Dd(),1),QWe=dt(w8(),1),nw=dt(Sa(),1),rKe=dt(po(),1),bf=dt(mo(),1),be=dt(Sa(),1),Ka=dt(Sa(),1),sKe=dt(po(),1),oe=dt(Sa(),1),w0=dt(mo(),1),oKe=dt(po(),1),xe=dt(Sa(),1),jn=dt(mo(),1),fKe=dt(po(),1),pr=dt(Sa(),1),iw=dt(mo(),1),Oe=dt(Sa(),1);import"node:os";import{v4 as ike}from"uuid";import"axios";import"axios";var pKe=dt(dd(),1),hKe=dt(dd(),1);var mKe=dt(dd(),1);var NK=dt(Jx(),1);import yke from"openapi-enforcer";import{isIP as gke}from"net";var tke=Object.defineProperty,Re=(e,t)=>tke(e,"name",{value:t,configurable:!0}),{format:GWe,createLogger:WWe,transports:KWe}=ake;process.setMaxListeners(0);var wb;(function(e){e.RUST="rs",e.C="c",e.JS="js",e.API="api",e.PYTHON="py"})(wb||(wb={}));var Qx;(function(e){e.API="api"})(Qx||(Qx={}));var rke={...wb,...Qx},XWe=Object.values(rke),JWe=Object.values(wb),pK;(function(e){e.JSON="application/json",e.WASM="application/wasm",e.PLAIN_TXT="text/plain",e.JS="application/x-javascript",e.TAR="application/x-tar"})(pK||(pK={}));var hK;(function(e){e.JSON="json",e.WASM="wasm",e.PLAIN_TXT="txt",e.JS="js",e.DTA="dta",e.PY="py",e.TAR="tar"})(hK||(hK={}));var mK;(function(e){e.LEDGER="ledger",e.HTTP_ADAPTER="http-adapter",e.EVENTS_ADAPTER="events-adapter",e.FILESYSTEM_ADAPTER="filesystem-adapter",e.WASM_CHECKPOINTER="wasm-checkpointer",e.WASM_INSTRUMENTER="wasm-instrumenter",e.WASM_RUNNER="wasm-runner"})(mK||(mK={}));var us;(function(e){e.FAILED="failed",e.SUCCEED="succeed",e.RUNNING="running"})(us||(us={}));var bK;(function(e){e.MINIO="minio",e.S3="s3"})(bK||(bK={}));var yK;(function(e){e.TASK_CREATED="task_created",e.TASK_SOLVED="task_solved",e.FILE_SYSTEM="file_system",e.DISPATCH_TASK="dispatch_task",e.DISPATCH_API_TASK="dispatch_api_task",e.MESSAGE_SAVED="message_saved",e.COMPUTED_OUTCOME="computed_outcome",e.API_FETCH="api_fetch",e.API_OUTCOME="api_outcome",e.API_SOLVED="api_solved",e.READY_TO_SHUTDOWN="ready_to_shutdown",e.INVOICE="invoice",e.SLASH_RESPONSE="slash_response",e.ENTITLEMENT="entitlement",e.HEALTH_CHECK="health_check",e.RUNNER_TASK_EXECUTED="runner_task_executed",e.DEPLOYER_EXECUTE_TASK="deployer_execute_task",e.DEPLOYER_TASK_EXECUTED="deployer_task_executed",e.HTTP_ADAPTER_TASK_EXECUTED="http_adapter_task_executed",e.HTTP_ADAPTER_TASK_INSTRUMENTED="http_adapter_task_instrumented",e.HTTP_ADAPTER_TASK_PUSHED="http_adapter_task_pushed",e.HTTP_ADAPTER_TASK_PULLED="http_adapter_task_pulled",e.HTTP_ADAPTER_TASK_CHECKPOINTED="http_adapter_task_checkpointed",e.HTTP_ADAPTER_TASK_CHECKPOINTS_LISTED="http_adapter_task_checkpoints_listed",e.HTTP_ADAPTER_READY_TO_SHUTDOWN="http_adapter_ready_to_shutdown",e.EVENTS_ADAPTER_TASK_EXECUTED="events_adapter_task_executed",e.EVENTS_ADAPTER_TASK_INSTRUMENTED="events_adapter_task_instrumented",e.EVENTS_ADAPTER_TASK_PUSHED="events_adapter_task_pushed",e.EVENTS_ADAPTER_TASK_PULLED="events_adapter_task_pulled",e.EVENTS_ADAPTER_TASK_CHECKPOINTED="events_adapter_task_checkpointed",e.EVENTS_ADAPTER_TASK_CHECKPOINTS_LISTED="events_adapter_task_checkpoints_listed",e.EVENTS_ADAPTER_COMPUTED_OUTCOME="events_adapter_compute_outcome",e.EVENTS_ADAPTER_TASK_CREATED="events_adapter_task_created",e.EVENTS_ADAPTER_NODE_DEREGISTERED="events_adapter_node_deregistered",e.EVENTS_ADAPTER_SERVICE_STARTED_CHECK="events_adapter_service_started_check",e.DISPATCHER_TASK_SOLVED_CLEAR="dispatcher_task_solved_clear",e.DISPATCHER_TASK_CREATED="dispatcher_task_created",e.WASM_INSTRUMENTER_INSTRUMENT_TASK="wasm_instrumenter_instrument_task",e.WASM_INSTRUMENTER_TASK_INSTRUMENTED="wasm_instrumenter_task_instrumented",e.FILESYSTEM_ADAPTER_PUSH_TASK="filesystem_adapter_push_task",e.FILESYSTEM_ADAPTER_TASK_PUSHED="filesystem_adapter_task_pushed",e.FILESYSTEM_ADAPTER_PULL_TASK="filesystem_adapter_pull_task",e.FILESYSTEM_ADAPTER_TASK_PULLED="filesystem_adapter_task_pulled",e.FILESYSTEM_ADAPTER_SERVICE_STARTED_CHECK="filesystem_adapter_service_started_check",e.WASM_CHECKPOINTER_CHECKPOINT_TASK="wasm_checkpointer_checkpoint_task",e.WASM_CHECKPOINTER_LIST_TASK_CHECKPOINTS="wasm_checkpointer_list_task_checkpoints",e.TRANSCRIPT_WRITER_SAVE_MESSAGE="transcript_writer_save_message",e.TRANSCRIPT_WRITER_INVOICE="transcript_writer_save_invoice",e.SEQUENCER_MESSAGE_SAVED="sequencer_message_saved",e.VERIFICATION_MESSAGE_SAVED="verification_message_saved",e.VERIFICATION_VALIDATE_MESSAGE="verification_validate_message",e.VERIFICATION_REVEAL_SOLUTION="verification_reveal_solution",e.VERIFICATION_ADJUDICATION_OUTCOME="verification_adjudication_outcome",e.VERIFICATION_ERRORS="verification_errors",e.LEDGER_SHUTDOWN="ledger_shutdown",e.LEDGER_SERVICE_STARTED="ledger_service_started"})(yK||(yK={}));var Dr;(function(e){e.TASK_INSTRUMENTED="task_instrumented",e.TASK_CREATED="task_created",e.API_TASK_CREATED="api_task_created",e.TASK_EXECUTED="task_executed",e.TASK_PUSHED="task_pushed",e.TASK_PULLED="task_pulled",e.TASK_CHECKPOINTED="task_checkpointed",e.TASK_CHECKPOINTS_LISTED="task_checkpoints_listed",e.COMPUTED_OUTCOME="computed_outcome",e.ADJUDICATION_OUTCOME="adjudication_outcome",e.MESSAGE_SAVED="message_saved",e.TASK_SOLVED="task_solved",e.TASK_SOLVED_CLEAR="task_solved_clear",e.NODE_OUTCOME="node_outcome",e.PLATFORM_ERRORS="errors",e.REVEAL_SOLUTIONS="reveal_solutions",e.SOLUTIONS_REVEALED="solutions_revealed",e.API_FETCHER_OUTCOME="api_fetcher_outcome",e.API_SOLVED="api_solved",e.API_OUTCOME="api_outcome",e.NODE_DEREGISTERED="node_deregistered",e.READY_TO_SHUTDOWN="ready_to_shutdown",e.EXECUTION_COMPLETED="execution_completed",e.SERVICE_STARTED="service_started",e.INVOICE="invoice",e.ENTITLEMENT_REQ="entitlement_req",e.ENTITLEMENT_RES="entitlement_res",e.HEALTH_CHECK="health_check",e.EXECUTION_METADATA="execution_metadata",e.REQUEST_SLASH="request_slash",e.SLASH_RESPONSE="slash_response"})(Dr||(Dr={}));var gK;(function(e){e.SHUTDOWN="shutdown",e.LIST_TASK_CHECKPOINTS="list_task_checkpoints",e.EXECUTE_TASK="execute_task",e.CHECKPOINT_TASK="checkpoint_task",e.INSTRUMENT_TASK="instrument_task",e.PUSH_TASK="push_task",e.PULL_TASK="pull_task",e.DISPATCH_TASK="dispatch_task",e.DISPATCH_API_TASK="dispatch_api_task",e.SAVE_MESSAGE="save_message",e.REVEAL_SOLUTION="reveal_solution",e.VALIDATE_MESSAGE="validate_message",e.API_FETCH="api_fetch",e.ENTITLEMENT="entitlement",e.HEALTH_CHECK="health_check",e.ADJUDICATION_OUTCOME="adjudication_outcome"})(gK||(gK={}));var vK;(function(e){e.ERRORS="errors",e.TASK_INSTRUMENTED="task_instrumented",e.TASK_CREATED="task_created",e.API_TASK_CREATED="api_task_created",e.TASK_EXECUTED="task_executed",e.TASK_PUSHED="task_pushed",e.TASK_SOLVED="task_solved",e.TASK_SOLVED_CLEAR="task_solved_clear",e.TASK_PULLED="task_pulled",e.TASK_CHECKPOINTED="task_checkpointed",e.TASK_CHECKPOINTS_LISTED="task_checkpoints_listed",e.COMPUTED_OUTCOME="computed_outcome",e.ADJUDICATION_OUTCOME="adjudication_outcome",e.MESSAGE_SAVED="message_saved",e.API_FETCHER_OUTCOME="api_fetcher_outcome",e.API_SOLVED="api_solved",e.API_OUTCOME="api_outcome",e.NODE_DEREGISTERED="node_deregistered",e.READY_TO_SHUTDOWN="ready_to_shutdown",e.SERVICE_STARTED="service_started",e.INVOICES="invoice",e.ENTITLEMENTS_REQ="entitlement_req",e.ENTITLEMENTS_RES="entitlement_res",e.HEALTH_CHECK="health_check",e.REQUEST_SLASH="request_slash",e.SLASH_RESPONSE="slash_response",e.SHUTDOWN="shutdown",e.LIST_TASK_CHECKPOINTS="list_task_checkpoints",e.EXECUTE_TASK="execute_task",e.CHECKPOINT_TASK="checkpoint_task",e.INSTRUMENT_TASK="instrument_task",e.PUSH_TASK="push_task",e.PULL_TASK="pull_task",e.DISPATCH_TASK="dispatch_task",e.DISPATCH_API_TASK="dispatch_api_task",e.SAVE_MESSAGE="save_message",e.REVEAL_SOLUTION="reveal_solution",e.VALIDATE_MESSAGE="validate_message",e.API_FETCH="api_fetch",e.DUMMY="DUMMY"})(vK||(vK={}));var _K;(function(e){e.VALIDATION_ERROR="validation_error"})(_K||(_K={}));var Ab;(function(e){e.GAME_PENDING="GamePending",e.READY_FOR_INVOICE="ReadyForInvoice",e.ERROR="Error"})(Ab||(Ab={}));var xK;(function(e){let t;(function(a){a.Pay="pay",a.Charge="charge",a.Penalty="penalty"})(t=e.Operation||(e.Operation={}));let n;(function(a){a.IS_USER_REGISTER="isUserRegister"})(n=e.EntitlementOperation||(e.EntitlementOperation={}))})(xK||(xK={}));var wK;(function(e){e.Pay="pay",e.Charge="charge",e.Penalty="penalty"})(wK||(wK={}));var aKe=[Dr.TASK_SOLVED,Dr.TASK_CREATED,Dr.API_TASK_CREATED,Dr.NODE_OUTCOME,Dr.SOLUTIONS_REVEALED,Dr.REVEAL_SOLUTIONS,Dr.API_OUTCOME,Dr.EXECUTION_COMPLETED,Dr.EXECUTION_METADATA,Dr.ADJUDICATION_OUTCOME];function mf(){return function(e,t){(0,nw.registerDecorator)({name:"IsUnixTimestamp",target:e.constructor,propertyName:t,validator:{validate(n){let a=n,r=new Date(a);return!isNaN(r.getTime())&&a>16725312e5}}})}}Re(mf,"IsUnixTimestamp");function aw(){return function(e,t){(0,nw.registerDecorator)({name:"IsUnixTimestamp",target:e.constructor,propertyName:t,validator:{validate(n){let a=n,r=new Date(a);return!isNaN(r.getTime())&&a>1672531200}}})}}Re(aw,"IsUnixTimestampSeconds");var _t=function(e,t,n,a){var r=arguments.length,i=r<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,a);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(r<3?s(i):r>3?s(t,n,i):s(t,n))||i);return r>3&&i&&Object.defineProperty(t,n,i),i},xt=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},ew;(function(e){e.FAILED="failed",e.SUCCEED="succeed",e.RUNNING="running"})(ew||(ew={}));var pf=class{static{Re(this,"EncryptedSolution")}iv;ephemPublicKey;ciphertext;mac;constructor(e,t,n,a){this.iv=e,this.ephemPublicKey=t,this.ciphertext=n,this.mac=a}};_t([(0,be.IsNotEmpty)(),(0,be.IsString)(),xt("design:type",String)],pf.prototype,"iv",void 0);_t([(0,be.IsNotEmpty)(),(0,be.IsString)(),xt("design:type",String)],pf.prototype,"ephemPublicKey",void 0);_t([(0,be.IsNotEmpty)(),(0,be.IsString)(),xt("design:type",String)],pf.prototype,"ciphertext",void 0);_t([(0,be.IsNotEmpty)(),(0,be.IsString)(),xt("design:type",String)],pf.prototype,"mac",void 0);var Qt=class{static{Re(this,"Signature")}v;r;s;constructor(e,t,n){this.v=e,this.r=t,this.s=n}};_t([(0,be.IsNotEmpty)(),(0,be.IsNumber)(),xt("design:type",Number)],Qt.prototype,"v",void 0);_t([(0,be.IsNotEmpty)(),(0,be.IsString)(),xt("design:type",String)],Qt.prototype,"r",void 0);_t([(0,be.IsNotEmpty)(),(0,be.IsString)(),xt("design:type",String)],Qt.prototype,"s",void 0);var cc=class{static{Re(this,"ExecutionOutputMeteringLast")}memoryGrowDelta;call;frame;steps;constructor(e,t,n,a){this.call=e,this.frame=t,this.steps=n,this.memoryGrowDelta=a}};_t([(0,be.IsNumber)(),(0,be.IsOptional)(),xt("design:type",Number)],cc.prototype,"memoryGrowDelta",void 0);_t([(0,be.IsNumber)(),(0,be.IsNotEmpty)(),xt("design:type",Number)],cc.prototype,"call",void 0);_t([(0,be.IsNumber)(),(0,be.IsNotEmpty)(),xt("design:type",Number)],cc.prototype,"frame",void 0);_t([(0,be.IsNumber)(),(0,be.IsNotEmpty)(),xt("design:type",Number)],cc.prototype,"steps",void 0);var uc=class{static{Re(this,"ExecutionOutputMeteringLimits")}call;frame;gas;memory;constructor(e,t,n,a){this.call=e,this.frame=t,this.gas=n,this.memory=a}};_t([(0,be.IsNumber)(),(0,be.IsNotEmpty)(),xt("design:type",Number)],uc.prototype,"call",void 0);_t([(0,be.IsNumber)(),(0,be.IsNotEmpty)(),xt("design:type",Number)],uc.prototype,"frame",void 0);_t([(0,be.IsNumber)(),(0,be.IsNotEmpty)(),xt("design:type",Number)],uc.prototype,"gas",void 0);_t([(0,be.IsNumber)(),(0,be.IsNotEmpty)(),xt("design:type",Number)],uc.prototype,"memory",void 0);var Op=class{static{Re(this,"ExecutionOutputMeteringPeak")}call;frame;memory;constructor(e,t,n){this.call=e,this.frame=t,this.memory=n}};_t([(0,be.IsNumber)(),(0,be.IsNotEmpty)(),xt("design:type",Number)],Op.prototype,"call",void 0);_t([(0,be.IsNumber)(),(0,be.IsNotEmpty)(),xt("design:type",Number)],Op.prototype,"frame",void 0);_t([(0,be.IsNumber)(),(0,be.IsNotEmpty)(),xt("design:type",Number)],Op.prototype,"memory",void 0);var tw=class{static{Re(this,"ExecutionOutputMeteringVersions")}protocol;constructor(e){this.protocol=e}};_t([(0,be.IsString)(),(0,be.IsNotEmpty)(),xt("design:type",String)],tw.prototype,"protocol",void 0);var hf=class{static{Re(this,"ExecutionOutputMetering")}last;limits;peak;versions;constructor(e,t,n,a){this.last=e,this.limits=t,this.peak=n,this.versions=a}};_t([(0,be.ValidateNested)(),(0,bf.Type)(()=>cc),xt("design:type",cc)],hf.prototype,"last",void 0);_t([(0,be.ValidateNested)(),(0,bf.Type)(()=>uc),xt("design:type",uc)],hf.prototype,"limits",void 0);_t([(0,be.ValidateNested)(),(0,bf.Type)(()=>Op),xt("design:type",Op)],hf.prototype,"peak",void 0);_t([(0,be.IsOptional)(),(0,be.ValidateNested)(),(0,bf.Type)(()=>tw),xt("design:type",tw)],hf.prototype,"versions",void 0);var pc=class{static{Re(this,"ClearTextSolution")}senderAddress;status;output;metering;constructor(e,t,n,a){this.senderAddress=e,this.status=t,this.output=n,this.metering=a}};_t([(0,be.IsNotEmpty)(),(0,be.IsEthereumAddress)(),xt("design:type",String)],pc.prototype,"senderAddress",void 0);_t([(0,be.IsNotEmpty)(),(0,be.IsEnum)(ew),xt("design:type",String)],pc.prototype,"status",void 0);_t([(0,be.IsOptional)(),(0,be.IsString)(),xt("design:type",String)],pc.prototype,"output",void 0);_t([(0,be.IsOptional)(),(0,be.ValidateNested)(),(0,bf.Type)(()=>hf),xt("design:type",hf)],pc.prototype,"metering",void 0);var rw=class{static{Re(this,"ClearTextSolutionSigned")}signature;clearTextSolution;constructor(e,t){this.signature=e,this.clearTextSolution=t}};_t([(0,be.ValidateNested)(),(0,bf.Type)(()=>Qt),xt("design:type",Qt)],rw.prototype,"signature",void 0);_t([(0,be.ValidateNested)(),(0,bf.Type)(()=>pc),xt("design:type",pc)],rw.prototype,"clearTextSolution",void 0);var Mo=class{static{Re(this,"WorkersParams")}blockNumber;selectionStrategy;setNodes;constructor(e,t,n){this.blockNumber=e,this.selectionStrategy=t,this.setNodes=n}};_t([(0,be.IsNotEmpty)(),(0,be.Min)(0),xt("design:type",Number)],Mo.prototype,"blockNumber",void 0);_t([(0,be.IsNotEmpty)(),(0,be.IsString)(),xt("design:type",String)],Mo.prototype,"selectionStrategy",void 0);_t([(0,be.ArrayNotEmpty)(),(0,be.IsNotEmpty)({each:!0}),(0,be.IsEthereumAddress)({each:!0}),xt("design:type",Array)],Mo.prototype,"setNodes",void 0);var ps=class{static{Re(this,"TaskExecutionLimitsParams")}gas;call;frame;memory;constructor(e,t,n,a){this.gas=e,this.call=t,this.frame=n,this.memory=a}};_t([(0,be.IsNotEmpty)(),(0,be.IsString)(),xt("design:type",String)],ps.prototype,"gas",void 0);_t([(0,be.IsNotEmpty)(),(0,be.IsString)(),xt("design:type",String)],ps.prototype,"call",void 0);_t([(0,be.IsNotEmpty)(),(0,be.IsString)(),xt("design:type",String)],ps.prototype,"frame",void 0);_t([(0,be.IsNotEmpty)(),(0,be.IsString)(),xt("design:type",String)],ps.prototype,"memory",void 0);var hs=class{static{Re(this,"EconParams")}reward;requiredSolutions;totalSolutions;executionTimeout;constructor(e,t,n,a){this.reward=e,this.requiredSolutions=t,this.totalSolutions=n,this.executionTimeout=a}};_t([(0,be.IsNotEmpty)(),(0,be.IsString)(),xt("design:type",String)],hs.prototype,"reward",void 0);_t([(0,be.Min)(1),(0,be.IsNotEmpty)(),(0,be.IsNumber)(),xt("design:type",Number)],hs.prototype,"requiredSolutions",void 0);_t([(0,be.Min)(1),(0,be.IsNotEmpty)(),(0,be.IsNumber)(),xt("design:type",Number)],hs.prototype,"totalSolutions",void 0);_t([(0,be.Min)(1),(0,be.IsNotEmpty)(),(0,be.IsNumber)(),xt("design:type",Number)],hs.prototype,"executionTimeout",void 0);var Sb=class{static{Re(this,"TotalTransferredBytes")}request;response;constructor(e,t){this.request=e,this.response=t}};_t([(0,be.IsNotEmpty)(),(0,be.IsNumber)(),xt("design:type",Number)],Sb.prototype,"request",void 0);_t([(0,be.IsNotEmpty)(),(0,be.IsNumber)(),xt("design:type",Number)],Sb.prototype,"response",void 0);var AK;(function(e){e.MINIO="minio",e.S3="s3"})(AK||(AK={}));var hc=function(e,t,n,a){var r=arguments.length,i=r<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,a);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(r<3?s(i):r>3?s(t,n,i):s(t,n))||i);return r>3&&i&&Object.defineProperty(t,n,i),i},mc=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},bc=class{static{Re(this,"BaseMessage")}msgType;messageId;payload;msgTimestamp=Date.now();constructor(e,t){this.msgType=this.constructor.name,this.messageId=t||ike(),this.payload=e}};hc([(0,Ka.IsNotEmpty)(),(0,Ka.IsString)(),mc("design:type",String)],bc.prototype,"msgType",void 0);hc([(0,Ka.IsOptional)(),(0,Ka.IsUUID)(),mc("design:type",String)],bc.prototype,"messageId",void 0);hc([(0,Ka.ValidateNested)(),mc("design:type",Object)],bc.prototype,"payload",void 0);hc([mf(),mc("design:type",Number)],bc.prototype,"msgTimestamp",void 0);var ske=class extends bc{static{Re(this,"FailedMessage")}error;constructor(e,t,n){super(t,n),this.error=e}};hc([(0,Ka.IsNotEmpty)(),(0,Ka.IsString)(),mc("design:type",String)],ske.prototype,"error",void 0);var oke=class extends bc{static{Re(this,"InvalidMessage")}error;constructor(e,t,n){super(t,n),this.error=e}};hc([(0,Ka.IsNotEmpty)(),(0,Ka.IsString)(),mc("design:type",String)],oke.prototype,"error",void 0);var Tb;(function(e){e.EVM="evm",e.AVALANCHE="avalanche"})(Tb||(Tb={}));var Ve=function(e,t,n,a){var r=arguments.length,i=r<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,a);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(r<3?s(i):r>3?s(t,n,i):s(t,n))||i);return r>3&&i&&Object.defineProperty(t,n,i),i},Ge=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},ms;(function(e){e.TASK_CREATED="task_created",e.API_TASK_CREATED="api_task_created",e.NODE_OUTCOME="node_outcome",e.TASK_SOLVED="task_solved",e.API_OUTCOME="api_outcome",e.SOLUTIONS_REVEALED="solutions_revealed",e.EXECUTION_COMPLETED="execution_completed",e.ADJUDICATION_OUTCOME="adjudication_outcome"})(ms||(ms={}));var A0=class{static{Re(this,"BaseTranscriptRecord")}type;executionId;message;msgHash;signature;sequencerAddress;timestamp;constructor(e,t,n,a,r,i,s){this.type=e,this.executionId=t,this.message=a,this.msgHash=n,this.signature=r,this.timestamp=s,this.sequencerAddress=i}};Ve([(0,oe.IsNotEmpty)(),(0,oe.IsEnum)(ms),Ge("design:type",String)],A0.prototype,"type",void 0);Ve([(0,oe.IsUUID)(),(0,oe.IsNotEmpty)(),Ge("design:type",String)],A0.prototype,"executionId",void 0);Ve([(0,oe.ValidateNested)(),Ge("design:type",Object)],A0.prototype,"message",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsHash)("sha256"),Ge("design:type",String)],A0.prototype,"msgHash",void 0);Ve([(0,oe.ValidateNested)(),(0,w0.Type)(()=>Qt),Ge("design:type",Qt)],A0.prototype,"signature",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsEthereumAddress)(),Ge("design:type",String)],A0.prototype,"sequencerAddress",void 0);Ve([mf(),(0,oe.IsNotEmpty)(),Ge("design:type",Number)],A0.prototype,"timestamp",void 0);var mn=class{static{Re(this,"TaskCreatedMessageParams")}type="dispatch_task";taskId;executionId;msgHash;signature;limits;econParams;workers;dispatcherTimestamp;taskRequesterTimestamp;ledgerName;blockHash;blockNumber;chainId;nodeRegistryContractAddress;taskRegistryContractAddress;taskAuthorizationContractAddress;taskRequesterAddress;taskPath;taskVersion;signedRequestBody;senderAddress;input;constructor(e,t,n,a,r,i,s,o,l,d,p,b,w,A,_,k,D,F,H,B,z,fe){this.taskId=e,this.executionId=t,this.msgHash=n,this.signature=a,this.limits=r,this.econParams=i,this.workers=s,this.dispatcherTimestamp=o,this.taskRequesterTimestamp=l,this.ledgerName=d,this.blockHash=p,this.blockNumber=b,this.chainId=w,this.nodeRegistryContractAddress=A,this.taskRegistryContractAddress=_,this.taskAuthorizationContractAddress=k,this.taskRequesterAddress=D,this.taskPath=F,this.taskVersion=H,this.signedRequestBody=fe,this.senderAddress=B,this.input=z}};Ve([(0,oe.IsNotEmpty)(),(0,oe.IsString)(),Ge("design:type",String)],mn.prototype,"taskId",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsUUID)(),Ge("design:type",String)],mn.prototype,"executionId",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsHash)("sha256"),Ge("design:type",String)],mn.prototype,"msgHash",void 0);Ve([(0,oe.ValidateNested)(),(0,w0.Type)(()=>Qt),Ge("design:type",Qt)],mn.prototype,"signature",void 0);Ve([(0,oe.ValidateNested)(),(0,w0.Type)(()=>ps),Ge("design:type",ps)],mn.prototype,"limits",void 0);Ve([(0,oe.ValidateNested)(),(0,w0.Type)(()=>hs),Ge("design:type",hs)],mn.prototype,"econParams",void 0);Ve([(0,oe.ValidateNested)(),(0,w0.Type)(()=>Mo),Ge("design:type",Mo)],mn.prototype,"workers",void 0);Ve([(0,oe.IsNotEmpty)(),aw(),Ge("design:type",Number)],mn.prototype,"dispatcherTimestamp",void 0);Ve([(0,oe.IsNotEmpty)(),aw(),Ge("design:type",Number)],mn.prototype,"taskRequesterTimestamp",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsEnum)(Tb),Ge("design:type",String)],mn.prototype,"ledgerName",void 0);Ve([(0,oe.IsNotEmpty)(),Ge("design:type",String)],mn.prototype,"blockHash",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.Min)(0),Ge("design:type",Number)],mn.prototype,"blockNumber",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsString)(),Ge("design:type",String)],mn.prototype,"chainId",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsEthereumAddress)(),Ge("design:type",String)],mn.prototype,"nodeRegistryContractAddress",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsEthereumAddress)(),Ge("design:type",String)],mn.prototype,"taskRegistryContractAddress",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsEthereumAddress)(),Ge("design:type",String)],mn.prototype,"taskAuthorizationContractAddress",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsEthereumAddress)(),Ge("design:type",String)],mn.prototype,"taskRequesterAddress",void 0);Ve([(0,oe.IsOptional)(),Ge("design:type",String)],mn.prototype,"taskPath",void 0);Ve([(0,oe.IsOptional)(),(0,oe.Min)(0),Ge("design:type",Number)],mn.prototype,"taskVersion",void 0);Ve([(0,oe.IsOptional)(),Ge("design:type",Object)],mn.prototype,"signedRequestBody",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsEthereumAddress)(),Ge("design:type",String)],mn.prototype,"senderAddress",void 0);Ve([(0,oe.IsOptional)(),(0,oe.Allow)(),Ge("design:type",String)],mn.prototype,"input",void 0);var Zn=class{static{Re(this,"APITaskCreatedMessageParams")}type="dispatch_task";taskId;executionId;msgHash;signature;ledgerName;blockHash;blockNumber;chainId;taskRegistryContractAddress;taskAuthorizationContractAddress;taskRequesterAddress;taskPath;taskVersion;senderAddress;executionTimeout;input;constructor(e,t,n,a,r,i,s,o,l,d,p,b,w,A,_,k){this.taskId=e,this.executionId=t,this.msgHash=n,this.signature=a,this.executionTimeout=_,this.ledgerName=i,this.blockHash=s,this.blockNumber=o,this.chainId=l,this.taskRegistryContractAddress=d,this.taskAuthorizationContractAddress=p,this.taskRequesterAddress=b,this.taskPath=w,this.taskVersion=A,this.senderAddress=r,this.input=k}};Ve([(0,oe.IsNotEmpty)(),(0,oe.IsString)(),Ge("design:type",String)],Zn.prototype,"taskId",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsUUID)(),Ge("design:type",String)],Zn.prototype,"executionId",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsHash)("sha256"),Ge("design:type",String)],Zn.prototype,"msgHash",void 0);Ve([(0,oe.ValidateNested)(),(0,w0.Type)(()=>Qt),Ge("design:type",Qt)],Zn.prototype,"signature",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsEnum)(Tb),Ge("design:type",String)],Zn.prototype,"ledgerName",void 0);Ve([(0,oe.IsNotEmpty)(),Ge("design:type",String)],Zn.prototype,"blockHash",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.Min)(0),Ge("design:type",Number)],Zn.prototype,"blockNumber",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsString)(),Ge("design:type",String)],Zn.prototype,"chainId",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsEthereumAddress)(),Ge("design:type",String)],Zn.prototype,"taskRegistryContractAddress",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsEthereumAddress)(),Ge("design:type",String)],Zn.prototype,"taskAuthorizationContractAddress",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsEthereumAddress)(),Ge("design:type",String)],Zn.prototype,"taskRequesterAddress",void 0);Ve([(0,oe.IsOptional)(),Ge("design:type",String)],Zn.prototype,"taskPath",void 0);Ve([(0,oe.IsOptional)(),(0,oe.Min)(0),Ge("design:type",Number)],Zn.prototype,"taskVersion",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsEthereumAddress)(),Ge("design:type",String)],Zn.prototype,"senderAddress",void 0);Ve([(0,oe.IsNumber)(),Ge("design:type",Number)],Zn.prototype,"executionTimeout",void 0);Ve([(0,oe.IsOptional)(),(0,oe.Allow)(),Ge("design:type",String)],Zn.prototype,"input",void 0);var pd=class{static{Re(this,"NodeOutcomeMessageParams")}executionId;senderAddress;encryptedSolution;msgHash;signature;constructor(e,t,n,a,r){this.executionId=e,this.signature=r,this.encryptedSolution=n,this.senderAddress=t,this.msgHash=a}};Ve([(0,oe.IsUUID)(),(0,oe.IsNotEmpty)(),Ge("design:type",String)],pd.prototype,"executionId",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsEthereumAddress)(),Ge("design:type",String)],pd.prototype,"senderAddress",void 0);Ve([(0,oe.ValidateNested)(),(0,w0.Type)(()=>pf),Ge("design:type",pf)],pd.prototype,"encryptedSolution",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsHash)("sha256"),Ge("design:type",String)],pd.prototype,"msgHash",void 0);Ve([(0,oe.ValidateNested)(),(0,w0.Type)(()=>Qt),Ge("design:type",Qt)],pd.prototype,"signature",void 0);var Co=class{static{Re(this,"ApiOutcomeMessageParams")}executionId;senderAddress;bodyResponse;msgHash;signature;tlsHandshakeHash;status;totalTransferredBytes;constructor(e,t,n,a,r,i,s,o){this.executionId=e,this.signature=r,this.bodyResponse=n,this.tlsHandshakeHash=i,this.senderAddress=t,this.msgHash=a,this.status=s,this.totalTransferredBytes=o}};Ve([(0,oe.IsUUID)(),(0,oe.IsNotEmpty)(),Ge("design:type",String)],Co.prototype,"executionId",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsEthereumAddress)(),Ge("design:type",String)],Co.prototype,"senderAddress",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsHash)("sha256"),Ge("design:type",String)],Co.prototype,"msgHash",void 0);Ve([(0,oe.ValidateNested)(),(0,w0.Type)(()=>Qt),Ge("design:type",Qt)],Co.prototype,"signature",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsString)(),Ge("design:type",String)],Co.prototype,"tlsHandshakeHash",void 0);Ve([(0,oe.IsNotEmpty)(),(0,oe.IsString)(),Ge("design:type",String)],Co.prototype,"status",void 0);Ve([(0,oe.ValidateNested)(),(0,w0.Type)(()=>Sb),Ge("design:type",Sb)],Co.prototype,"totalTransferredBytes",void 0);var ut=function(e,t,n,a){var r=arguments.length,i=r<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,a);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(r<3?s(i):r>3?s(t,n,i):s(t,n))||i);return r>3&&i&&Object.defineProperty(t,n,i),i},pt=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},yf=class{static{Re(this,"DispatchTaskPayload")}executionId;msgHash;signature;limits;econParams;workers;senderAddress;input;constructor(e,t,n,a,r,i,s,o){this.executionId=e,this.msgHash=t,this.signature=n,this.limits=a,this.econParams=r,this.workers=i,this.senderAddress=s,this.input=o}};ut([(0,xe.IsUUID)(),(0,xe.IsNotEmpty)(),pt("design:type",String)],yf.prototype,"executionId",void 0);ut([(0,xe.IsNotEmpty)(),(0,xe.IsHash)("sha256"),pt("design:type",String)],yf.prototype,"msgHash",void 0);ut([(0,xe.ValidateNested)(),(0,jn.Type)(()=>Qt),pt("design:type",Qt)],yf.prototype,"signature",void 0);ut([(0,xe.ValidateNested)(),(0,jn.Type)(()=>ps),pt("design:type",ps)],yf.prototype,"limits",void 0);ut([(0,xe.ValidateNested)(),(0,jn.Type)(()=>hs),pt("design:type",hs)],yf.prototype,"econParams",void 0);ut([(0,xe.ValidateNested)(),(0,jn.Type)(()=>Mo),pt("design:type",Mo)],yf.prototype,"workers",void 0);ut([(0,xe.IsNotEmpty)(),(0,xe.IsString)(),pt("design:type",String)],yf.prototype,"senderAddress",void 0);ut([(0,xe.IsNotEmpty)(),(0,xe.IsString)(),pt("design:type",String)],yf.prototype,"input",void 0);var Eb=class{static{Re(this,"UnsignedDispatchTaskPayload")}executionId;limits;econParams;workers;input;constructor(e,t,n,a,r){this.executionId=e,this.limits=t,this.econParams=n,this.workers=a,this.input=r}};ut([(0,xe.IsUUID)(),(0,xe.IsNotEmpty)(),pt("design:type",String)],Eb.prototype,"executionId",void 0);ut([(0,xe.ValidateNested)(),(0,jn.Type)(()=>ps),pt("design:type",ps)],Eb.prototype,"limits",void 0);ut([(0,xe.ValidateNested)(),(0,jn.Type)(()=>hs),pt("design:type",hs)],Eb.prototype,"econParams",void 0);ut([(0,xe.ValidateNested)(),(0,jn.Type)(()=>Mo),pt("design:type",Mo)],Eb.prototype,"workers",void 0);var fke=class extends A0{static{Re(this,"NodeOutcomePayload")}message;constructor(e,t,n,a,r,i){super(ms.NODE_OUTCOME,e,t,n,a,r,i),this.message=n,this.executionId=e,this.msgHash=t,this.signature=a,this.timestamp=i,this.sequencerAddress=r,this.message=n}};ut([(0,xe.ValidateNested)(),(0,jn.Type)(()=>pd),pt("design:type",pd)],fke.prototype,"message",void 0);var dke=class extends A0{static{Re(this,"ApiOutcomePayload")}message;constructor(e,t,n,a,r,i){super(ms.API_OUTCOME,e,t,n,a,r,i),this.message=n,this.executionId=e,this.msgHash=t,this.signature=a,this.timestamp=i,this.sequencerAddress=r}};ut([(0,xe.ValidateNested)(),(0,jn.Type)(()=>Co),pt("design:type",Co)],dke.prototype,"message",void 0);var hd=class{static{Re(this,"ExecutionCompletedPayload")}type;executionId;transcriptHash;status;signature;signerAddress;timestamp;constructor(e,t,n,a,r,i){this.type=ms.EXECUTION_COMPLETED,this.executionId=e,this.transcriptHash=t,this.status=n,this.signature=a,this.signerAddress=r,this.timestamp=i}};ut([(0,xe.IsNotEmpty)(),(0,xe.IsString)(),pt("design:type",String)],hd.prototype,"type",void 0);ut([(0,xe.IsUUID)(),(0,xe.IsNotEmpty)(),pt("design:type",String)],hd.prototype,"executionId",void 0);ut([(0,xe.IsNotEmpty)(),(0,xe.IsHash)("sha256"),pt("design:type",String)],hd.prototype,"transcriptHash",void 0);ut([(0,xe.IsNotEmpty)(),(0,xe.IsEnum)(Ab),pt("design:type",String)],hd.prototype,"status",void 0);ut([(0,xe.ValidateNested)(),(0,jn.Type)(()=>Qt),pt("design:type",Qt)],hd.prototype,"signature",void 0);ut([(0,xe.IsNotEmpty)(),(0,xe.IsString)(),pt("design:type",String)],hd.prototype,"signerAddress",void 0);ut([mf(),(0,xe.IsNotEmpty)(),pt("design:type",Number)],hd.prototype,"timestamp",void 0);var gf=class{static{Re(this,"AdjudicationOutcomePayload")}type;executionId;status;signature;senderAddress;timestamp;output;metering;constructor(e,t,n,a,r,i,s){this.type=ms.ADJUDICATION_OUTCOME,this.executionId=e,this.status=t,this.signature=n,this.senderAddress=a,this.output=i,this.metering=s,this.timestamp=r}};ut([(0,xe.IsNotEmpty)(),(0,xe.IsString)(),pt("design:type",String)],gf.prototype,"type",void 0);ut([(0,xe.IsUUID)(),(0,xe.IsNotEmpty)(),pt("design:type",String)],gf.prototype,"executionId",void 0);ut([(0,xe.IsNotEmpty)(),(0,xe.IsEnum)(Ab),pt("design:type",String)],gf.prototype,"status",void 0);ut([(0,xe.ValidateNested)(),(0,jn.Type)(()=>Qt),pt("design:type",Qt)],gf.prototype,"signature",void 0);ut([(0,xe.IsNotEmpty)(),(0,xe.IsString)(),pt("design:type",String)],gf.prototype,"senderAddress",void 0);ut([mf(),(0,xe.IsNotEmpty)(),pt("design:type",Number)],gf.prototype,"timestamp",void 0);ut([(0,xe.IsOptional)(),(0,xe.IsString)(),pt("design:type",String)],gf.prototype,"output",void 0);ut([(0,xe.IsOptional)(),(0,xe.ValidateNested)(),(0,jn.Type)(()=>hf),pt("design:type",hf)],gf.prototype,"metering",void 0);var yc=class{static{Re(this,"SolutionsRevealedPayload")}type;executionId;signature;clearTextSolutions;sequencerAddress;msgHash;timestamp;constructor(e,t,n,a,r,i){this.type=ms.SOLUTIONS_REVEALED,this.executionId=e,this.signature=t,this.clearTextSolutions=n,this.sequencerAddress=a,this.msgHash=r,this.timestamp=i}};ut([(0,xe.IsUUID)(),(0,xe.IsNotEmpty)(),pt("design:type",String)],yc.prototype,"executionId",void 0);ut([(0,xe.ValidateNested)(),(0,jn.Type)(()=>Qt),pt("design:type",Qt)],yc.prototype,"signature",void 0);ut([(0,xe.ValidateNested)({each:!0}),(0,jn.Type)(()=>rw),pt("design:type",Array)],yc.prototype,"clearTextSolutions",void 0);ut([(0,xe.IsNotEmpty)(),(0,xe.IsEthereumAddress)(),pt("design:type",String)],yc.prototype,"sequencerAddress",void 0);ut([(0,xe.IsNotEmpty)(),(0,xe.IsHash)("sha256"),pt("design:type",String)],yc.prototype,"msgHash",void 0);ut([mf(),(0,xe.IsNotEmpty)(),pt("design:type",Number)],yc.prototype,"timestamp",void 0);var md=class extends A0{static{Re(this,"TaskCreatedPayload")}executionId;msgHash;message;signature;publicKey;sequencerAddress;timestamp;constructor(e,t,n,a,r,i,s){super(ms.TASK_CREATED,e,t,n,a,i,s),this.message=n,this.executionId=e,this.msgHash=t,this.signature=a,this.timestamp=s,this.sequencerAddress=i,this.publicKey=r,this.message=n}};ut([(0,xe.IsNotEmpty)(),(0,xe.IsUUID)(),pt("design:type",String)],md.prototype,"executionId",void 0);ut([(0,xe.IsNotEmpty)(),(0,xe.IsHash)("sha256"),pt("design:type",String)],md.prototype,"msgHash",void 0);ut([(0,xe.ValidateNested)(),(0,jn.Type)(()=>mn),pt("design:type",mn)],md.prototype,"message",void 0);ut([(0,xe.ValidateNested)(),(0,jn.Type)(()=>Qt),pt("design:type",Qt)],md.prototype,"signature",void 0);ut([(0,xe.IsNotEmpty)(),(0,xe.IsString)(),pt("design:type",String)],md.prototype,"publicKey",void 0);ut([(0,xe.IsNotEmpty)(),(0,xe.IsEthereumAddress)(),pt("design:type",String)],md.prototype,"sequencerAddress",void 0);ut([mf(),(0,xe.IsNotEmpty)(),pt("design:type",Number)],md.prototype,"timestamp",void 0);var bd=class extends A0{static{Re(this,"APITaskCreatedPayload")}executionId;msgHash;message;signature;publicKey;sequencerAddress;timestamp;constructor(e,t,n,a,r,i,s){super(ms.API_TASK_CREATED,e,t,n,a,i,s),this.message=n,this.executionId=e,this.msgHash=t,this.signature=a,this.timestamp=s,this.sequencerAddress=i,this.publicKey=r,this.message=n}};ut([(0,xe.IsNotEmpty)(),(0,xe.IsUUID)(),pt("design:type",String)],bd.prototype,"executionId",void 0);ut([(0,xe.IsNotEmpty)(),(0,xe.IsHash)("sha256"),pt("design:type",String)],bd.prototype,"msgHash",void 0);ut([(0,xe.ValidateNested)(),(0,jn.Type)(()=>Zn),pt("design:type",Zn)],bd.prototype,"message",void 0);ut([(0,xe.ValidateNested)(),(0,jn.Type)(()=>Qt),pt("design:type",Qt)],bd.prototype,"signature",void 0);ut([(0,xe.IsNotEmpty)(),(0,xe.IsString)(),pt("design:type",String)],bd.prototype,"publicKey",void 0);ut([(0,xe.IsNotEmpty)(),(0,xe.IsEthereumAddress)(),pt("design:type",String)],bd.prototype,"sequencerAddress",void 0);ut([mf(),(0,xe.IsNotEmpty)(),pt("design:type",Number)],bd.prototype,"timestamp",void 0);var $p=function(e,t,n,a){var r=arguments.length,i=r<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,a);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(r<3?s(i):r>3?s(t,n,i):s(t,n))||i);return r>3&&i&&Object.defineProperty(t,n,i),i},Rp=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},Np=class{static{Re(this,"ComputedOutcomePayload")}executionId;msgHash;signature;senderAddress;encryptedSolution;constructor(e,t,n,a,r){this.executionId=e,this.msgHash=t,this.signature=n,this.senderAddress=a,this.encryptedSolution=r}};$p([(0,pr.IsUUID)(),(0,pr.IsNotEmpty)(),Rp("design:type",String)],Np.prototype,"executionId",void 0);$p([(0,pr.IsNotEmpty)(),(0,pr.IsHash)("sha256"),Rp("design:type",String)],Np.prototype,"msgHash",void 0);$p([(0,pr.ValidateNested)(),(0,iw.Type)(()=>Qt),Rp("design:type",Qt)],Np.prototype,"signature",void 0);$p([(0,pr.IsNotEmpty)(),(0,pr.IsEthereumAddress)(),Rp("design:type",String)],Np.prototype,"senderAddress",void 0);$p([(0,pr.ValidateNested)(),(0,iw.Type)(()=>pf),Rp("design:type",pf)],Np.prototype,"encryptedSolution",void 0);var Vt=function(e,t,n,a){var r=arguments.length,i=r<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,a);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(r<3?s(i):r>3?s(t,n,i):s(t,n))||i);return r>3&&i&&Object.defineProperty(t,n,i),i},Gt=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},lke=class{static{Re(this,"PushTaskPayload")}taskId;constructor(e){this.taskId=e}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],lke.prototype,"taskId",void 0);var cke=class{static{Re(this,"PullTaskPayload")}taskId;constructor(e){this.taskId=e}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],cke.prototype,"taskId",void 0);var sw=class{static{Re(this,"CheckpointTaskPayload")}input;checkpoint;taskId;constructor(e,t,n){this.taskId=e,this.checkpoint=t,this.input=n}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],sw.prototype,"input",void 0);Vt([(0,Oe.IsNotEmpty)(),Gt("design:type",Object)],sw.prototype,"checkpoint",void 0);Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],sw.prototype,"taskId",void 0);var TK=class{static{Re(this,"ListTaskCheckpointPayload")}input;taskId;constructor(e,t){this.taskId=e,this.input=t}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],TK.prototype,"input",void 0);Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],TK.prototype,"taskId",void 0);var ow=class{static{Re(this,"ExecuteTaskPayload")}executionId;input;taskId;constructor(e,t,n){this.taskId=e,this.executionId=t,this.input=n}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsUUID)(),Gt("design:type",String)],ow.prototype,"executionId",void 0);Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],ow.prototype,"input",void 0);Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],ow.prototype,"taskId",void 0);var EK=class{static{Re(this,"InstrumentTaskPayload")}instrumentationId;taskId;constructor(e,t){this.taskId=e,this.instrumentationId=t}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsUUID)(),Gt("design:type",String)],EK.prototype,"instrumentationId",void 0);Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],EK.prototype,"taskId",void 0);var uke=class{static{Re(this,"TaskPushedPayload")}taskId;constructor(e){this.taskId=e}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],uke.prototype,"taskId",void 0);var pke=class{static{Re(this,"TaskPulledPayload")}taskId;constructor(e){this.taskId=e}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],pke.prototype,"taskId",void 0);var hke=class{static{Re(this,"TaskPulledFailedPayload")}taskId;constructor(e){this.taskId=e}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],hke.prototype,"taskId",void 0);var IK=class{static{Re(this,"TaskCheckpointedPayload")}checkpointHash;taskId;constructor(e,t){this.taskId=e,this.checkpointHash=t}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],IK.prototype,"checkpointHash",void 0);Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],IK.prototype,"taskId",void 0);var mke=class{static{Re(this,"TaskCheckpointedFailedPayload")}taskId;constructor(e){this.taskId=e}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],mke.prototype,"taskId",void 0);var MK=class{static{Re(this,"TaskCheckpointsListedPayload")}checkpointCount;taskId;constructor(e,t){this.taskId=e,this.checkpointCount=t}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsNumber)(),Gt("design:type",Number)],MK.prototype,"checkpointCount",void 0);Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],MK.prototype,"taskId",void 0);var bke=class{static{Re(this,"TaskCheckpointsListFailedPayload")}taskId;constructor(e,t){this.taskId=t}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],bke.prototype,"taskId",void 0);var fw=class{static{Re(this,"TaskExecutedPayload")}executionId;output;taskId;constructor(e,t,n){this.taskId=e,this.executionId=t,this.output=n}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsUUID)(),Gt("design:type",String)],fw.prototype,"executionId",void 0);Vt([(0,Oe.IsOptional)(),(0,Oe.IsString)(),Gt("design:type",String)],fw.prototype,"output",void 0);Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],fw.prototype,"taskId",void 0);var CK=class{static{Re(this,"TaskExecutionFailedPayload")}executionId;taskId;constructor(e,t,n){this.taskId=t,this.executionId=n}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsUUID)(),Gt("design:type",String)],CK.prototype,"executionId",void 0);Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],CK.prototype,"taskId",void 0);var Ib=class{static{Re(this,"TaskInstrumentedPayload")}instrumentationId;output;taskId;instrumentedTaskId;constructor(e,t,n,a){this.taskId=e,this.instrumentationId=t,this.output=a,this.instrumentedTaskId=n}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsUUID)(),Gt("design:type",String)],Ib.prototype,"instrumentationId",void 0);Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],Ib.prototype,"output",void 0);Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],Ib.prototype,"taskId",void 0);Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],Ib.prototype,"instrumentedTaskId",void 0);var PK=class{static{Re(this,"TaskInstrumentedFailedPayload")}instrumentationId;taskId;constructor(e,t,n){this.taskId=t,this.instrumentationId=n}};Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsUUID)(),Gt("design:type",String)],PK.prototype,"instrumentationId",void 0);Vt([(0,Oe.IsNotEmpty)(),(0,Oe.IsString)(),Gt("design:type",String)],PK.prototype,"taskId",void 0);var SK;(function(e){e.ACTIVE="active",e.INACTIVE="inactive"})(SK||(SK={}));async function dw(e,t,n,a,r){let i=n.body,s=n.method.toLowerCase(),o,l={},d=0,p=0,b={...a,"x-service-name":"truebit-api-adapter"};["post","put","patch"].includes(s)?o=e+t.path:o=`${e}${kK(t.path,t.params||{})}`;let w=uK.create({headers:{Connection:"keep-alive"},httpsAgent:new nke.Agent({keepAlive:!0}).on("keylog",(A,_)=>{let k=_.getSession(),D=Buffer.from(k).toString("hex").toUpperCase();l={tlsCert:Zx(_.getPeerCertificate(!0)),localCertificate:Zx(_.getCertificate()),ephemeral:_.getEphemeralKeyInfo(),cipher:_.getCipher(),session:D,ticket:_.getTLSTicket(),localAddress:_.localAddress,sharedSigAlgs:_.getSharedSigalgs(),remoteAddress:_.remoteAddress,protocol:_.getProtocol()}}),maxContentLength:1/0,maxBodyLength:1/0});w.interceptors.request.use(A=>{let _=A.data?JSON.stringify(A.data):"";return d=(A.url?.length||0)+(_.length||0)+JSON.stringify(A.headers).length,A}),w.interceptors.response.use(A=>(p=JSON.stringify(A.data).length+JSON.stringify(A.headers).length,A));try{let A;switch(s){case"get":A=await w.get(o,{headers:b,timeout:r});break;case"patch":A=await w.patch(o,i,{headers:b,timeout:r});break;case"post":A=await w.post(o,i,{headers:b,timeout:r});break;case"put":A=await w.put(o,i,{headers:b,timeout:r});break;case"delete":A=await w.delete(o,{headers:b,timeout:r});break;default:throw new Error("Unsupported HTTP method")}return[A.data,JSON.stringify(l),us.SUCCEED,d,p]}catch(A){let _,k;return A.response&&A.response.data?k=JSON.stringify(A.response.data):k=A.message,uK.isAxiosError(A)?_=A.response||{data:k,status:500,statusText:"",headers:{},config:{headers:{}}}:_={data:k,status:500,statusText:"",headers:{},config:{headers:{}}},[_.data,JSON.stringify(l),us.FAILED,d,p]}}Re(dw,"handleAxiosCall");function kK(e,t){if(t)for(let n in t){let a=t[n];e=e.replace(new RegExp(`{${n}}`,"g"),a)}return e}Re(kK,"applyPathParams");function OK(e){let t=e.split(".").map(Number);return t.length!==4||t.some(n=>isNaN(n)||n<0||n>255)?!1:t[0]===10||t[0]===172&&t[1]>=16&&t[1]<=31||t[0]===192&&t[1]===168||t[0]===127||t[0]===169&&t[1]===254}Re(OK,"isPrivateIP");function $K(e){if(["local","testnet","staging"].includes(process.env.TRUEBIT_ENV))return[!0,""];try{let t=new URL(e),n=t.hostname;if(!["http:","https:"].includes(t.protocol))return[!1,"Only HTTP and HTTPS protocols are allowed"];if(gke(n)){if(OK(n))return[!1,"Internal IP addresses are not allowed"]}else{let a=[".local",".internal",".cluster.local","localhost","kubernetes","kubernetes.default","kubernetes.default.svc","kubernetes.default.svc.cluster.local"],r=n.toLowerCase();for(let i of a)if(r===i||r.endsWith(i))return[!1,"Internal domains are not allowed"]}return[!0,""]}catch{return[!1,"Invalid URL format"]}}Re($K,"validateExternalUrl");function RK(e){let t=e.servers;if(t&&t.length>0){let n=t[0],a=n.url;return n.variables&&Object.keys(n.variables).forEach(r=>{let i=n.variables[r],s=i.default||i.enum&&i.enum[0];if(s!==void 0)a=a.replace(`{${r}}`,s);else throw new Error(`No default value found for variable ${r}`)}),a}else throw new Error("No servers defined in OpenAPI document")}Re(RK,"getBaseURLFromOpenAPI");function Mb(e,t){let n=t.method;if(["POST","PUT","PATCH"].includes(n))return{host:e,path:t.path,method:n,body:t.body,headers:{}};if(n==="GET"||n==="DELETE"){let a=t.path,r=t.params,i=a.replace(/{(\w+)}/g,(s,o)=>r?.[o]??"");return{host:e,path:i,method:n,headers:{}}}else throw console.error("Unsupported method:",n),new Error("Api_Adapter create request error format")}Re(Mb,"createRequest");async function lw(e,t){try{let n=await yke(e),a=RK(n),[r,i]=$K(a);if(!r)return console.warn(`Manifest-based call blocked: ${i} - baseURL: ${a}`),["",`Security: ${i}`,us.FAILED];let s=Mb(a,t),[o,l]=n.request(s);return l?["",l,us.FAILED]:[a,"",us.SUCCEED]}catch(n){return console.log(n),["",n,us.FAILED]}}Re(lw,"handleEnforcerManifestCheck");async function cw(e){try{let t=JSON.parse(e);return[{path:t.path.toString(),method:t.method.toString(),body:t.body,params:t.params,headers:{}},"",us.SUCCEED]}catch(t){return console.error("Invalid JSON format:",t),[null,"Api_Adapter create request input format",us.FAILED]}}Re(cw,"createRequestInput");var uw=class{static{Re(this,"AuthMethod")}tokens=[];authInputs;parse(e,t){let n=this.parseKeyValuePairs(t);if(e.length==0){this.authInputs=n;return}let a=Object.keys(n);if(e.every(r=>a.includes(r))){let r={};for(let i of e)r[i]=n[i];this.authInputs=r}else throw new Error(`Invalid authString: ${e} are required`)}parseKeyValuePairs(e){try{let t=e.split(","),n={};for(let a of t){let[r,i]=a.split(":");n[r.trim()]=i.trim()}return n}catch{throw new Error("Invalid auth string")}}},vke=class extends uw{static{Re(this,"AwsSignature")}tokens=["accessKey","secretKey"];constructor(e){super(),this.parse(this.tokens,e)}authHeaders(e){return NK.default.sign(e,{accessKeyId:this.authInputs.accessKey,secretAccessKey:this.authInputs.secretKey}).headers||{}}},_ke=class extends uw{static{Re(this,"BasicAuth")}tokens=["username","password"];constructor(e){super(),this.parse(this.tokens,e)}authHeaders(e){return{Authorization:`Basic ${btoa(`${this.authInputs.username}:${this.authInputs.password}`)}`}}},xke=class extends uw{static{Re(this,"CustomHeader")}tokens=[];constructor(e){super(),this.parse([],e)}authHeaders(e){return{...this.authInputs}}},lc;(function(e){e.AWS_SIGNATURE="aws-signature",e.BASIC_AUTH="basic-auth",e.CUSTOM_HEADER="custom-header"})(lc||(lc={}));var wke=Re((e,t)=>{switch(e){case lc.AWS_SIGNATURE:return new vke(t);case lc.BASIC_AUTH:return new _ke(t);case lc.CUSTOM_HEADER:return new xke(t);default:throw new Error(`Invalid authentication method specified. Should be one of <${Object.values(lc)}>`)}},"createApiAuthParser"),DK=Re((e,t,n)=>wke(e,t).authHeaders(n),"handleGetAuthHeaders");import S0 from"chalk";var pw=async(e,t,n,a)=>{let r="",i=LK.readFileSync(t,"utf8"),s=JSON.parse(i).input,o=JSON.parse(i).executionTimeout,[l,d,p]=await cw(JSON.stringify(s));if(r+=`${S0.cyanBright(`
215
215
  Input request :
216
216
  `)}`,r+=JSON.stringify(l,null,2)+`
217
217
  `,l===null)throw r+=`Invalid message input - ${S0.red("FAIL")}
@@ -224,7 +224,7 @@ API Task response`)}
224
224
  `,r+=S0.green(JSON.stringify(_,null,2)),console.log(`API Task executed with status - ${S0.green("OK")} `),console.log(r)}else throw console.info(`Axios call - ${S0.red("ERROR")} `),console.log(r),new Error(`Invalid message input ${w}`)};import{Wallet as Ake}from"ethers";function BK(e){return/^[a-f0-9]{64}$/gi.test(e)}function qK(e){try{new Ake(e)}catch{return!1}return!0}var gc=e=>{let t=e.split("_");return!!BK(t[t.length-1])};function Dp(e){if(!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(e))throw new Error("Invalid API key format")}import{ethers as Ske}from"ethers";import hw from"axios";async function FK(e,t,n,a,r,i){let s={user:e,namespace:t,nonce:BigInt(n),deadline:a,signatureMeta:r};try{let o=await uf(),l={...s};return l.nonce=String(s.nonce),await o.post("user/relayer/namespace",l,{params:{fromSetup:i}})}catch(o){throw hw.isAxiosError(o)?o.response?new Error(`The server responding with an error - ${o.response.status+" - "+o.response.statusText+" - "+o.response.data.message}.`):o.request?new Error(`The server is not responding - ${o.message}.`):new Error(`There was an error in the communication with the server - ${o.message}.`):typeof o=="string"?new Error(`There was an error in the communication with the server -> ${o}`):new Error("There was an error in the communication with the server.")}}async function UK(e,t,n,a,r){let i={user:e,apiKeyHash:t,deadline:n,signatureMeta:a};try{return await(await uf()).post("user/relayer/auth",i,{params:{fromSetup:r}})}catch(s){throw hw.isAxiosError(s)?s.response?new Error(`The server responding with an error - ${s.response.status+" - "+s.response.statusText+" - "+s.response.data.message}.`):s.request?new Error(`The server is not responding - ${s.message}.`):new Error(`There was an error in the communication with the server - ${s.message}.`):typeof s=="string"?new Error(`There was an error in the communication with the server -> ${s}`):new Error("There was an error in the communication with the server.")}}async function jK(e,t,n,a,r,i,s){let o={user:e,namespace:t,taskName:n,task:a,nonce:BigInt(r),deadline:i,signatureMeta:s};try{let l=await uf(),d={...o};return d.nonce=String(o.nonce),await l.post("user/relayer/task",d)}catch(l){throw hw.isAxiosError(l)?l.response?new Error(`The server responding with an error - ${l.response.status+" - "+l.response.statusText+" - "+l.response.data.message}.`):l.request?new Error(`The server is not responding - ${l.message}.`):new Error(`There was an error in the communication with the server - ${l.message}.`):typeof l=="string"?new Error(`There was an error in the communication with the server -> ${l}`):new Error("There was an error in the communication with the server.")}}async function Cb(e,t,n=null,a=At("blockchainEnv")){Ta(e,"Namespace");let r,i=dn(a),s=At("address");if(!s)throw`Please provide an address property in '${ls()}/.truebit/secret.json'`;return n?r=await i.taskRegistry.registerTaskNamespace(e):r=await Tke(s,e,i,t),r}async function Tke(e,t,n,a){let r=await n.taskRegistry.getEIP712Domain(),i={RegisterTaskNamespaceMeta:[{name:"user",type:"address"},{name:"namespace",type:"string"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"}]},s=BigInt(await n.taskRegistry.nonces(e)),o={user:Ske.getAddress(e),namespace:t,nonce:s,deadline:Math.floor(Date.now()/1e3)+3600},l=await n.utils.signMeta(r,i,o);return Date.now()/1e3>=o.deadline&&(o.deadline=Math.floor(Date.now()/1e3)+7200,l=await n.utils.signMeta(r,i,o)),(await FK(e,t,o.nonce,o.deadline,l,a)).status==201}async function HK(e,t,n,a,r){let i=await r.taskRegistry.getEIP712Domain(),s={Task:[{name:"taskId",type:"string"},{name:"meta",type:"string"},{name:"active",type:"bool"}],RegisterTaskMeta:[{name:"user",type:"address"},{name:"namespace",type:"string"},{name:"taskName",type:"string"},{name:"task",type:"Task"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"}]},o={user:e,namespace:t,taskName:n,task:{taskId:a.taskId,meta:a.meta,active:a.active},nonce:BigInt(await r.taskRegistry.nonces(e)),deadline:Math.floor(Date.now()/1e3)+3600},l=await r.utils.signMeta(i,s,o);return Date.now()/1e3>=o.deadline&&(o.deadline=Math.floor(Date.now()/1e3)+7200,l=await r.utils.signMeta(i,s,o)),(await jK(e,t,n,a,o.nonce,o.deadline,l)).status==201}async function zK(e){return await(await Rr()).post("api/filesystem/push",cs({taskId:e})).catch(Nr)}async function VK(e,t){let n=At("blockchainEnv");return await dn(n).taskRegistry.getLatestVersion(e,t)}async function GK(e,t,n,a=null){let r=At("blockchainEnv"),i=dn(r),s=!1;try{if(a)s=await i.taskRegistry.registerTask(t,n,e);else{let o=At("address");if(!o)throw Error(`Please provide an address property in '${ls()}/.truebit/secret.json'`);s=await HK(o,t,n,e,i)}}catch(o){let l=o.message,d=l.match(/execution reverted: "(.*?)" /)?.[1];throw d?new Error(`Trying to register a task -> ${d}`):new Error(`Trying to register a task -> ${l}`)}return s}async function WK(e,t,n,a,r){if(!gc(n))throw new Error("Invalid taskId");if(a)try{a=JSON.stringify(a)}catch{throw new Error("Meta information cannot be serialized as JSON")}let i=null;try{await zK(n),await GK({taskId:n,meta:a||"",active:!0},e,t,r),i=await VK(e,t)}catch(s){if(s instanceof Error)throw s;if(typeof s=="string")throw new Error(s)}return i}async function KK(e,t,n){let a=At("blockchainEnv"),r=dn(a),i=await r.taskRegistry.getLatestVersion(e,t);return await r.taskRegistry.setTaskLabel(e,t,i,n)}import*as Pb from"fs";import*as ZK from"path";var XK=async(e,t,n)=>{if(console.log("Executing the function Task"),!gc(t))throw"Invalid task id";let a={status:"",result:""},r=await Rr(),i=await r.post("api/execution/",cs({taskId:t,input:n})).catch(Nr),s=i.data.executionId;return console.log(`Execution Id: ${s}`),i.data.payload?(YK(e,i.data.payload),a.status=i.data.payload.status,a.result=i.data.payload.output?.result?i.data.payload.output?.result:""):await new Promise(o=>{let l=setInterval(async()=>{try{let d=await r.get(`api/execution/${s}`);d.data&&d.data.status!="running"&&(YK(e,d.data),clearInterval(l),a.status=d.data.status,a.result=d.data.output?.result?d.data.output?.result:"",o())}catch(d){console.error(`Error polling execution status: ${d}`),clearInterval(l),a.status="failed",a.result=`Polling error: ${d}`,o()}},1e3);setTimeout(()=>{clearInterval(l),a.status="timeout",a.result="Task execution timed out after 30 seconds",console.error("Task execution timed out after 30 seconds"),o()},3e4)}),a};function YK(e,t){if(console.log(`Task executed with status: ${t.status}`),t.output)if(console.log(`Task executed with result: ${t.output.result}`),t.output.metering){console.log("Task resource usage:");let n=t.output.metering,a=(i,s)=>{if(s==0)return"N/A";let o=i/s;return o<1?"Short":Number(o.toFixed(0))},r={Gas:{Unit:"Steps",Limits:n.limits.gas,Peak:"N/A","Last status":n.last.steps,Capacity:a(n.limits.gas,n.last.steps)},"Nested calls":{Unit:"Calls",Limits:n.limits.call,Peak:n.peak.call,"Last status":n.last.call,Capacity:a(n.limits.call,n.peak.call)},"Frame memory":{Unit:"Bytes",Limits:n.limits.frame,Peak:n.peak.frame,"Last status":n.last.frame,Capacity:a(n.limits.frame,n.peak.frame)},"System memory":{Unit:"64 Kb pages",Limits:n.limits.memory,Peak:n.peak.memory,"Last status":"\u{1D6AB} "+n.last.memoryGrowDelta,Capacity:a(n.limits.memory,n.peak.memory)}};if(console.table(r),e.updateConfig){let i=ZK.join(process.cwd(),"config.json");try{let s=Pb.readFileSync(i),o=JSON.parse(s.toString());o.run.limits.gas=String(n.last.steps),o.run.limits.call=String(n.peak.call),o.run.limits.frame=String(n.peak.frame),o.run.limits.memory=String(n.limits.memory),Pb.writeFileSync(i,JSON.stringify(o)),console.log("Task limits updated with last/peak values (--update-config)")}catch(s){console.log(`Error updating config file at '${i}': '${s}', (--update-config)`)}}}else console.log("No task resource usage reported.")}async function JK(e){try{let n=await(await Rr()).post("api/instrumentation",cs({taskId:`${e}`})).catch(Nr);if(n.data.error?.status===!0)if(n.data.error.message)console.log(`Instrumentation failed: ${n.data.error?.message}`);else throw"Malformed instrumentation service error message";else if(n.data.payload&&n.data.payload.instrumentedTaskId)console.log("Your function task is ready."),console.log(`Use the following TaskId for execution or deployment:
225
225
  ${n.data.payload.instrumentedTaskId}`);else throw"Malformed instrumentation service success message";return n.data.payload.instrumentedTaskId}catch(t){throw console.error(t),t}}import*as QK from"readline";import{ethers as Eke}from"ethers";async function eY(){let e=Ga(),t=e!==null,n=QK.createInterface({input:process.stdin,output:process.stdout}),a=i=>new Promise(s=>n.question(i,s)),r=0;if(t&&e.privateKey&&e.address)r=1;else if(t)switch(console.log(Jt.SETUP_STEP1),(await a("Press [Y] to proceed or [N] to skip: ")).trim().toUpperCase()){case"Y":r=2;break;case"N":r=3;break;default:console.log("Invalid input. Please enter Y or N."),n.close();return}switch(r){case 1:cb(),console.log(Jt.SETUP_STEP1_SCENARIO1_P1);break;case 2:{cb();let i=Eke.Wallet.createRandom(),s=i.privateKey,o=i.address;_p({privateKey:s,address:o}),console.log(`
226
226
  Setting up your new wallet...`),console.log(Jt.SETUP_STEP1_SCENARIO2(o));break}case 3:cb(),console.log(Jt.SETUP_STEP1_SCENARIO3),process.exit(1);break;default:console.log("An unexpected error occurred.");break}n.close()}async function tY(e){try{console.log("Fetching execution status...");let n=await(await Rr()).get(`api/execution/${e}`).catch(Nr);if(n.data.message)throw n.data.message;console.log("Task execution status: ",n.data.status),n.data.output&&console.log("Task execution output: ",n.data.output)}catch(t){console.error(`Couldn't fetch execution status for executionId ${e}: ${t}`)}}var nY=dt(Jx(),1),Lp=class{tokens=[];authInputs;parse(t,n){let a=this.parseKeyValuePairs(n);if(t.length==0){this.authInputs=a;return}let r=Object.keys(a);if(t.every(i=>r.includes(i))){let i={};for(let s of t)i[s]=a[s];this.authInputs=i}else throw new Error(`Invalid authString: ${t} are required`)}parseKeyValuePairs(t){try{let n=t.split(","),a={};for(let r of n){let[i,s]=r.split(":");a[i.trim()]=s.trim()}return a}catch{throw new Error("Invalid auth string")}}},kb=class extends Lp{tokens=["accessKey","secretKey"];constructor(t){super(),this.parse(this.tokens,t)}authHeaders(t){return nY.default.sign(t,{accessKeyId:this.authInputs.accessKey,secretAccessKey:this.authInputs.secretKey}).headers||{}}},Ob=class extends Lp{tokens=["username","password"];constructor(t){super(),this.parse(this.tokens,t)}authHeaders(t){return{Authorization:`Basic ${btoa(`${this.authInputs.username}:${this.authInputs.password}`)}`}}},$b=class extends Lp{tokens=[];constructor(t){super(),this.parse([],t)}authHeaders(t){return{...this.authInputs}}};var T0;(function(e){e.AWS_SIGNATURE="aws-signature",e.BASIC_AUTH="basic-auth",e.CUSTOM_HEADER="custom-header"})(T0||(T0={}));var mw=(e,t)=>{switch(e){case T0.AWS_SIGNATURE:return new kb(t);case T0.BASIC_AUTH:return new Ob(t);case T0.CUSTOM_HEADER:return new $b(t);default:throw new Error(`Invalid authentication method specified. Should be one of <${Object.values(T0)}>`)}};import Mke from"chalk";import{ethers as Cke}from"ethers";async function aY(e,t,n,a,r,i,s){console.log("Deploying the API Authentication Credentials");try{if(!qK(i))throw"Invalid private key provided";if(!Cke.isAddress(s))throw"Invalid address provided";if(mw(a,r),!gc(e))throw"Invalid taskId";await(await Rr()).post("api/api-credentials",cs({taskId:e,namespace:t,taskName:n,authString:r,method:a})).catch(Nr),console.log("The credentials were deployed "+Mke.green("Successfully"))}catch(o){throw`There was an Error deploying credentials:
227
- Couldn't push api credentials to remote server: ${o}`}}import{inspect as WOe}from"util";import ua from"ora";import{v4 as KOe}from"uuid";import{ethers as Wb}from"ethers";var rY={name:"@truebit/cli",version:"1.120.0-beta.195",private:!1,description:"truebit-cli is a basic command line that allows interaction between users and truebit nextgen node.",author:{name:"Truebit Co.",url:"https://truebit.io/"},license:"https://truebit.io/terms/",repository:{type:"git",url:"https://github.com/TruebitProtocol"},homepage:"https://truebit.io/",main:"build/index.mjs",module:"build/index.mjs",types:"build/types/index.d.ts",type:"module",scripts:{prebuild:"rimraf build","prebuild:dev":"rimraf build","build:dev":"tsc && chmod +x build/index.mjs",build:"NODE_ENV=production node esbuild.config.mjs && chmod +x build/index.mjs",dev:"export NODE_ENV=development && npx nodemon",test:"vitest run --passWithNoTests tests/"},dependencies:{axios:"1.11.0",chalk:"5.6.0",colors:"1.4.0",commander:"14.0.0",ethers:"6.15.0",figlet:"1.8.2","openapi-enforcer":"1.23.0",ora:"8.2.0","public-ip":"7.0.1","ts-retry":"6.0.0",uuid:"11.1.0"},bin:{truebit:"build/index.mjs"},files:["build"],devDependencies:{"@types/figlet":"1.7.0","@vitest/coverage-v8":"3.2.4",esbuild:"^0.25.9",typescript:"5.9.2",vitest:"3.2.4"},engines:{node:">=22.13.0"}};import{createInterface as Dke}from"node:readline/promises";import Po from"chalk";import Bp from"axios";import{ethers as bw}from"ethers";import{randomBytes as kke}from"crypto";import{v4 as Oke}from"uuid";import{ethers as Rb}from"ethers";async function iY(e,t=At("blockchainEnv")){Dp(e);let n=dn(t),a=Rb.keccak256(Rb.toUtf8Bytes(e));return await n.authorization.registerAuthorization(a),a}async function Nb(e,t,n=At("blockchainEnv"),a=At("address")){Dp(e);let r=dn(n),i=await r.authorization.getEIP712Domain(),s=await r.authorization.nonces(a),o=Math.floor(Date.now()/1e3)+3600,l={RegisterMeta:[{name:"user",type:"address"},{name:"apiKeyHash",type:"string"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"}]},d=Rb.keccak256(Rb.toUtf8Bytes(e)),p={user:a,apiKeyHash:d,nonce:Number(s),deadline:o},b=await r.utils.signMeta(i,l,p);return(await UK(a,d,o,b,t)).status==201?d:null}import{isTooManyTries as sY,retryAsync as oY}from"ts-retry";var fY="0x0000000000000000000000000000000000000000";async function dY(e){let t=!0;return e===""?(t=!1,console.log("An email address is required. Please provide your email address to proceed.")):new RegExp(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/).test(e)?await $ke(e)&&(t=!1,console.log("The provided email address is already in use. Please enter a different email address.")):(t=!1,console.log("The email address provided is not valid. Please try again.")),t}function yd(e){return e==="Y"||e==="N"}function lY(e){return!bw.isAddress(e)||e.length!==42||!e.startsWith("0x")}async function cY(){let e=await Rke();try{if(!await Nb(e,!0))throw Error("The API key could not been registered.")}catch(t){let n=t.message;if(n)throw Error(`There was an error registering the API key -> ${n}`)}return e}async function uY(){let e=await Nke();try{if(!await Cb(e,!0))throw Error("The namespace could not been registered.")}catch(t){let n=t.message,a=n?n.match(/execution reverted: "(.*?)" /)?.[1]:null;if(a)throw Error(`There was an error registering the namespace -> ${a}`);if(n)throw Error(`There was an error registering the namespace -> ${n}`)}return e}async function $ke(e){let t=await uf();try{return(await t.get(`userexistence/${e}`)).data===!0}catch(n){if(Bp.isAxiosError(n)&&n.response?.status===404&&typeof n.response?.data?.message=="string"&&n.response.data.message.includes("User not found"))return!1;throw n}}async function Db(e,t){try{let n={message:"I am a Truebit User"};if(!t)throw Error("Secret.json does not exists");let a=t.privateKey,r=t.address,i=ds.createSignedBody(n,a,r);return(await(await uf()).get(`user/${e}`,{headers:{"truebit-auth":JSON.stringify(i)}})).data}catch(n){if(Bp.isAxiosError(n)&&n.response?.status===401&&n.response?.data.message.includes("Entitlement Validation Error")||Bp.isAxiosError(n)&&n.response?.status==404&&n.response?.data.message&&n.response?.data.message.includes("User not found"))return null;throw Bp.isAxiosError(n)?n.response?Error(`The server responding with an error -> ${n.response.data.message||n.response.status+" - "+n.response.statusText}`):n.request?Error(`The server is not responding -> ${n.message}`):Error(`There was an error in the communication with the server -> ${n.message}`):Error(typeof n=="string"?`There was an error in the communication with the server -> ${n}`:"There was an error in the communication with the server.")}}async function pY(e){try{return await(await uf()).post("user/register",e)}catch(t){throw Bp.isAxiosError(t)?t.response?Error(`The server responding with an error -> ${t.response.data.message||t.response.status+" - "+t.response.statusText}`):t.request?Error(`The server is not responding -> ${t.message}`):Error(`There was an error in the communication with the server -> ${t.message}`):Error(typeof t=="string"?`There was an error in the communication with the server -> ${t}`:"There was an error in the communication with the server.")}}async function Rke(){let e=At("blockchainEnv"),t=dn(e),n="";try{await oY(async()=>{n=Oke();let a=bw.keccak256(bw.toUtf8Bytes(n));return await t.authorization.getPayerAddress(a)===fY},{delay:500,maxTry:5,until:a=>a===!0})}catch(a){throw sY(a)?Error("Attempts to generate unique Api Key for the user exhausted."):a}return n}async function Nke(){let e=At("blockchainEnv"),t=dn(e),n="";try{await oY(async()=>(n=kke(4).toString("hex"),await t.taskRegistry.getNamespaceOwner(n)===fY),{delay:500,maxTry:5,until:a=>a===!0})}catch(a){throw sY(a)?Error("Attempts to generate unique namespace for the user exhausted."):a}return n}function hY(e){e.fullNameAnswer="",e.emailAddressAnswer="",e.companyNameAnswer="",e.jobPositionAnswer="",e.eulaAnswer="",e.confirmRegistration=""}import Lke from"ora";import*as Lb from"os";async function mY(e,t,n){let a=Ga(),r=a!==null,i=0,s,o=Dke({input:process.stdin,output:process.stdout,terminal:!0});switch(r&&(lY(a.address)?i=1:(s=await Db(a.address,a),s?i=2:i=3)),i){case 1:console.log("The wallet set in the configuration must be a valid ethereum address. (ENS not supported yet)");break;case 2:console.log(Jt.SETUP_STEP1_SCENARIO1_P2(s));break;case 3:{console.log(Jt.SETUP_STEP2_SCENARIO3_P1),console.log();let l={user_ip:e,date_time:Mn(),os_version:Lb.type+"_"+Lb.release,node_version:process.version,cli_version:t};await n.sendEventToMixpanel("user_registration_begin",l);let d={confirmRegistration:"",fullNameAnswer:"",emailAddressAnswer:"",companyNameAnswer:"",jobPositionAnswer:"",eulaAnswer:""};try{for(;d.confirmRegistration!="Y";){for(d.fullNameAnswer=(await o.question(Po.bold(" 1. Full Name: "))).trim();d.fullNameAnswer==="";)console.log("Your full name is required. Please provide your first and last name to proceed."),d.fullNameAnswer=(await o.question(Po.bold(" 1. Full Name: "))).trim();for(d.emailAddressAnswer=(await o.question(Po.bold(" 2. Email Address: "))).trim();!await dY(d.emailAddressAnswer);)d.emailAddressAnswer=(await o.question(Po.bold(" 2. Email Address: "))).trim();for(d.companyNameAnswer=(await o.question(Po.bold(" 3. Company Name: "))).trim(),d.jobPositionAnswer=(await o.question(Po.bold(" 4. Job Position: "))).trim();!yd(d.eulaAnswer);)d.eulaAnswer=(await o.question(Po.bold(` 5. Accept EULA? [Y|N] (${Jt.EULA_TERMS_LINK}): `))).toUpperCase();if(d.eulaAnswer=="N"){console.log(Jt.EULA_REGISTRATION_NO_ACCEPTED);break}for(;!yd(d.confirmRegistration);)console.log(`
227
+ Couldn't push api credentials to remote server: ${o}`}}import{inspect as WOe}from"util";import ua from"ora";import{v4 as KOe}from"uuid";import{ethers as Wb}from"ethers";var rY={name:"@truebit/cli",version:"1.120.0-beta.196",private:!1,description:"truebit-cli is a basic command line that allows interaction between users and truebit nextgen node.",author:{name:"Truebit Co.",url:"https://truebit.io/"},license:"https://truebit.io/terms/",repository:{type:"git",url:"https://github.com/TruebitProtocol"},homepage:"https://truebit.io/",main:"build/index.mjs",module:"build/index.mjs",types:"build/types/index.d.ts",type:"module",scripts:{prebuild:"rimraf build","prebuild:dev":"rimraf build","build:dev":"tsc && chmod +x build/index.mjs",build:"NODE_ENV=production node esbuild.config.mjs && chmod +x build/index.mjs",dev:"export NODE_ENV=development && npx nodemon",test:"vitest run --passWithNoTests tests/"},dependencies:{axios:"1.11.0",chalk:"5.6.0",colors:"1.4.0",commander:"14.0.0",ethers:"6.15.0",figlet:"1.8.2","openapi-enforcer":"1.23.0",ora:"8.2.0","public-ip":"7.0.1","ts-retry":"6.0.0",uuid:"11.1.0"},bin:{truebit:"build/index.mjs"},files:["build"],devDependencies:{"@types/figlet":"1.7.0","@vitest/coverage-v8":"3.2.4",esbuild:"^0.25.9",typescript:"5.9.2",vitest:"3.2.4"},engines:{node:">=22.13.0"}};import{createInterface as Dke}from"node:readline/promises";import Po from"chalk";import Bp from"axios";import{ethers as bw}from"ethers";import{randomBytes as kke}from"crypto";import{v4 as Oke}from"uuid";import{ethers as Rb}from"ethers";async function iY(e,t=At("blockchainEnv")){Dp(e);let n=dn(t),a=Rb.keccak256(Rb.toUtf8Bytes(e));return await n.authorization.registerAuthorization(a),a}async function Nb(e,t,n=At("blockchainEnv"),a=At("address")){Dp(e);let r=dn(n),i=await r.authorization.getEIP712Domain(),s=await r.authorization.nonces(a),o=Math.floor(Date.now()/1e3)+3600,l={RegisterMeta:[{name:"user",type:"address"},{name:"apiKeyHash",type:"string"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"}]},d=Rb.keccak256(Rb.toUtf8Bytes(e)),p={user:a,apiKeyHash:d,nonce:Number(s),deadline:o},b=await r.utils.signMeta(i,l,p);return(await UK(a,d,o,b,t)).status==201?d:null}import{isTooManyTries as sY,retryAsync as oY}from"ts-retry";var fY="0x0000000000000000000000000000000000000000";async function dY(e){let t=!0;return e===""?(t=!1,console.log("An email address is required. Please provide your email address to proceed.")):new RegExp(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/).test(e)?await $ke(e)&&(t=!1,console.log("The provided email address is already in use. Please enter a different email address.")):(t=!1,console.log("The email address provided is not valid. Please try again.")),t}function yd(e){return e==="Y"||e==="N"}function lY(e){return!bw.isAddress(e)||e.length!==42||!e.startsWith("0x")}async function cY(){let e=await Rke();try{if(!await Nb(e,!0))throw Error("The API key could not been registered.")}catch(t){let n=t.message;if(n)throw Error(`There was an error registering the API key -> ${n}`)}return e}async function uY(){let e=await Nke();try{if(!await Cb(e,!0))throw Error("The namespace could not been registered.")}catch(t){let n=t.message,a=n?n.match(/execution reverted: "(.*?)" /)?.[1]:null;if(a)throw Error(`There was an error registering the namespace -> ${a}`);if(n)throw Error(`There was an error registering the namespace -> ${n}`)}return e}async function $ke(e){let t=await uf();try{return(await t.get(`userexistence/${e}`)).data===!0}catch(n){if(Bp.isAxiosError(n)&&n.response?.status===404&&typeof n.response?.data?.message=="string"&&n.response.data.message.includes("User not found"))return!1;throw n}}async function Db(e,t){try{let n={message:"I am a Truebit User"};if(!t)throw Error("Secret.json does not exists");let a=t.privateKey,r=t.address,i=ds.createSignedBody(n,a,r);return(await(await uf()).get(`user/${e}`,{headers:{"truebit-auth":JSON.stringify(i)}})).data}catch(n){if(Bp.isAxiosError(n)&&n.response?.status===401&&n.response?.data.message.includes("Entitlement Validation Error")||Bp.isAxiosError(n)&&n.response?.status==404&&n.response?.data.message&&n.response?.data.message.includes("User not found"))return null;throw Bp.isAxiosError(n)?n.response?Error(`The server responding with an error -> ${n.response.data.message||n.response.status+" - "+n.response.statusText}`):n.request?Error(`The server is not responding -> ${n.message}`):Error(`There was an error in the communication with the server -> ${n.message}`):Error(typeof n=="string"?`There was an error in the communication with the server -> ${n}`:"There was an error in the communication with the server.")}}async function pY(e){try{return await(await uf()).post("user/register",e)}catch(t){throw Bp.isAxiosError(t)?t.response?Error(`The server responding with an error -> ${t.response.data.message||t.response.status+" - "+t.response.statusText}`):t.request?Error(`The server is not responding -> ${t.message}`):Error(`There was an error in the communication with the server -> ${t.message}`):Error(typeof t=="string"?`There was an error in the communication with the server -> ${t}`:"There was an error in the communication with the server.")}}async function Rke(){let e=At("blockchainEnv"),t=dn(e),n="";try{await oY(async()=>{n=Oke();let a=bw.keccak256(bw.toUtf8Bytes(n));return await t.authorization.getPayerAddress(a)===fY},{delay:500,maxTry:5,until:a=>a===!0})}catch(a){throw sY(a)?Error("Attempts to generate unique Api Key for the user exhausted."):a}return n}async function Nke(){let e=At("blockchainEnv"),t=dn(e),n="";try{await oY(async()=>(n=kke(4).toString("hex"),await t.taskRegistry.getNamespaceOwner(n)===fY),{delay:500,maxTry:5,until:a=>a===!0})}catch(a){throw sY(a)?Error("Attempts to generate unique namespace for the user exhausted."):a}return n}function hY(e){e.fullNameAnswer="",e.emailAddressAnswer="",e.companyNameAnswer="",e.jobPositionAnswer="",e.eulaAnswer="",e.confirmRegistration=""}import Lke from"ora";import*as Lb from"os";async function mY(e,t,n){let a=Ga(),r=a!==null,i=0,s,o=Dke({input:process.stdin,output:process.stdout,terminal:!0});switch(r&&(lY(a.address)?i=1:(s=await Db(a.address,a),s?i=2:i=3)),i){case 1:console.log("The wallet set in the configuration must be a valid ethereum address. (ENS not supported yet)");break;case 2:console.log(Jt.SETUP_STEP1_SCENARIO1_P2(s));break;case 3:{console.log(Jt.SETUP_STEP2_SCENARIO3_P1),console.log();let l={user_ip:e,date_time:Mn(),os_version:Lb.type+"_"+Lb.release,node_version:process.version,cli_version:t};await n.sendEventToMixpanel("user_registration_begin",l);let d={confirmRegistration:"",fullNameAnswer:"",emailAddressAnswer:"",companyNameAnswer:"",jobPositionAnswer:"",eulaAnswer:""};try{for(;d.confirmRegistration!="Y";){for(d.fullNameAnswer=(await o.question(Po.bold(" 1. Full Name: "))).trim();d.fullNameAnswer==="";)console.log("Your full name is required. Please provide your first and last name to proceed."),d.fullNameAnswer=(await o.question(Po.bold(" 1. Full Name: "))).trim();for(d.emailAddressAnswer=(await o.question(Po.bold(" 2. Email Address: "))).trim();!await dY(d.emailAddressAnswer);)d.emailAddressAnswer=(await o.question(Po.bold(" 2. Email Address: "))).trim();for(d.companyNameAnswer=(await o.question(Po.bold(" 3. Company Name: "))).trim(),d.jobPositionAnswer=(await o.question(Po.bold(" 4. Job Position: "))).trim();!yd(d.eulaAnswer);)d.eulaAnswer=(await o.question(Po.bold(` 5. Accept EULA? [Y|N] (${Jt.EULA_TERMS_LINK}): `))).toUpperCase();if(d.eulaAnswer=="N"){console.log(Jt.EULA_REGISTRATION_NO_ACCEPTED);break}for(;!yd(d.confirmRegistration);)console.log(`
228
228
  Is the information provided above correct?`),d.confirmRegistration=(await o.question(Po.bold("Press [Y] to confirm or [N] to edit: "))).toUpperCase();d.confirmRegistration=="N"&&(console.log(`
229
229
  Please provide the following information:`),hY(d))}}catch(w){if(w.name==="AbortError"||w.message.includes("Ctrl+C")){let A=w.message,_=l;_.error_details=A,_.date_time=Mn();let k={fullname:d.fullNameAnswer,email:d.emailAddressAnswer,company:d.companyNameAnswer,role:d.jobPositionAnswer};_.user_info=JSON.stringify(k),await n.sendEventToMixpanel("user_registration_failed",_),process.exit(0)}}if(d.eulaAnswer=="N")break;let p=l;console.log(),console.log("By completing registration, you'll be automatically subscribed to our newsletter."),console.log("To opt-out, please follow the steps described in our documentation portal."),console.log();let b=Lke({text:Po.bold("... registering your account."),stream:process.stdout}).start();try{let w=await uY(),A=await cY(),_={name:d.fullNameAnswer,email:d.emailAddressAnswer,walletAddress:a?.address,company:d.companyNameAnswer,jobDescription:d.jobPositionAnswer,EULA:ds.createSignedBody({ip:await gb(),date:new Date().toISOString()},a.privateKey),defaultNamespace:w,defaultApiKey:A};await pY(_),b.stop(),console.log(Jt.SETUP_STEP2_SCENARIO3_P2(d,a.address,w,A)),p.distinct_id=_.walletAddress,p.date_time=Mn(),p.fullname=_.name,p.email=_.email,p.company=_.company,p.role=_.jobDescription,p.namespace=_.defaultNamespace,p.api_key=A,p.wallet_address=_.walletAddress,await n.sendEventToMixpanel("user_registration_success",p),await n.registerUserMixpanel(p.wallet_address,Bke(p))}catch(w){b.stop();let A=w.message,_=l;_.error_details=A,_.date_time=Mn();let k={fullname:d.fullNameAnswer,email:d.emailAddressAnswer,company:d.companyNameAnswer,role:d.jobPositionAnswer};_.user_info=JSON.stringify(k),await n.sendEventToMixpanel("user_registration_failed",_);let D=A?A.match(/CreateUserValidation - (.*?.*)/)?.[1]:null;if(D)throw Error(D);if(A.includes("Sender doesn't have enough funds to send tx"))throw Error("We are currently experiencing technical difficulties. Please try again later.");console.error(Jt.SETUP_STEP2_UNHANDLED_ERROR),process.exit(1)}finally{b.clear()}break}default:throw Error("An unexpected error occurred.")}o.close()}function Bke(e){return{apiKey:e.api_key,name:e.fullname,email:e.email,ip:e.user_ip,company:e.company,role:e.role,namespace:e.namespace,walletAddress:e.wallet_address}}import{setDefaultAutoSelectFamily as YOe}from"node:net";import qke from"chalk";import{createInterface as Fke}from"node:readline/promises";import*as Bb from"os";async function bY(e,t,n){let a=Ga(),r=a!==null,i=0;switch(r?r&&!a.eula?i=2:i=3:i=1,i){case 1:case 2:{let s=Fke({input:process.stdin,output:process.stdout,terminal:!0}),o="",l={user_ip:e,date_time:Mn(),os_version:Bb.type+"_"+Bb.release,node_version:process.version,cli_version:t};for(console.log(Jt.EULA_INSTALLATION);!yd(o);)o=(await s.question(qke.bold(`
230
230
  Have you read, and do you accept the Terms of Use? [Y|N]: `))).toUpperCase(),await n.sendEventToMixpanel("TOS_shown",l);if(o=="N")throw l.date_time=Mn(),await n.sendEventToMixpanel("TOS_rejected",l),Jt.EULA_INSTALLATION_NO_ACCEPTED;l.date_time=Mn(),await n.sendEventToMixpanel("TOS_accepted",l);let d=Math.round(new Date().getTime()).toString();if(i===1){let p={...oc(),eula:d};jW(p)}else i===2&&_p({eula:d});s.close()}break;case 3:default:break}}async function E0(e=!1){let t=Ga(),n=t!==null,a=null,r=0;switch(n?n&&(!t.privateKey||!t.address)?r=2:(a=await Db(t.address,t),a?r=4:r=3):r=1,r){case 1:case 2:case 3:console.log(Jt.USER_NO_REGISTERED),process.exit(1);break;case 4:e&&console.log(`You are logged in as: ${a?.name} - ${a?.email}`);break}}import{createInterface as Uke}from"node:readline/promises";import jke from"chalk";async function yY(){console.log(jke.bold(`