@truebit/cli 1.120.0-beta.292 → 1.120.0-beta.293

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 +2 -2
  2. package/package.json +2 -2
package/build/index.mjs CHANGED
@@ -486,7 +486,7 @@ Setting up your new wallet...`),console.log(On.SETUP_STEP1_SCENARIO2(o));break}c
486
486
  `;if(n.username||n.password){let h=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(h).toString("base64")}`}i.Host=`${s}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let h of Object.keys(i))o+=`${h}: ${i[h]}\r
487
487
  `;let l=(0,Nma.parseProxyResponse)(a);a.write(`${o}\r
488
488
  `);let{connect:u,buffered:d}=await l;if(t.emit("proxyConnect",u),this.emit("proxyConnect",u,t),u.statusCode===200)return t.once("socket",Dma),r.secureEndpoint?(wA("Upgrading socket connection to TLS"),dFt.connect({...pFt(cFt(r),"host","path","port"),socket:a})):a;a.destroy();let c=new Gee.Socket({writable:!1});return c.readable=!0,t.once("socket",h=>{wA("Replaying proxy buffer for failed request"),(0,Pma.default)(h.listenerCount("data")>0),h.push(d),h.push(null)}),c}};Kee.protocols=["http","https"];ff.HttpsProxyAgent=Kee;function Dma(e){e.resume()}function pFt(e,...t){let r={},n;for(n in e)t.includes(n)||(r[n]=e[n]);return r}});var TAe=f((a9i,$ma)=>{$ma.exports={name:"mixpanel",description:"A simple server-side API for mixpanel",keywords:["mixpanel","analytics","api","stats"],version:"0.20.0",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",format:"prettier --write .","check-format":"prettier --check .",lint:"oxlint ."},types:"./lib/mixpanel-node.d.ts",devDependencies:{"@types/node":"^24.10.1","@vitest/coverage-v8":"^4.0.8",nock:"^14.0.10",oxlint:"^1.16.0",prettier:"^3.6.2",proxyquire:"^2.1.3",typescript:"^5.9.3",vitest:"^4.0.8"},dependencies:{"https-proxy-agent":"7.0.6","json-logic-js":"2.0.5"}}});var AAe=f(Yee=>{Yee.async_all=function(e,t,r){let n=e.length,a=null,i=[],s=function(o,l){o&&(a=a||[],a.push(o)),i.push(l),--n===0&&r(a,i)};if(n===0)r(a,i);else for(let o=0,l=e.length;o<l;o++)t(e[o],s)};Yee.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};Yee.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 IAe=f(qAe=>{var{ensure_timestamp:Lma}=AAe();function g4(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=Lma(t.$time)),t.hasOwnProperty("$latitude")&&t.hasOwnProperty("$longitude")&&(e.$latitude=t.$latitude,e.$longitude=t.$longitude)),e}qAe.merge_modifiers=g4;qAe.ProfileHelpers=(e=Object)=>class extends e{get token(){return this.mixpanel.token}get config(){return this.mixpanel.config}_set(t,r,n,a,{identifiers:i,set_once:s=!1}){let o={};typeof t=="object"?(typeof r=="object"?(a=n,n=r):a=r,o=t):(o[t]=r,(typeof n=="function"||!n)&&(a=n));let l={$token:this.token,...i},u=s?"$set_once":"$set";l[u]=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=g4(l,n),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},a)}_delete_profile({identifiers:t,modifiers:r,callback:n}){let a={$delete:"",$token:this.token,...t};typeof r=="function"&&(n=r),a=g4(a,r),this.config.debug&&this.mixpanel.config.logger.debug("Deleting profile",{identifiers:t}),this.mixpanel.send_request({method:"GET",endpoint:this.endpoint,data:a},n)}_remove({identifiers:t,data:r,modifiers:n,callback:a}){let i={};if(typeof r!="object"||Array.isArray(r)){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(r))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&&(r={$remove:i,$token:this.token,...t},typeof n=="function"&&(a=n),r=g4(r,n),this.config.debug&&this.mixpanel.config.logger.debug(`Sending the following data to Mixpanel (${this.endpoint})`,{data:r}),this.mixpanel.send_request({method:"GET",endpoint:this.endpoint,data:r},a))}_union({identifiers:t,data:r,modifiers:n,callback:a}){let i={};if(typeof r!="object"||Array.isArray(r)){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[s,o]of Object.entries(r))if(Array.isArray(o)){let l=o.filter(function(u){return typeof u=="string"||typeof u=="number"});l.length>0&&(i[s]=l)}else typeof o=="string"||typeof o=="number"?i[s]=[o]:this.config.debug&&this.mixpanel.config.logger.error("Invalid argument passed to #union - values must be a scalar value or array",{key:s,value:o});Object.keys(i).length!==0&&(r={$union:i,$token:this.token,...t},typeof n=="function"&&(a=n),r=g4(r,n),this.config.debug&&this.mixpanel.config.logger.debug(`Sending the following data to Mixpanel (${this.endpoint})`,{data:r}),this.mixpanel.send_request({method:"GET",endpoint:this.endpoint,data:r},a))}_unset({identifiers:t,prop:r,modifiers:n,callback:a}){let i=[];if(Array.isArray(r))i=r;else if(typeof r=="string")i=[r];else{this.config.debug&&this.mixpanel.config.logger.error("Invalid argument passed to #unset - must be a string or array",{prop:r});return}let s={$unset:i,$token:this.token,...t};typeof n=="function"&&(a=n),s=g4(s,n),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},a)}}});var vFt=f(bFt=>{var{ProfileHelpers:jma}=IAe(),OAe=class extends jma(){constructor(t){super(),this.mixpanel=t,this.endpoint="/groups"}set_once(t,r,n,a,i,s){let o={$group_key:t,$group_id:r};this._set(n,a,i,s,{identifiers:o,set_once:!0})}set(t,r,n,a,i,s){let o={$group_key:t,$group_id:r};this._set(n,a,i,s,{identifiers:o})}delete_group(t,r,n,a){let i={$group_key:t,$group_id:r};this._delete_profile({identifiers:i,modifiers:n,callback:a})}remove(t,r,n,a,i){let s={$group_key:t,$group_id:r};this._remove({identifiers:s,data:n,modifiers:a,callback:i})}union(t,r,n,a,i){let s={$group_key:t,$group_id:r};this._union({identifiers:s,data:n,modifiers:a,callback:i})}unset(t,r,n,a,i){let s={$group_key:t,$group_id:r};this._unset({identifiers:s,prop:n,modifiers:a,callback:i})}};bFt.MixpanelGroups=OAe});var _Ft=f(gFt=>{var{merge_modifiers:Jee,ProfileHelpers:Bma}=IAe(),RAe=class extends Bma(){constructor(t){super(),this.mixpanel=t,this.endpoint="/engage"}set_once(t,r,n,a,i){let s={$distinct_id:t};this._set(r,n,a,i,{identifiers:s,set_once:!0})}set(t,r,n,a,i){let s={$distinct_id:t};this._set(r,n,a,i,{identifiers:s})}increment(t,r,n,a,i){let s={};if(typeof r=="object"){typeof n=="object"?(i=a,a=n):i=n;for(let[l,u]of Object.entries(r))isNaN(parseFloat(u))?this.mixpanel.config.debug&&this.mixpanel.config.logger.error("Invalid increment value passed to mixpanel.people.increment - must be a number",{key:l,value:u}):s[l]=u}else typeof n=="number"||!n?(n=n||1,s[r]=n,typeof a=="function"&&(i=a)):typeof n=="function"?(i=n,s[r]=1):(i=a,a=typeof n=="object"?n:{},s[r]=1);let o={$add:s,$token:this.mixpanel.token,$distinct_id:t};o=Jee(o,a),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,r,n,a,i){let s={};typeof r=="object"?(typeof n=="object"?(i=a,a=n):i=n,Object.keys(r).forEach(function(l){s[l]=r[l]})):(s[r]=n,typeof a=="function"&&(i=a));let o={$append:s,$token:this.mixpanel.token,$distinct_id:t};o=Jee(o,a),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,r,n,a,i){if(typeof n=="function"||!n?(i=n||void 0,n={}):(typeof a=="function"||!a)&&(i=a||void 0,(n.$ignore_time||n.hasOwnProperty("$ip"))&&(a={},Object.keys(n).forEach(function(o){a[o]=n[o],delete n[o]}))),typeof r!="number"&&(r=parseFloat(r),isNaN(r))){this.mixpanel.config.logger.error("Invalid value passed to mixpanel.people.track_charge - must be a number");return}if(n.$amount=r,n.hasOwnProperty("$time")){let o=n.$time;Object.prototype.toString.call(o)==="[object Date]"&&(n.$time=o.toISOString())}let s={$append:{$transactions:n},$token:this.mixpanel.token,$distinct_id:t};s=Jee(s,a),this.mixpanel.config.debug&&this.mixpanel.config.logger.debug("Sending the following data to Mixpanel (Engage)",{data:s}),this.mixpanel.send_request({method:"GET",endpoint:"/engage",data:s},i)}clear_charges(t,r,n){let a={$set:{$transactions:[]},$token:this.mixpanel.token,$distinct_id:t};typeof r=="function"&&(n=r),a=Jee(a,r),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:a},n)}delete_user(t,r,n){let a={$distinct_id:t};this._delete_profile({identifiers:a,modifiers:r,callback:n})}remove(t,r,n,a){let i={$distinct_id:t};this._remove({identifiers:i,data:r,modifiers:n,callback:a})}union(t,r,n,a){let i={$distinct_id:t};this._union({identifiers:i,data:r,modifiers:n,callback:a})}unset(t,r,n,a){let i={$distinct_id:t};this._unset({identifiers:i,prop:r,modifiers:n,callback:a})}};gFt.MixpanelPeople=RAe});var PAe=f((u9i,EFt)=>{var xFt=Se("crypto"),Fma="$experiment_started",Uma={"Content-Type":"application/json"};function Vma(e){let t=BigInt("0x100000001B3"),r=BigInt("0xCBF29CE484222325");for(let n=0;n<e.length;n++)r^=BigInt(e[n]),r*=t,r&=BigInt("0xFFFFFFFFFFFFFFFF");return r}function Hma(e,t){let r=Buffer.from(e+t,"utf-8"),n=Vma(r);return Number(n%BigInt(100))/100}function zma(e,t){return{mp_lib:"node",$lib_version:t,token:e}}function Wma(){let t=xFt.randomBytes(16).toString("hex"),r=xFt.randomBytes(8).toString("hex");return`00-${t}-${r}-01`}function Zee(e,t){return e==null?e:typeof e=="string"?e.toLowerCase():typeof e=="object"?Array.isArray(e)?e.map(r=>Zee(r,t)):Object.fromEntries(Object.entries(e).map(([r,n])=>[t?r.toLowerCase():r,Zee(n,t)])):e}function Gma(e){return Zee(e,!0)}function Kma(e){return Zee(e,!1)}EFt.exports={EXPOSURE_EVENT:Fma,REQUEST_HEADERS:Uma,normalizedHash:Hma,prepareCommonQueryParams:zma,generateTraceparent:Wma,lowercaseAllKeysAndValues:Gma,lowercaseLeafNodes:Kma}});var MAe=f((d9i,wFt)=>{var Yma=Se("https"),Jma=TAe(),{prepareCommonQueryParams:Zma,generateTraceparent:Xma,EXPOSURE_EVENT:Qma,REQUEST_HEADERS:e6a}=PAe(),CAe=class{constructor(t,r,n,a,i){this.providerConfig=t,this.endpoint=r,this.tracker=n,this.evaluationMode=a,this.logger=i}async callFlagsEndpoint(t=null){return new Promise((r,n)=>{let a=Zma(this.providerConfig.token,Jma.version),i=new URLSearchParams(a);if(t)for(let[u,d]of Object.entries(t))i.append(u,d);let s=`${this.endpoint}?${i.toString()}`,o={host:this.providerConfig.api_host,port:443,path:s,method:"GET",headers:{...e6a,Authorization:"Basic "+Buffer.from(this.providerConfig.token+":").toString("base64"),traceparent:Xma()},timeout:this.providerConfig.request_timeout_in_seconds*1e3},l=Yma.request(o,u=>{let d="";u.on("data",c=>{d+=c}),u.on("end",()=>{if(u.statusCode!==200)return this.logger?.error(`HTTP ${u.statusCode} error calling flags endpoint: ${d}`),n(new Error(`HTTP ${u.statusCode}: ${d}`));try{let c=JSON.parse(d);r(c)}catch(c){this.logger?.error(`Failed to parse JSON response: ${c.message}`),n(c)}})});l.on("error",u=>{this.logger?.error(`Network error calling flags endpoint: ${u.message}`),n(u)}),l.on("timeout",()=>{this.logger?.error("Request timeout calling flags endpoint"),l.destroy(),n(new Error("Request timeout"))}),l.end()})}trackExposureEvent(t,r,n,a=null){if(!n.distinct_id){this.logger?.error("Cannot track exposure event without a distinct_id in the context");return}let i={distinct_id:n.distinct_id,"Experiment name":t,"Variant name":r.variant_key,$experiment_type:"feature_flag","Flag evaluation mode":this.evaluationMode};a!=null&&(i["Variant fetch latency (ms)"]=a),r.experiment_id!==void 0&&(i.$experiment_id=r.experiment_id),r.is_experiment_active!==void 0&&(i.$is_experiment_active=r.is_experiment_active),r.is_qa_tester!==void 0&&(i.$is_qa_tester=r.is_qa_tester),this.tracker(Qma,i,s=>{s&&this.logger?.error(`[flags]Failed to track exposure event for flag '${t}': ${s.message}`)})}};wFt.exports=CAe});var TFt=f((kAe,SFt)=>{(function(e,t){typeof define=="function"&&define.amd?define(t):typeof kAe=="object"?SFt.exports=t():e.jsonLogic=t()})(kAe,function(){"use strict";Array.isArray||(Array.isArray=function(n){return Object.prototype.toString.call(n)==="[object Array]"});function e(n){for(var a=[],i=0,s=n.length;i<s;i++)a.indexOf(n[i])===-1&&a.push(n[i]);return a}var t={},r={"==":function(n,a){return n==a},"===":function(n,a){return n===a},"!=":function(n,a){return n!=a},"!==":function(n,a){return n!==a},">":function(n,a){return n>a},">=":function(n,a){return n>=a},"<":function(n,a,i){return i===void 0?n<a:n<a&&a<i},"<=":function(n,a,i){return i===void 0?n<=a:n<=a&&a<=i},"!!":function(n){return t.truthy(n)},"!":function(n){return!t.truthy(n)},"%":function(n,a){return n%a},log:function(n){return console.log(n),n},in:function(n,a){return!a||typeof a.indexOf>"u"?!1:a.indexOf(n)!==-1},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(n,a,i){if(i<0){var s=String(n).substr(a);return s.substr(0,s.length+i)}return String(n).substr(a,i)},"+":function(){return Array.prototype.reduce.call(arguments,function(n,a){return parseFloat(n,10)+parseFloat(a,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(n,a){return parseFloat(n,10)*parseFloat(a,10)})},"-":function(n,a){return a===void 0?-n:n-a},"/":function(n,a){return n/a},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,function(n,a){return n.concat(a)},[])},var:function(n,a){var i=a===void 0?null:a,s=this;if(typeof n>"u"||n===""||n===null)return s;for(var o=String(n).split("."),l=0;l<o.length;l++)if(s==null||(s=s[o[l]],s===void 0))return i;return s},missing:function(){for(var n=[],a=Array.isArray(arguments[0])?arguments[0]:arguments,i=0;i<a.length;i++){var s=a[i],o=t.apply({var:s},this);(o===null||o==="")&&n.push(s)}return n},missing_some:function(n,a){var i=t.apply({missing:a},this);return a.length-i.length>=n?[]:i}};return t.is_logic=function(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)&&Object.keys(n).length===1},t.truthy=function(n){return Array.isArray(n)&&n.length===0?!1:!!n},t.get_operator=function(n){return Object.keys(n)[0]},t.get_values=function(n){return n[t.get_operator(n)]},t.apply=function(n,a){if(Array.isArray(n))return n.map(function(m){return t.apply(m,a)});if(!t.is_logic(n))return n;var i=t.get_operator(n),s=n[i],o,l,u,d,c;if(Array.isArray(s)||(s=[s]),i==="if"||i=="?:"){for(o=0;o<s.length-1;o+=2)if(t.truthy(t.apply(s[o],a)))return t.apply(s[o+1],a);return s.length===o+1?t.apply(s[o],a):null}else if(i==="and"){for(o=0;o<s.length;o+=1)if(l=t.apply(s[o],a),!t.truthy(l))return l;return l}else if(i==="or"){for(o=0;o<s.length;o+=1)if(l=t.apply(s[o],a),t.truthy(l))return l;return l}else{if(i==="filter")return d=t.apply(s[0],a),u=s[1],Array.isArray(d)?d.filter(function(m){return t.truthy(t.apply(u,m))}):[];if(i==="map")return d=t.apply(s[0],a),u=s[1],Array.isArray(d)?d.map(function(m){return t.apply(u,m)}):[];if(i==="reduce")return d=t.apply(s[0],a),u=s[1],c=typeof s[2]<"u"?t.apply(s[2],a):null,Array.isArray(d)?d.reduce(function(m,b){return t.apply(u,{current:b,accumulator:m})},c):c;if(i==="all"){if(d=t.apply(s[0],a),u=s[1],!Array.isArray(d)||!d.length)return!1;for(o=0;o<d.length;o+=1)if(!t.truthy(t.apply(u,d[o])))return!1;return!0}else if(i==="none"){if(d=t.apply(s[0],a),u=s[1],!Array.isArray(d)||!d.length)return!0;for(o=0;o<d.length;o+=1)if(t.truthy(t.apply(u,d[o])))return!1;return!0}else if(i==="some"){if(d=t.apply(s[0],a),u=s[1],!Array.isArray(d)||!d.length)return!1;for(o=0;o<d.length;o+=1)if(t.truthy(t.apply(u,d[o])))return!0;return!1}}if(s=s.map(function(m){return t.apply(m,a)}),r.hasOwnProperty(i)&&typeof r[i]=="function")return r[i].apply(a,s);if(i.indexOf(".")>0){var h=String(i).split("."),p=r;for(o=0;o<h.length;o++){if(!p.hasOwnProperty(h[o]))throw new Error("Unrecognized operation "+i+" (failed at "+h.slice(0,o+1).join(".")+")");p=p[h[o]]}return p.apply(a,s)}throw new Error("Unrecognized operation "+i)},t.uses_data=function(n){var a=[];if(t.is_logic(n)){var i=t.get_operator(n),s=n[i];Array.isArray(s)||(s=[s]),i==="var"?a.push(s[0]):s.forEach(function(o){a.push.apply(a,t.uses_data(o))})}return e(a)},t.add_operation=function(n,a){r[n]=a},t.rm_operation=function(n){delete r[n]},t.rule_like=function(n,a){if(a===n||a==="@")return!0;if(a==="number")return typeof n=="number";if(a==="string")return typeof n=="string";if(a==="array")return Array.isArray(n)&&!t.is_logic(n);if(t.is_logic(a)){if(t.is_logic(n)){var i=t.get_operator(a),s=t.get_operator(n);if(i==="@"||i===s)return t.rule_like(t.get_values(n,!1),t.get_values(a,!1))}return!1}if(Array.isArray(a))if(Array.isArray(n)){if(a.length!==n.length)return!1;for(var o=0;o<a.length;o+=1)if(!t.rule_like(n[o],a[o]))return!1;return!0}else return!1;return!1},t})});var IFt=f((c9i,qFt)=>{var t6a=MAe(),{normalizedHash:AFt,lowercaseAllKeysAndValues:r6a,lowercaseLeafNodes:n6a}=PAe(),{apply:a6a}=TFt(),NAe=class extends t6a{constructor(t,r,n,a){let i={api_host:"api.mixpanel.com",request_timeout_in_seconds:10,enable_polling:!0,polling_interval_in_seconds:60,...r},s={token:t,api_host:i.api_host,request_timeout_in_seconds:i.request_timeout_in_seconds};super(s,"/flags/definitions",n,"local",a),this.config=i,this.flagDefinitions=new Map,this.pollingInterval=null}async startPollingForDefinitions(){try{await this._fetchFlagDefinitions(),this.config.enable_polling&&!this.pollingInterval&&(this.pollingInterval=setInterval(async()=>{try{await this._fetchFlagDefinitions()}catch(t){this.logger?.error(`Error polling for flag definition: ${t.message}`)}},this.config.polling_interval_in_seconds*1e3))}catch(t){this.logger?.error(`Initial flag definitions fetch failed: ${t.message}`)}}stopPollingForDefinitions(){this.pollingInterval?(clearInterval(this.pollingInterval),this.pollingInterval=null):this.logger?.warn("stopPollingForDefinitions called but polling was not active")}isEnabled(t,r){return this.getVariantValue(t,!1,r)===!0}getVariantValue(t,r,n,a=!0){return this.getVariant(t,{variant_value:r},n,a).variant_value}getVariant(t,r,n,a=!0){let i=this.flagDefinitions.get(t);if(!i)return this.logger?.warn(`Cannot find flag definition for key: '${t}`),r;if(!Object.hasOwn(n,i.context))return this.logger?.warn(`The variant assignment key, '${i.context}' for flag, '${t}' is not present in the supplied user context dictionary`),r;let s=n[i.context],o=null,l=this._getVariantOverrideForTestUser(i,n);if(l)o=l;else{let u=this._getAssignedRollout(i,s,n);u&&(o=this._getAssignedVariant(i,s,t,u))}return o?(a&&this.trackExposureEvent(t,o,n),o):r}getAllVariants(t){let r={};for(let n of this.flagDefinitions.keys()){let a=this.getVariant(n,null,t,!1);a!==null&&(r[n]=a)}return r}async _fetchFlagDefinitions(){let t=await this.callFlagsEndpoint(),r=new Map;return t.flags.forEach(n=>{r.set(n.key,n)}),this.flagDefinitions=r,t}_getMatchingVariant(t,r){for(let n of r.ruleset.variants)if(t.toLowerCase()===n.key.toLowerCase())return{variant_key:n.key,variant_value:n.value,experiment_id:r.experiment_id,is_experiment_active:r.is_experiment_active};return null}_getVariantOverrideForTestUser(t,r){if(!t.ruleset.test?.users)return null;let n=r.distinct_id;if(!n)return null;let a=t.ruleset.test.users[n];if(!a)return null;let i=this._getMatchingVariant(a,t);return i&&(i.is_qa_tester=!0),i}_getAssignedRollout(t,r,n){for(let a=0;a<t.ruleset.rollout.length;a++){let i=t.ruleset.rollout[a],s;if(t.hash_salt!==null&&t.hash_salt!==void 0?s=t.key+t.hash_salt+a.toString():s=t.key+"rollout",AFt(String(r),s)<i.rollout_percentage&&this._isRuntimeEvaluationSatisfied(i,n))return i}return null}_getAssignedVariant(t,r,n,a){if(a.variant_override){let c=this._getMatchingVariant(a.variant_override.key,t);if(c)return{...c,is_qa_tester:!1}}let i=t.hash_salt!==null&&t.hash_salt!==void 0?t.hash_salt:"",s=n+i+"variant",o=AFt(String(r),s),l=t.ruleset.variants.map(c=>({...c}));if(a.variant_splits)for(let c of l)c.key in a.variant_splits&&(c.split=a.variant_splits[c.key]);let u=l[0],d=0;for(let c of l)if(u=c,d+=c.split||0,o<d)break;return{variant_key:u.key,variant_value:u.value,experiment_id:t.experiment_id,is_experiment_active:t.is_experiment_active,is_qa_tester:!1}}_extractRuntimeParameters(t){let r=t.custom_properties;return!r||typeof r!="object"?null:r6a(r)}_isRuntimeRuleSatisfied(t,r){try{return a6a(n6a(t.runtime_evaluation_rule),this._extractRuntimeParameters(r))}catch(n){return this.logger?.error(`Error evaluating runtime rule: ${n.message}`),!1}}_isRuntimeEvaluationSatisfied(t,r){return t.runtime_evaluation_rule?this._isRuntimeRuleSatisfied(t,r):t.runtime_evaluation_definition?this._isLegacyRuntimeEvaluationSatisfied(t,r):!0}_isLegacyRuntimeEvaluationSatisfied(t,r){let n=this._extractRuntimeParameters(r);if(!n)return!1;for(let[a,i]of Object.entries(t.runtime_evaluation_definition)){if(!(a in n))return!1;let s=n[a];if(String(s).toLowerCase()!==String(i).toLowerCase())return!1}return!0}};qFt.exports=NAe});var RFt=f((p9i,OFt)=>{var i6a=MAe(),DAe=class extends i6a{constructor(t,r,n,a){let i={api_host:"api.mixpanel.com",request_timeout_in_seconds:10,...r},s={token:t,api_host:i.api_host,request_timeout_in_seconds:i.request_timeout_in_seconds};super(s,"/flags",n,"remote",a)}async getVariantValue(t,r,n,a=!0){try{return(await this.getVariant(t,{variant_value:r},n,a)).variant_value}catch(i){return this.logger?.error(`Failed to get variant value for flag '${t}': ${i.message}`),r}}async getVariant(t,r,n,a=!0){try{let i=Date.now(),s=await this._fetchFlags(n,t),o=Date.now()-i,u=(s.flags||{})[t];return u?(a&&this.trackExposureEvent(t,u,n,o),u):r}catch(i){return this.logger?.error(`Failed to get variant for flag '${t}': ${i.message}`),r}}async isEnabled(t,r){try{return await this.getVariantValue(t,!1,r)===!0}catch(n){return this.logger?.error(`Failed to check if flag '${t}' is enabled: ${n.message}`),!1}}async getAllVariants(t){try{return(await this._fetchFlags(t)).flags||{}}catch(r){return this.logger?.error(`Failed to get all remote variants: ${r.message}`),null}}_fetchFlags(t,r=null){let n={context:JSON.stringify(t)};return r!==null&&(n.flag_key=r),this.callFlagsEndpoint(n)}};OFt.exports=DAe});var CFt=f((m9i,PFt)=>{var s6a=IFt(),o6a=RFt();PFt.exports={LocalFeatureFlagsProvider:s6a,RemoteFeatureFlagsProvider:o6a}});var NFt=f((h9i,kFt)=>{var f6a=Se("querystring"),$Ae=Se("buffer").Buffer,MFt=Se("http"),LAe=Se("https"),l6a=yFt(),u6a=Se("url"),d6a=TAe(),{async_all:c6a,ensure_timestamp:jAe,assert_logger:p6a}=AAe(),{MixpanelGroups:m6a}=vFt(),{MixpanelPeople:h6a}=_Ft(),{LocalFeatureFlagsProvider:y6a,RemoteFeatureFlagsProvider:b6a}=CFt(),v6a={test:!1,debug:!1,verbose:!1,host:"api.mixpanel.com",protocol:"https",path:"",keepAlive:!0,geolocate:!1,logger:console},g6a=function(e,t){if(!e)throw new Error("The Mixpanel Client needs a Mixpanel token: `init(token)`");let r={token:e,config:{...v6a}},{keepAlive:n}=r.config,a=50,i={http:MFt,https:LAe},s={http:new MFt.Agent({keepAlive:n}),https:new LAe.Agent({keepAlive:n})},o=process.env.HTTPS_PROXY||process.env.HTTP_PROXY,l=o?new l6a(Object.assign(u6a.parse(o),{keepAlive:n})):null;r.send_request=function(c,h){h=h||function(){};let p=$Ae.from(JSON.stringify(c.data)).toString("base64"),m=c.endpoint,b=(c.method||"GET").toUpperCase(),v={ip:r.config.geolocate?1:0,verbose:r.config.verbose?1:0},_=r.config.key,w=r.config.secret,S=i[r.config.protocol],A={host:r.config.host,port:r.config.port,headers:{},method:b},W;if(!S)throw new Error("Mixpanel Initialization Error: Unsupported protocol "+r.config.protocol+". Supported protocols are: "+Object.keys(i));if(b==="POST"?(p="data="+p,A.headers["Content-Type"]="application/x-www-form-urlencoded",A.headers["Content-Length"]=$Ae.byteLength(p)):b==="GET"&&(v.data=p),w){if(S!==LAe)throw new Error("Must use HTTPS if authenticating with API Secret");let B=$Ae.from(w+":").toString("base64");A.headers.Authorization="Basic "+B}else if(_)v.api_key=_;else if(m==="/import")throw new Error("The Mixpanel Client needs a Mixpanel API Secret when importing old events: `init(token, { secret: ... })`");A.agent=l||s[r.config.protocol],r.config.test&&(v.test=1),A.path=r.config.path+m+"?"+f6a.stringify(v),W=S.request(A,function(B){let C="";B.on("data",function(X){C+=X}),B.on("end",function(){let X;if(r.config.verbose)try{let $=JSON.parse(C);$.status!=1&&(X=new Error("Mixpanel Server Error: "+$.error))}catch($){X=new Error("Could not parse response from Mixpanel "+$.message)}else X=C!=="1"?new Error("Mixpanel Server Error: "+C):void 0;h(X)})}),W.on("error",function(B){r.config.debug&&r.config.logger.error("Got Error: "+B.message),h(B)}),b==="POST"&&W.write(p),W.end()},r.send_event_request=function(c,h,p,m){p.token=r.token,p.mp_lib="node",p.$lib_version=d6a.version;let b={event:h,properties:p};r.config.debug&&r.config.logger.debug("Sending the following event to Mixpanel",{data:b}),r.send_request({method:"GET",endpoint:c,data:b},m)};let u=function(c,h){let p=[],m=0,b=c.length;for(;m<b;)p.push(c.slice(m,m+=h));return p},d=function(c,h){let p=c.event_list,m=c.endpoint,b=c.max_batch_size?Math.min(a,c.max_batch_size):a,v=c.max_concurrent_requests||c.max_batch_size>a&&Math.ceil(c.max_batch_size/a),_=u(p,b),w=v?u(_,v):[_],S=_.length,A=w.length;function W(C,X){C.length>0&&(C=C.map(function($){return(m==="/import"||$.properties.time)&&($.properties.time=jAe($.properties.time)),$.properties.token=$.properties.token||r.token,$}),r.send_request({method:"POST",endpoint:m,data:C},X))}function B(C){let X=w[C];c6a(X,W,function(te,Q){C+=1,C===A?h&&h(te,Q):B(C)})}B(0),r.config.debug&&r.config.logger.debug("Sending "+p.length+" events to Mixpanel in "+S+" batches of events and "+A+" batches of requests")};return r.track=function(c,h,p){(!h||typeof h=="function")&&(p=h,h={}),h.time&&(h.time=jAe(h.time)),r.send_event_request("/track",c,h,p)},r.track_batch=function(c,h,p){h=h||{},typeof h=="function"&&(p=h,h={});let m={event_list:c,endpoint:"/track",max_concurrent_requests:h.max_concurrent_requests,max_batch_size:h.max_batch_size};d(m,p)},r.import=function(c,h,p,m){(!p||typeof p=="function")&&(m=p,p={}),p.time=jAe(h),r.send_event_request("/import",c,p,m)},r.import_batch=function(c,h,p){let m;(typeof h=="function"||!h)&&(p=h,h={}),m={event_list:c,endpoint:"/import",max_concurrent_requests:h.max_concurrent_requests,max_batch_size:h.max_batch_size},d(m,p)},r.alias=function(c,h,p){let m={distinct_id:c,alias:h};r.track("$create_alias",m,p)},r.groups=new m6a(r),r.people=new h6a(r),r.set_config=function(c){if(c&&c.logger!==void 0&&p6a(c.logger),Object.assign(r.config,c),c.host){let[h,p]=c.host.split(":");r.config.host=h,p&&(r.config.port=Number(p))}},t&&r.set_config(t),t&&t.local_flags_config&&(r.local_flags=new y6a(e,t.local_flags_config,r.track.bind(r),t.logger)),t&&t.remote_flags_config&&(r.remote_flags=new b6a(e,t.remote_flags_config,r.track.bind(r),t.logger)),r};kFt.exports={init:g6a}});import Pe from"colors";var fYt=Gt(Ub(),1),lYt=Gt(Une(),1),{format:Iha,createLogger:Oha,transports:Rha}=fYt;process.setMaxListeners(0);var H3r=Gt(Ub(),1);Fc();var li;(function(e){e.RUST="rs",e.C="c",e.JS="js",e.API="api",e.PYTHON="py"})(li||(li={}));var X1;(function(e){e.API="api"})(X1||(X1={}));var cZt={...li,...X1};var h2a=Object.values(cZt),y2a=Object.values(li);var zMe;(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"})(zMe||(zMe={}));var WMe;(function(e){e.JSON="json",e.WASM="wasm",e.PLAIN_TXT="txt",e.JS="js",e.DTA="dta",e.PY="py",e.TAR="tar"})(WMe||(WMe={}));var NNe=Gt(die(),1);async function DNe(e,t){if(!(0,NNe.satisfies)(process.version,e)){let r=`Nodejs required version ${e} not satisfied with current version ${process.version}.`;t?t.error(r):console.log(r),process.exit(1)}}import dva from"node:os";var $Ne;(function(e){e.SYNC="sync",e.ASYNC="async"})($Ne||($Ne={}));var LNe;(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"})(LNe||(LNe={}));var i5;(function(e){e.FAILED="failed",e.SUCCEED="succeed",e.RUNNING="running"})(i5||(i5={}));var jNe;(function(e){e.ERROR="Error",e.SUCCESS="Success",e.RUNNING="Running"})(jNe||(jNe={}));var BNe;(function(e){e.ERROR="Error",e.SUCCESS="Success",e.RUNNING="Running",e.INDETERMINATE="Indeterminate"})(BNe||(BNe={}));var FNe;(function(e){e.MINIO="minio",e.S3="s3"})(FNe||(FNe={}));var UNe="60000000000",VNe="65536",HNe="524288",zNe="1024";var eDe=Gt(pie(),1),j7=class{tokens=[];authInputs;parse(t,r){let n=this.parseKeyValuePairs(r);if(t.length==0){this.authInputs=n;return}let a=Object.keys(n);if(t.every(i=>a.includes(i))){let i={};for(let s of t)i[s]=n[s];this.authInputs=i}else throw new Error(`Invalid authString: ${t} are required`)}parseKeyValuePairs(t){try{let r=t.split(","),n={};for(let a of r){let[i,s]=a.split(":");n[i.trim()]=s.trim()}return n}catch{throw new Error("Invalid auth string")}}},EO=class extends j7{tokens=["accessKey","secretKey"];constructor(t){super(),this.parse(this.tokens,t)}authHeaders(t){return eDe.default.sign(t,{accessKeyId:this.authInputs.accessKey,secretAccessKey:this.authInputs.secretKey}).headers||{}}},wO=class extends j7{tokens=["username","password"];constructor(t){super(),this.parse(this.tokens,t)}authHeaders(t){return{Authorization:`Basic ${btoa(`${this.authInputs.username}:${this.authInputs.password}`)}`}}},SO=class extends j7{tokens=[];constructor(t){super(),this.parse([],t)}authHeaders(t){return{...this.authInputs}}};var Of;(function(e){e.AWS_SIGNATURE="aws-signature",e.BASIC_AUTH="basic-auth",e.CUSTOM_HEADER="custom-header"})(Of||(Of={}));var mie=(e,t)=>{switch(e){case Of.AWS_SIGNATURE:return new EO(t);case Of.BASIC_AUTH:return new wO(t);case Of.CUSTOM_HEADER:return new SO(t);default:throw new Error(`Invalid authentication method specified. Should be one of <${Object.values(Of)}>`)}};var tDe;(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.REQUEST_SLASH="request_slash",e.RETRY_SLASH="retry_slash",e.RETRY_DEREGISTER="retry_deregister",e.ENTITLEMENT="entitlement",e.HEALTH_CHECK="health_check",e.TASK_REQUEST_WALLET="task_request_wallet",e.TASK_REQUEST_API_KEY="task_request_api_key",e.TASK_REQUEST_BLOCKCHAIN="task_request_blockchain",e.GET_EXECUTION_STATUS="get_execution_status",e.CHECK_DUPLICATED_EXECUTION="check_duplicated_execution",e.CHECK_DUPLICATED_EXECUTION_RESPONSE="check_duplicated_execution_response",e.GET_INVOICES_COUNT="get_invoices_count",e.GET_INVOICES_COUNT_RESPONSE="get_invoices_count_response",e.GET_EXECUTION_TRANSCRIPT="get_execution_transcript",e.GET_EXECUTION_TRANSCRIPT_RESPONSE="get_execution_transcript_response",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",e.HTTP_GATEWAY_TASK_STATUS_RESPONSE="http_gateway_task_status_response",e.HTTP_GATEWAY_TASK_RESPONSE="http_gateway_task_response"})(tDe||(tDe={}));var Qo;(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.RETRY_SLASH="retry_slash",e.RETRY_DEREGISTER="retry_deregister",e.TASK_REQUEST_WALLET="task_request_wallet",e.TASK_REQUEST_BLOCKCHAIN="task_request_blockchain",e.TASK_REQUEST_API_KEY="task_request_api_key",e.GET_EXECUTION_STATUS="get_execution_status",e.TASK_RESPONSE_HTTP="task_response_http",e.TASK_RESPONSE_BLOCKCHAIN="task_response_blockchain",e.CHECK_DUPLICATED_EXECUTION="check_duplicated_execution",e.CHECK_DUPLICATED_EXECUTION_RESPONSE="check_duplicated_execution_response",e.GET_INVOICES_COUNT="get_invoices_count",e.GET_INVOICES_COUNT_RESPONSE="get_invoices_count_response",e.GET_EXECUTION_TRANSCRIPT="get_execution_transcript",e.GET_EXECUTION_TRANSCRIPT_RESPONSE="get_execution_transcript_response"})(Qo||(Qo={}));var rDe;(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"})(rDe||(rDe={}));var nDe;(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.RETRY_SLASH="retry_slash",e.RETRY_DEREGISTER="retry_deregister",e.TASK_REQUEST_WALLET="task_request_wallet",e.TASK_REQUEST_API_KEY="task_request_api_key",e.TASK_REQUEST_BLOCKCHAIN="task_request_blockchain",e.GET_EXECUTION_STATUS="get_execution_status",e.TASK_RESPONSE_HTTP="task_response_http",e.TASK_RESPONSE_BLOCKCHAIN="task_response_blockchain",e.CHECK_DUPLICATED_EXECUTION="check_duplicated_execution",e.CHECK_DUPLICATED_EXECUTION_RESPONSE="check_duplicated_execution_response",e.GET_INVOICES_COUNT="get_invoices_count",e.GET_INVOICES_COUNT_RESPONSE="get_invoices_count_response",e.GET_EXECUTION_TRANSCRIPT="get_execution_transcript",e.GET_EXECUTION_TRANSCRIPT_RESPONSE="get_execution_transcript_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"})(nDe||(nDe={}));var aDe;(function(e){e.VALIDATION_ERROR="validation_error"})(aDe||(aDe={}));var B7;(function(e){e.GAME_PENDING="GamePending",e.READY_FOR_INVOICE="ReadyForInvoice",e.CONTROL_NODE_TIMEOUT="ControlNodeTimeout",e.ERROR="Error"})(B7||(B7={}));var iDe;(function(e){e.HTTP_GATEWAY_TASK_RESPONSE="http_gateway_task_response",e.HTTP_GATEWAY_TASK_STATUS_RESPONSE="http_gateway_task_status_response"})(iDe||(iDe={}));var sDe;(function(e){let t;(function(n){n.Pay="pay",n.Charge="charge",n.Penalty="penalty"})(t=e.Operation||(e.Operation={}));let r;(function(n){n.IS_USER_REGISTER="isUserRegister"})(r=e.EntitlementOperation||(e.EntitlementOperation={}))})(sDe||(sDe={}));var oDe;(function(e){e.Pay="pay",e.Charge="charge",e.Penalty="penalty"})(oDe||(oDe={}));var Cva=[Qo.TASK_SOLVED,Qo.TASK_CREATED,Qo.API_TASK_CREATED,Qo.NODE_OUTCOME,Qo.SOLUTIONS_REVEALED,Qo.REVEAL_SOLUTIONS,Qo.API_OUTCOME,Qo.EXECUTION_COMPLETED,Qo.EXECUTION_METADATA,Qo.ADJUDICATION_OUTCOME];var fDe;(function(e){e.EXECUTE_TRANSACTION="EXECUTE_TRANSACTION",e.GET_TRANSACTION="GET_TRANSACTION",e.GET_TRANSACTION_BY_HASH="GET_TRANSACTION_BY_HASH",e.GET_TRANSACTIONS_BY_STATUS="GET_TRANSACTIONS_BY_STATUS",e.REGISTER_USER="REGISTER_USER",e.AUTH_CHECK_WALLET="AUTH_CHECK_WALLET",e.AUTH_CHECK_API_KEY="AUTH_CHECK_API_KEY",e.AUTH_CHECK_BLOCKCHAIN="AUTH_CHECK_BLOCKCHAIN",e.RESOLVE_AUTHORIZATION="RESOLVE_AUTHORIZATION",e.FETCH_NODES="FETCH_NODES"})(fDe||(fDe={}));var lDe;(function(e){e.AUTHORIZATION_REGISTER="authorization.register",e.AUTHORIZATION_DEREGISTER="authorization.deregister",e.TASKREGISTRY_REGISTER_NAMESPACE="taskregistry.registerNamespace",e.TASKREGISTRY_REGISTER_TASK="taskregistry.registerTask",e.STAKING_SLASH="staking.slash",e.NODEREGISTRY_DEREGISTER="noderegistry.deregister",e.WATCHTOWER_CALLBACK="watchtower.callback"})(lDe||(lDe={}));var Lle=Gt(js(),1);function rd(){return function(e,t){(0,Lle.registerDecorator)({name:"IsUnixTimestamp",target:e.constructor,propertyName:t,validator:{validate(r){let a=r,i=new Date(a);return!isNaN(i.getTime())&&a>16725312e5}}})}}function jle(){return function(e,t){(0,Lle.registerDecorator)({name:"IsUnixTimestamp",target:e.constructor,propertyName:t,validator:{validate(r){let a=r,i=new Date(a);return!isNaN(i.getTime())&&a>1672531200}}})}}var c7a=Gt(Ap(),1),t6=Gt(Ip(),1),ke=Gt(js(),1);var Yt=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Jt=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},Hle;(function(e){e.FREE="free",e.DEV="dev",e.UNLIMITED="unlimited"})(Hle||(Hle={}));var $0=class{iv;ephemPublicKey;ciphertext;mac;constructor(t,r,n,a){this.iv=t,this.ephemPublicKey=r,this.ciphertext=n,this.mac=a}};Yt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Jt("design:type",String)],$0.prototype,"iv",void 0);Yt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Jt("design:type",String)],$0.prototype,"ephemPublicKey",void 0);Yt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Jt("design:type",String)],$0.prototype,"ciphertext",void 0);Yt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Jt("design:type",String)],$0.prototype,"mac",void 0);var Ar=class{v;r;s;constructor(t,r,n){this.v=t,this.r=r,this.s=n}};Yt([(0,ke.IsNotEmpty)(),(0,ke.IsNumber)(),Jt("design:type",Number)],Ar.prototype,"v",void 0);Yt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Jt("design:type",String)],Ar.prototype,"r",void 0);Yt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Jt("design:type",String)],Ar.prototype,"s",void 0);var Xm=class{memoryGrowDelta;call;frame;steps;constructor(t,r,n,a){this.call=t,this.frame=r,this.steps=n,this.memoryGrowDelta=a}};Yt([(0,ke.IsNumber)(),(0,ke.IsOptional)(),Jt("design:type",Number)],Xm.prototype,"memoryGrowDelta",void 0);Yt([(0,ke.IsNumber)(),(0,ke.IsNotEmpty)(),Jt("design:type",Number)],Xm.prototype,"call",void 0);Yt([(0,ke.IsNumber)(),(0,ke.IsNotEmpty)(),Jt("design:type",Number)],Xm.prototype,"frame",void 0);Yt([(0,ke.IsNumber)(),(0,ke.IsNotEmpty)(),Jt("design:type",Number)],Xm.prototype,"steps",void 0);var Qm=class{call;frame;gas;memory;constructor(t,r,n,a){this.call=t,this.frame=r,this.gas=n,this.memory=a}};Yt([(0,ke.IsNumber)(),(0,ke.IsNotEmpty)(),Jt("design:type",Number)],Qm.prototype,"call",void 0);Yt([(0,ke.IsNumber)(),(0,ke.IsNotEmpty)(),Jt("design:type",Number)],Qm.prototype,"frame",void 0);Yt([(0,ke.IsNumber)(),(0,ke.IsNotEmpty)(),Jt("design:type",Number)],Qm.prototype,"gas",void 0);Yt([(0,ke.IsNumber)(),(0,ke.IsNotEmpty)(),Jt("design:type",Number)],Qm.prototype,"memory",void 0);var fh=class{call;frame;memory;constructor(t,r,n){this.call=t,this.frame=r,this.memory=n}};Yt([(0,ke.IsNumber)(),(0,ke.IsNotEmpty)(),Jt("design:type",Number)],fh.prototype,"call",void 0);Yt([(0,ke.IsNumber)(),(0,ke.IsNotEmpty)(),Jt("design:type",Number)],fh.prototype,"frame",void 0);Yt([(0,ke.IsNumber)(),(0,ke.IsNotEmpty)(),Jt("design:type",Number)],fh.prototype,"memory",void 0);var IE=class{protocol;constructor(t){this.protocol=t}};Yt([(0,ke.IsString)(),(0,ke.IsNotEmpty)(),Jt("design:type",String)],IE.prototype,"protocol",void 0);var Xl=class{last;limits;peak;versions;constructor(t,r,n,a){this.last=t,this.limits=r,this.peak=n,this.versions=a}};Yt([(0,ke.ValidateNested)(),(0,t6.Type)(()=>Xm),Jt("design:type",Xm)],Xl.prototype,"last",void 0);Yt([(0,ke.ValidateNested)(),(0,t6.Type)(()=>Qm),Jt("design:type",Qm)],Xl.prototype,"limits",void 0);Yt([(0,ke.ValidateNested)(),(0,t6.Type)(()=>fh),Jt("design:type",fh)],Xl.prototype,"peak",void 0);Yt([(0,ke.IsOptional)(),(0,ke.ValidateNested)(),(0,t6.Type)(()=>IE),Jt("design:type",IE)],Xl.prototype,"versions",void 0);var e6=class{senderAddress;status;output;metering;constructor(t,r,n,a){this.senderAddress=t,this.status=r,this.output=n,this.metering=a}};Yt([(0,ke.IsNotEmpty)(),(0,ke.IsEthereumAddress)(),Jt("design:type",String)],e6.prototype,"senderAddress",void 0);Yt([(0,ke.IsNotEmpty)(),(0,ke.IsEnum)(i5),Jt("design:type",String)],e6.prototype,"status",void 0);Yt([(0,ke.IsOptional)(),(0,ke.IsString)(),Jt("design:type",String)],e6.prototype,"output",void 0);Yt([(0,ke.IsOptional)(),(0,ke.ValidateNested)(),(0,t6.Type)(()=>Xl),Jt("design:type",Xl)],e6.prototype,"metering",void 0);var H5=class{signature;clearTextSolution;constructor(t,r){this.signature=t,this.clearTextSolution=r}};Yt([(0,ke.ValidateNested)(),(0,t6.Type)(()=>Ar),Jt("design:type",Ar)],H5.prototype,"signature",void 0);Yt([(0,ke.ValidateNested)(),(0,t6.Type)(()=>e6),Jt("design:type",e6)],H5.prototype,"clearTextSolution",void 0);var r0=class{blockNumber;selectionStrategy;setNodes;constructor(t,r,n){this.blockNumber=t,this.selectionStrategy=r,this.setNodes=n}};Yt([(0,ke.IsNotEmpty)(),(0,ke.Min)(0),Jt("design:type",Number)],r0.prototype,"blockNumber",void 0);Yt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Jt("design:type",String)],r0.prototype,"selectionStrategy",void 0);Yt([(0,ke.ArrayNotEmpty)(),(0,ke.IsNotEmpty)({each:!0}),(0,ke.IsEthereumAddress)({each:!0}),Jt("design:type",Array)],r0.prototype,"setNodes",void 0);var po=class{gas;call;frame;memory;constructor(t,r,n,a){this.gas=t,this.call=r,this.frame=n,this.memory=a}};Yt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Jt("design:type",String)],po.prototype,"gas",void 0);Yt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Jt("design:type",String)],po.prototype,"call",void 0);Yt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Jt("design:type",String)],po.prototype,"frame",void 0);Yt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Jt("design:type",String)],po.prototype,"memory",void 0);var mo=class{reward;requiredSolutions;totalSolutions;executionTimeout;constructor(t,r,n,a){this.reward=t,this.requiredSolutions=r,this.totalSolutions=n,this.executionTimeout=a}};Yt([(0,ke.IsNotEmpty)(),(0,ke.IsString)(),Jt("design:type",String)],mo.prototype,"reward",void 0);Yt([(0,ke.Min)(1),(0,ke.IsNotEmpty)(),(0,ke.IsNumber)(),Jt("design:type",Number)],mo.prototype,"requiredSolutions",void 0);Yt([(0,ke.Min)(1),(0,ke.IsNotEmpty)(),(0,ke.IsNumber)(),Jt("design:type",Number)],mo.prototype,"totalSolutions",void 0);Yt([(0,ke.Min)(1),(0,ke.IsNotEmpty)(),(0,ke.IsNumber)(),Jt("design:type",Number)],mo.prototype,"executionTimeout",void 0);var lh=class{request;response;constructor(t,r){this.request=t,this.response=r}};Yt([(0,ke.IsNotEmpty)(),(0,ke.IsNumber)(),Jt("design:type",Number)],lh.prototype,"request",void 0);Yt([(0,ke.IsNotEmpty)(),(0,ke.IsNumber)(),Jt("design:type",Number)],lh.prototype,"response",void 0);var bKe;(function(e){e.MINIO="minio",e.S3="s3"})(bKe||(bKe={}));var ho=Gt(js(),1);import{v4 as B3r}from"uuid";var z5=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},W5=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},Ql=class{msgType;messageId;payload;msgTimestamp=Date.now();constructor(t,r){this.msgType=this.constructor.name,this.messageId=r||B3r(),this.payload=t}};z5([(0,ho.IsNotEmpty)(),(0,ho.IsString)(),W5("design:type",String)],Ql.prototype,"msgType",void 0);z5([(0,ho.IsOptional)(),(0,ho.IsUUID)(),W5("design:type",String)],Ql.prototype,"messageId",void 0);z5([(0,ho.ValidateNested)(),W5("design:type",Object)],Ql.prototype,"payload",void 0);z5([rd(),W5("design:type",Number)],Ql.prototype,"msgTimestamp",void 0);var lP=class extends Ql{error;constructor(t,r,n){super(r,n),this.error=t}};z5([(0,ho.IsNotEmpty)(),(0,ho.IsString)(),W5("design:type",String)],lP.prototype,"error",void 0);var zle=class extends Ql{error;constructor(t,r,n){super(r,n),this.error=t}};z5([(0,ho.IsNotEmpty)(),(0,ho.IsString)(),W5("design:type",String)],zle.prototype,"error",void 0);var g7a=Gt(Ap(),1),qe=Gt(js(),1);var nd;(function(e){e.EVM="evm",e.AVALANCHE="avalanche"})(nd||(nd={}));var sd=Gt(Ip(),1),gt=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},_t=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},eu;(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"})(eu||(eu={}));var yo=class{type;executionId;message;msgHash;signature;sequencerAddress;timestamp;constructor(t,r,n,a,i,s,o){this.type=t,this.executionId=r,this.message=a,this.msgHash=n,this.signature=i,this.timestamp=o,this.sequencerAddress=s}};gt([(0,qe.IsNotEmpty)(),(0,qe.IsEnum)(eu),_t("design:type",String)],yo.prototype,"type",void 0);gt([(0,qe.IsUUID)(),(0,qe.IsNotEmpty)(),_t("design:type",String)],yo.prototype,"executionId",void 0);gt([(0,qe.ValidateNested)(),_t("design:type",Object)],yo.prototype,"message",void 0);gt([(0,qe.IsNotEmpty)(),(0,qe.IsHash)("sha256"),_t("design:type",String)],yo.prototype,"msgHash",void 0);gt([(0,qe.ValidateNested)(),(0,sd.Type)(()=>Ar),_t("design:type",Ar)],yo.prototype,"signature",void 0);gt([(0,qe.IsNotEmpty)(),(0,qe.IsEthereumAddress)(),_t("design:type",String)],yo.prototype,"sequencerAddress",void 0);gt([rd(),(0,qe.IsNotEmpty)(),_t("design:type",Number)],yo.prototype,"timestamp",void 0);var gn=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,r,n,a,i,s,o,l,u,d,c,h,p,m,b,v,_,w,S,A,W,B){this.taskId=t,this.executionId=r,this.msgHash=n,this.signature=a,this.limits=i,this.econParams=s,this.workers=o,this.dispatcherTimestamp=l,this.taskRequesterTimestamp=u,this.ledgerName=d,this.blockHash=c,this.blockNumber=h,this.chainId=p,this.nodeRegistryContractAddress=m,this.taskRegistryContractAddress=b,this.taskAuthorizationContractAddress=v,this.taskRequesterAddress=_,this.taskPath=w,this.taskVersion=S,this.signedRequestBody=B,this.senderAddress=A,this.input=W}};gt([(0,qe.IsNotEmpty)(),(0,qe.IsString)(),_t("design:type",String)],gn.prototype,"taskId",void 0);gt([(0,qe.IsNotEmpty)(),(0,qe.IsUUID)(),_t("design:type",String)],gn.prototype,"executionId",void 0);gt([(0,qe.IsNotEmpty)(),(0,qe.IsHash)("sha256"),_t("design:type",String)],gn.prototype,"msgHash",void 0);gt([(0,qe.ValidateNested)(),(0,sd.Type)(()=>Ar),_t("design:type",Ar)],gn.prototype,"signature",void 0);gt([(0,qe.ValidateNested)(),(0,sd.Type)(()=>po),_t("design:type",po)],gn.prototype,"limits",void 0);gt([(0,qe.ValidateNested)(),(0,sd.Type)(()=>mo),_t("design:type",mo)],gn.prototype,"econParams",void 0);gt([(0,qe.ValidateNested)(),(0,sd.Type)(()=>r0),_t("design:type",r0)],gn.prototype,"workers",void 0);gt([(0,qe.IsNotEmpty)(),jle(),_t("design:type",Number)],gn.prototype,"dispatcherTimestamp",void 0);gt([(0,qe.IsNotEmpty)(),jle(),_t("design:type",Number)],gn.prototype,"taskRequesterTimestamp",void 0);gt([(0,qe.IsNotEmpty)(),(0,qe.IsEnum)(nd),_t("design:type",String)],gn.prototype,"ledgerName",void 0);gt([(0,qe.IsNotEmpty)(),_t("design:type",String)],gn.prototype,"blockHash",void 0);gt([(0,qe.IsNotEmpty)(),(0,qe.Min)(0),_t("design:type",Number)],gn.prototype,"blockNumber",void 0);gt([(0,qe.IsNotEmpty)(),(0,qe.IsString)(),_t("design:type",String)],gn.prototype,"chainId",void 0);gt([(0,qe.IsNotEmpty)(),(0,qe.IsEthereumAddress)(),_t("design:type",String)],gn.prototype,"nodeRegistryContractAddress",void 0);gt([(0,qe.IsNotEmpty)(),(0,qe.IsEthereumAddress)(),_t("design:type",String)],gn.prototype,"taskRegistryContractAddress",void 0);gt([(0,qe.IsNotEmpty)(),(0,qe.IsEthereumAddress)(),_t("design:type",String)],gn.prototype,"taskAuthorizationContractAddress",void 0);gt([(0,qe.IsNotEmpty)(),(0,qe.IsEthereumAddress)(),_t("design:type",String)],gn.prototype,"taskRequesterAddress",void 0);gt([(0,qe.IsOptional)(),_t("design:type",String)],gn.prototype,"taskPath",void 0);gt([(0,qe.IsOptional)(),(0,qe.Min)(0),_t("design:type",Number)],gn.prototype,"taskVersion",void 0);gt([(0,qe.IsOptional)(),_t("design:type",Object)],gn.prototype,"signedRequestBody",void 0);gt([(0,qe.IsNotEmpty)(),(0,qe.IsEthereumAddress)(),_t("design:type",String)],gn.prototype,"senderAddress",void 0);gt([(0,qe.IsOptional)(),(0,qe.Allow)(),_t("design:type",String)],gn.prototype,"input",void 0);var qa=class{type="dispatch_task";taskId;executionId;msgHash;signature;ledgerName;blockHash;blockNumber;chainId;taskRegistryContractAddress;taskAuthorizationContractAddress;taskRequesterAddress;taskPath;taskVersion;senderAddress;executionTimeout;input;constructor(t,r,n,a,i,s,o,l,u,d,c,h,p,m,b,v){this.taskId=t,this.executionId=r,this.msgHash=n,this.signature=a,this.executionTimeout=b,this.ledgerName=s,this.blockHash=o,this.blockNumber=l,this.chainId=u,this.taskRegistryContractAddress=d,this.taskAuthorizationContractAddress=c,this.taskRequesterAddress=h,this.taskPath=p,this.taskVersion=m,this.senderAddress=i,this.input=v}};gt([(0,qe.IsNotEmpty)(),(0,qe.IsString)(),_t("design:type",String)],qa.prototype,"taskId",void 0);gt([(0,qe.IsNotEmpty)(),(0,qe.IsUUID)(),_t("design:type",String)],qa.prototype,"executionId",void 0);gt([(0,qe.IsNotEmpty)(),(0,qe.IsHash)("sha256"),_t("design:type",String)],qa.prototype,"msgHash",void 0);gt([(0,qe.ValidateNested)(),(0,sd.Type)(()=>Ar),_t("design:type",Ar)],qa.prototype,"signature",void 0);gt([(0,qe.IsNotEmpty)(),(0,qe.IsEnum)(nd),_t("design:type",String)],qa.prototype,"ledgerName",void 0);gt([(0,qe.IsNotEmpty)(),_t("design:type",String)],qa.prototype,"blockHash",void 0);gt([(0,qe.IsNotEmpty)(),(0,qe.Min)(0),_t("design:type",Number)],qa.prototype,"blockNumber",void 0);gt([(0,qe.IsNotEmpty)(),(0,qe.IsString)(),_t("design:type",String)],qa.prototype,"chainId",void 0);gt([(0,qe.IsNotEmpty)(),(0,qe.IsEthereumAddress)(),_t("design:type",String)],qa.prototype,"taskRegistryContractAddress",void 0);gt([(0,qe.IsNotEmpty)(),(0,qe.IsEthereumAddress)(),_t("design:type",String)],qa.prototype,"taskAuthorizationContractAddress",void 0);gt([(0,qe.IsNotEmpty)(),(0,qe.IsEthereumAddress)(),_t("design:type",String)],qa.prototype,"taskRequesterAddress",void 0);gt([(0,qe.IsOptional)(),_t("design:type",String)],qa.prototype,"taskPath",void 0);gt([(0,qe.IsOptional)(),(0,qe.Min)(0),_t("design:type",Number)],qa.prototype,"taskVersion",void 0);gt([(0,qe.IsNotEmpty)(),(0,qe.IsEthereumAddress)(),_t("design:type",String)],qa.prototype,"senderAddress",void 0);gt([(0,qe.IsNumber)(),_t("design:type",Number)],qa.prototype,"executionTimeout",void 0);gt([(0,qe.IsOptional)(),(0,qe.Allow)(),_t("design:type",String)],qa.prototype,"input",void 0);var ad=class{executionId;senderAddress;encryptedSolution;msgHash;signature;constructor(t,r,n,a,i){this.executionId=t,this.signature=i,this.encryptedSolution=n,this.senderAddress=r,this.msgHash=a}};gt([(0,qe.IsUUID)(),(0,qe.IsNotEmpty)(),_t("design:type",String)],ad.prototype,"executionId",void 0);gt([(0,qe.IsNotEmpty)(),(0,qe.IsEthereumAddress)(),_t("design:type",String)],ad.prototype,"senderAddress",void 0);gt([(0,qe.ValidateNested)(),(0,sd.Type)(()=>$0),_t("design:type",$0)],ad.prototype,"encryptedSolution",void 0);gt([(0,qe.IsNotEmpty)(),(0,qe.IsHash)("sha256"),_t("design:type",String)],ad.prototype,"msgHash",void 0);gt([(0,qe.ValidateNested)(),(0,sd.Type)(()=>Ar),_t("design:type",Ar)],ad.prototype,"signature",void 0);var id=class{executionId;senderAddress;bodyResponse;tlsHandshakeHash;status;totalTransferredBytes;constructor(t,r,n,a,i,s){this.executionId=t,this.bodyResponse=n,this.tlsHandshakeHash=a,this.senderAddress=r,this.status=i,this.totalTransferredBytes=s}};gt([(0,qe.IsUUID)(),(0,qe.IsNotEmpty)(),_t("design:type",String)],id.prototype,"executionId",void 0);gt([(0,qe.IsNotEmpty)(),(0,qe.IsEthereumAddress)(),_t("design:type",String)],id.prototype,"senderAddress",void 0);gt([(0,qe.IsNotEmpty)(),(0,qe.IsString)(),_t("design:type",String)],id.prototype,"tlsHandshakeHash",void 0);gt([(0,qe.IsNotEmpty)(),(0,qe.IsString)(),_t("design:type",String)],id.prototype,"status",void 0);gt([(0,qe.ValidateNested)(),(0,sd.Type)(()=>lh),_t("design:type",lh)],id.prototype,"totalTransferredBytes",void 0);var w7a=Gt(Ap(),1);var Fe=Gt(js(),1),ui=Gt(Ip(),1);var Pt=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Ct=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},od=class{executionId;msgHash;signature;limits;econParams;workers;senderAddress;input;constructor(t,r,n,a,i,s,o,l){this.executionId=t,this.msgHash=r,this.signature=n,this.limits=a,this.econParams=i,this.workers=s,this.senderAddress=o,this.input=l}};Pt([(0,Fe.IsUUID)(),(0,Fe.IsNotEmpty)(),Ct("design:type",String)],od.prototype,"executionId",void 0);Pt([(0,Fe.IsNotEmpty)(),(0,Fe.IsHash)("sha256"),Ct("design:type",String)],od.prototype,"msgHash",void 0);Pt([(0,Fe.ValidateNested)(),(0,ui.Type)(()=>Ar),Ct("design:type",Ar)],od.prototype,"signature",void 0);Pt([(0,Fe.ValidateNested)(),(0,ui.Type)(()=>po),Ct("design:type",po)],od.prototype,"limits",void 0);Pt([(0,Fe.ValidateNested)(),(0,ui.Type)(()=>mo),Ct("design:type",mo)],od.prototype,"econParams",void 0);Pt([(0,Fe.ValidateNested)(),(0,ui.Type)(()=>r0),Ct("design:type",r0)],od.prototype,"workers",void 0);Pt([(0,Fe.IsNotEmpty)(),(0,Fe.IsString)(),Ct("design:type",String)],od.prototype,"senderAddress",void 0);Pt([(0,Fe.IsNotEmpty)(),(0,Fe.IsString)(),Ct("design:type",String)],od.prototype,"input",void 0);var G5=class{executionId;limits;econParams;workers;input;constructor(t,r,n,a,i){this.executionId=t,this.limits=r,this.econParams=n,this.workers=a,this.input=i}};Pt([(0,Fe.IsUUID)(),(0,Fe.IsNotEmpty)(),Ct("design:type",String)],G5.prototype,"executionId",void 0);Pt([(0,Fe.ValidateNested)(),(0,ui.Type)(()=>po),Ct("design:type",po)],G5.prototype,"limits",void 0);Pt([(0,Fe.ValidateNested)(),(0,ui.Type)(()=>mo),Ct("design:type",mo)],G5.prototype,"econParams",void 0);Pt([(0,Fe.ValidateNested)(),(0,ui.Type)(()=>r0),Ct("design:type",r0)],G5.prototype,"workers",void 0);var Wle=class extends yo{message;constructor(t,r,n,a,i,s){super(eu.NODE_OUTCOME,t,r,n,a,i,s),this.message=n,this.executionId=t,this.msgHash=r,this.signature=a,this.timestamp=s,this.sequencerAddress=i,this.message=n}};Pt([(0,Fe.ValidateNested)(),(0,ui.Type)(()=>ad),Ct("design:type",ad)],Wle.prototype,"message",void 0);var Gle=class extends yo{message;constructor(t,r,n,a,i,s){super(eu.API_OUTCOME,t,r,n,a,i,s),this.message=n,this.executionId=t,this.msgHash=r,this.signature=a,this.timestamp=s,this.sequencerAddress=i}};Pt([(0,Fe.ValidateNested)(),(0,ui.Type)(()=>id),Ct("design:type",id)],Gle.prototype,"message",void 0);var Op=class{type;executionId;transcriptHash;status;signature;signerAddress;timestamp;constructor(t,r,n,a,i,s){this.type=eu.EXECUTION_COMPLETED,this.executionId=t,this.transcriptHash=r,this.status=n,this.signature=a,this.signerAddress=i,this.timestamp=s}};Pt([(0,Fe.IsNotEmpty)(),(0,Fe.IsString)(),Ct("design:type",String)],Op.prototype,"type",void 0);Pt([(0,Fe.IsUUID)(),(0,Fe.IsNotEmpty)(),Ct("design:type",String)],Op.prototype,"executionId",void 0);Pt([(0,Fe.IsNotEmpty)(),(0,Fe.IsHash)("sha256"),Ct("design:type",String)],Op.prototype,"transcriptHash",void 0);Pt([(0,Fe.IsNotEmpty)(),(0,Fe.IsEnum)(B7),Ct("design:type",String)],Op.prototype,"status",void 0);Pt([(0,Fe.ValidateNested)(),(0,ui.Type)(()=>Ar),Ct("design:type",Ar)],Op.prototype,"signature",void 0);Pt([(0,Fe.IsNotEmpty)(),(0,Fe.IsString)(),Ct("design:type",String)],Op.prototype,"signerAddress",void 0);Pt([rd(),(0,Fe.IsNotEmpty)(),Ct("design:type",Number)],Op.prototype,"timestamp",void 0);var tu=class{type;executionId;status;signature;senderAddress;timestamp;output;metering;error;constructor(t,r,n,a,i,s,o,l){this.type=eu.ADJUDICATION_OUTCOME,this.executionId=t,this.status=r,this.signature=n,this.senderAddress=a,this.output=s,this.metering=o,this.timestamp=i,this.error=l}};Pt([(0,Fe.IsNotEmpty)(),(0,Fe.IsString)(),Ct("design:type",String)],tu.prototype,"type",void 0);Pt([(0,Fe.IsUUID)(),(0,Fe.IsNotEmpty)(),Ct("design:type",String)],tu.prototype,"executionId",void 0);Pt([(0,Fe.IsNotEmpty)(),(0,Fe.IsEnum)(B7),Ct("design:type",String)],tu.prototype,"status",void 0);Pt([(0,Fe.ValidateNested)(),(0,ui.Type)(()=>Ar),Ct("design:type",Ar)],tu.prototype,"signature",void 0);Pt([(0,Fe.IsNotEmpty)(),(0,Fe.IsString)(),Ct("design:type",String)],tu.prototype,"senderAddress",void 0);Pt([rd(),(0,Fe.IsNotEmpty)(),Ct("design:type",Number)],tu.prototype,"timestamp",void 0);Pt([(0,Fe.IsOptional)(),(0,Fe.IsString)(),Ct("design:type",String)],tu.prototype,"output",void 0);Pt([(0,Fe.IsOptional)(),(0,Fe.ValidateNested)(),(0,ui.Type)(()=>Xl),Ct("design:type",Xl)],tu.prototype,"metering",void 0);Pt([(0,Fe.IsOptional)(),(0,Fe.IsString)(),Ct("design:type",String)],tu.prototype,"error",void 0);var r6=class{type;executionId;signature;clearTextSolutions;sequencerAddress;msgHash;timestamp;constructor(t,r,n,a,i,s){this.type=eu.SOLUTIONS_REVEALED,this.executionId=t,this.signature=r,this.clearTextSolutions=n,this.sequencerAddress=a,this.msgHash=i,this.timestamp=s}};Pt([(0,Fe.IsUUID)(),(0,Fe.IsNotEmpty)(),Ct("design:type",String)],r6.prototype,"executionId",void 0);Pt([(0,Fe.ValidateNested)(),(0,ui.Type)(()=>Ar),Ct("design:type",Ar)],r6.prototype,"signature",void 0);Pt([(0,Fe.ValidateNested)({each:!0}),(0,ui.Type)(()=>H5),Ct("design:type",Array)],r6.prototype,"clearTextSolutions",void 0);Pt([(0,Fe.IsNotEmpty)(),(0,Fe.IsEthereumAddress)(),Ct("design:type",String)],r6.prototype,"sequencerAddress",void 0);Pt([(0,Fe.IsNotEmpty)(),(0,Fe.IsHash)("sha256"),Ct("design:type",String)],r6.prototype,"msgHash",void 0);Pt([rd(),(0,Fe.IsNotEmpty)(),Ct("design:type",Number)],r6.prototype,"timestamp",void 0);var Rp=class extends yo{executionId;msgHash;message;signature;publicKey;sequencerAddress;timestamp;constructor(t,r,n,a,i,s,o){super(eu.TASK_CREATED,t,r,n,a,s,o),this.message=n,this.executionId=t,this.msgHash=r,this.signature=a,this.timestamp=o,this.sequencerAddress=s,this.publicKey=i,this.message=n}};Pt([(0,Fe.IsNotEmpty)(),(0,Fe.IsUUID)(),Ct("design:type",String)],Rp.prototype,"executionId",void 0);Pt([(0,Fe.IsNotEmpty)(),(0,Fe.IsHash)("sha256"),Ct("design:type",String)],Rp.prototype,"msgHash",void 0);Pt([(0,Fe.ValidateNested)(),(0,ui.Type)(()=>gn),Ct("design:type",gn)],Rp.prototype,"message",void 0);Pt([(0,Fe.ValidateNested)(),(0,ui.Type)(()=>Ar),Ct("design:type",Ar)],Rp.prototype,"signature",void 0);Pt([(0,Fe.IsNotEmpty)(),(0,Fe.IsString)(),Ct("design:type",String)],Rp.prototype,"publicKey",void 0);Pt([(0,Fe.IsNotEmpty)(),(0,Fe.IsEthereumAddress)(),Ct("design:type",String)],Rp.prototype,"sequencerAddress",void 0);Pt([rd(),(0,Fe.IsNotEmpty)(),Ct("design:type",Number)],Rp.prototype,"timestamp",void 0);var Pp=class extends yo{executionId;msgHash;message;signature;publicKey;sequencerAddress;timestamp;constructor(t,r,n,a,i,s,o){super(eu.API_TASK_CREATED,t,r,n,a,s,o),this.message=n,this.executionId=t,this.msgHash=r,this.signature=a,this.timestamp=o,this.sequencerAddress=s,this.publicKey=i,this.message=n}};Pt([(0,Fe.IsNotEmpty)(),(0,Fe.IsUUID)(),Ct("design:type",String)],Pp.prototype,"executionId",void 0);Pt([(0,Fe.IsNotEmpty)(),(0,Fe.IsHash)("sha256"),Ct("design:type",String)],Pp.prototype,"msgHash",void 0);Pt([(0,Fe.ValidateNested)(),(0,ui.Type)(()=>qa),Ct("design:type",qa)],Pp.prototype,"message",void 0);Pt([(0,Fe.ValidateNested)(),(0,ui.Type)(()=>Ar),Ct("design:type",Ar)],Pp.prototype,"signature",void 0);Pt([(0,Fe.IsNotEmpty)(),(0,Fe.IsString)(),Ct("design:type",String)],Pp.prototype,"publicKey",void 0);Pt([(0,Fe.IsNotEmpty)(),(0,Fe.IsEthereumAddress)(),Ct("design:type",String)],Pp.prototype,"sequencerAddress",void 0);Pt([rd(),(0,Fe.IsNotEmpty)(),Ct("design:type",Number)],Pp.prototype,"timestamp",void 0);var I7a=Gt(Ap(),1);var n0=Gt(js(),1),Kle=Gt(Ip(),1),OE=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},RE=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},uh=class{executionId;msgHash;signature;senderAddress;encryptedSolution;constructor(t,r,n,a,i){this.executionId=t,this.msgHash=r,this.signature=n,this.senderAddress=a,this.encryptedSolution=i}};OE([(0,n0.IsUUID)(),(0,n0.IsNotEmpty)(),RE("design:type",String)],uh.prototype,"executionId",void 0);OE([(0,n0.IsNotEmpty)(),(0,n0.IsHash)("sha256"),RE("design:type",String)],uh.prototype,"msgHash",void 0);OE([(0,n0.ValidateNested)(),(0,Kle.Type)(()=>Ar),RE("design:type",Ar)],uh.prototype,"signature",void 0);OE([(0,n0.IsNotEmpty)(),(0,n0.IsEthereumAddress)(),RE("design:type",String)],uh.prototype,"senderAddress",void 0);OE([(0,n0.ValidateNested)(),(0,Kle.Type)(()=>$0),RE("design:type",$0)],uh.prototype,"encryptedSolution",void 0);var it=Gt(js(),1);var qr=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Ir=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},Yle=class{taskId;constructor(t){this.taskId=t}};qr([(0,it.IsNotEmpty)(),(0,it.IsString)(),Ir("design:type",String)],Yle.prototype,"taskId",void 0);var Jle=class{taskId;constructor(t){this.taskId=t}};qr([(0,it.IsNotEmpty)(),(0,it.IsString)(),Ir("design:type",String)],Jle.prototype,"taskId",void 0);var PE=class{input;checkpoint;taskId;constructor(t,r,n){this.taskId=t,this.checkpoint=r,this.input=n}};qr([(0,it.IsNotEmpty)(),(0,it.IsString)(),Ir("design:type",String)],PE.prototype,"input",void 0);qr([(0,it.IsNotEmpty)(),Ir("design:type",Object)],PE.prototype,"checkpoint",void 0);qr([(0,it.IsNotEmpty)(),(0,it.IsString)(),Ir("design:type",String)],PE.prototype,"taskId",void 0);var uP=class{input;taskId;constructor(t,r){this.taskId=t,this.input=r}};qr([(0,it.IsNotEmpty)(),(0,it.IsString)(),Ir("design:type",String)],uP.prototype,"input",void 0);qr([(0,it.IsNotEmpty)(),(0,it.IsString)(),Ir("design:type",String)],uP.prototype,"taskId",void 0);var CE=class{executionId;input;taskId;constructor(t,r,n){this.taskId=t,this.executionId=r,this.input=n}};qr([(0,it.IsNotEmpty)(),(0,it.IsUUID)(),Ir("design:type",String)],CE.prototype,"executionId",void 0);qr([(0,it.IsNotEmpty)(),(0,it.IsString)(),Ir("design:type",String)],CE.prototype,"input",void 0);qr([(0,it.IsNotEmpty)(),(0,it.IsString)(),Ir("design:type",String)],CE.prototype,"taskId",void 0);var dP=class{instrumentationId;taskId;constructor(t,r){this.taskId=t,this.instrumentationId=r}};qr([(0,it.IsNotEmpty)(),(0,it.IsUUID)(),Ir("design:type",String)],dP.prototype,"instrumentationId",void 0);qr([(0,it.IsNotEmpty)(),(0,it.IsString)(),Ir("design:type",String)],dP.prototype,"taskId",void 0);var Zle=class{taskId;constructor(t){this.taskId=t}};qr([(0,it.IsNotEmpty)(),(0,it.IsString)(),Ir("design:type",String)],Zle.prototype,"taskId",void 0);var Xle=class{taskId;constructor(t){this.taskId=t}};qr([(0,it.IsNotEmpty)(),(0,it.IsString)(),Ir("design:type",String)],Xle.prototype,"taskId",void 0);var Qle=class{taskId;constructor(t){this.taskId=t}};qr([(0,it.IsNotEmpty)(),(0,it.IsString)(),Ir("design:type",String)],Qle.prototype,"taskId",void 0);var cP=class{checkpointHash;taskId;constructor(t,r){this.taskId=t,this.checkpointHash=r}};qr([(0,it.IsNotEmpty)(),(0,it.IsString)(),Ir("design:type",String)],cP.prototype,"checkpointHash",void 0);qr([(0,it.IsNotEmpty)(),(0,it.IsString)(),Ir("design:type",String)],cP.prototype,"taskId",void 0);var eue=class{taskId;constructor(t){this.taskId=t}};qr([(0,it.IsNotEmpty)(),(0,it.IsString)(),Ir("design:type",String)],eue.prototype,"taskId",void 0);var pP=class{checkpointCount;taskId;constructor(t,r){this.taskId=t,this.checkpointCount=r}};qr([(0,it.IsNotEmpty)(),(0,it.IsNumber)(),Ir("design:type",Number)],pP.prototype,"checkpointCount",void 0);qr([(0,it.IsNotEmpty)(),(0,it.IsString)(),Ir("design:type",String)],pP.prototype,"taskId",void 0);var tue=class{taskId;constructor(t,r){this.taskId=r}};qr([(0,it.IsNotEmpty)(),(0,it.IsString)(),Ir("design:type",String)],tue.prototype,"taskId",void 0);var ME=class{executionId;output;taskId;constructor(t,r,n){this.taskId=t,this.executionId=r,this.output=n}};qr([(0,it.IsNotEmpty)(),(0,it.IsUUID)(),Ir("design:type",String)],ME.prototype,"executionId",void 0);qr([(0,it.IsOptional)(),(0,it.IsString)(),Ir("design:type",String)],ME.prototype,"output",void 0);qr([(0,it.IsNotEmpty)(),(0,it.IsString)(),Ir("design:type",String)],ME.prototype,"taskId",void 0);var mP=class{executionId;taskId;constructor(t,r,n){this.taskId=r,this.executionId=n}};qr([(0,it.IsNotEmpty)(),(0,it.IsUUID)(),Ir("design:type",String)],mP.prototype,"executionId",void 0);qr([(0,it.IsNotEmpty)(),(0,it.IsString)(),Ir("design:type",String)],mP.prototype,"taskId",void 0);var K5=class{instrumentationId;output;taskId;instrumentedTaskId;constructor(t,r,n,a){this.taskId=t,this.instrumentationId=r,this.output=a,this.instrumentedTaskId=n}};qr([(0,it.IsNotEmpty)(),(0,it.IsUUID)(),Ir("design:type",String)],K5.prototype,"instrumentationId",void 0);qr([(0,it.IsNotEmpty)(),(0,it.IsString)(),Ir("design:type",String)],K5.prototype,"output",void 0);qr([(0,it.IsNotEmpty)(),(0,it.IsString)(),Ir("design:type",String)],K5.prototype,"taskId",void 0);qr([(0,it.IsNotEmpty)(),(0,it.IsString)(),Ir("design:type",String)],K5.prototype,"instrumentedTaskId",void 0);var hP=class{instrumentationId;taskId;constructor(t,r,n){this.taskId=r,this.instrumentationId=n}};qr([(0,it.IsNotEmpty)(),(0,it.IsUUID)(),Ir("design:type",String)],hP.prototype,"instrumentationId",void 0);qr([(0,it.IsNotEmpty)(),(0,it.IsString)(),Ir("design:type",String)],hP.prototype,"taskId",void 0);import K7a from"axios";import z7a from"axios";Fc();var vKe;(function(e){e.ACTIVE="active",e.INACTIVE="inactive"})(vKe||(vKe={}));var bo;(function(e){e.LOCAL="local",e.LOCAL_DOCKER="local-docker",e.TESTNET="testnet",e.STAGING="staging",e.PRODUCTION="production"})(bo||(bo={}));var Tt;(function(e){e.AVAX="avax",e.ETH="eth"})(Tt||(Tt={}));var Y5=class{static create(t,r,n,a,i){switch(r){case nd.EVM:switch(a){case Tt.ETH:return new kE(t,n,i);case Tt.AVAX:return new NE(t,n,i);default:throw new Error(`Unsupported blockchain name: ${a}`)}default:throw new Error(`Unsupported blockchain: ${r}`)}}};var dh=class{serviceLogger;env;pk;constructor(t,r,n){this.serviceLogger=t,this.env=r,this.pk=n}};var rue={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:2,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",implementation:"0x3B1433CcCE7a569A8D93a03387392927fE386ac8",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 nue={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:2,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",implementation:"0x005c9eb77441aF255795ebD55FceBa513A5Ae4F6",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 aue={address:"0x67AF2F01D7cb9A52af289b2702772576bd155310",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:"AccessControlBadConfirmation",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"bytes32",name:"neededRole",type:"bytes32"}],name:"AccessControlUnauthorizedAccount",type:"error"},{inputs:[],name:"CallerNotAuthorizedToDeregister",type:"error"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"},{internalType:"uint256",name:"length",type:"uint256"}],name:"InvalidArrayIndex",type:"error"},{inputs:[],name:"InvalidInitialization",type:"error"},{inputs:[],name:"InvalidStakingContractAddress",type:"error"},{inputs:[],name:"InvalidWatchTowerAddress",type:"error"},{inputs:[],name:"NoRegistrationsAvailable",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"NodeAlreadyRegistered",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"NodeNotRegistered",type:"error"},{inputs:[],name:"NotInitializing",type:"error"},{inputs:[],name:"OnlyWatchTowerCanCallback",type:"error"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"OwnableInvalidOwner",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"OwnableUnauthorizedAccount",type:"error"},{inputs:[],name:"ReentrancyGuardReentrantCall",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint64",name:"version",type:"uint64"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!1,internalType:"string",name:"executionId",type:"string"}],name:"NodeDeregistered",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!0,internalType:"uint256",name:"index",type:"uint256"}],name:"NodeRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!0,internalType:"uint256",name:"nodeId",type:"uint256"},{indexed:!1,internalType:"bool",name:"hasStake",type:"bool"}],name:"NodeRegistrationCompleted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!0,internalType:"uint256",name:"wtExecutionId",type:"uint256"},{indexed:!1,internalType:"bool",name:"hasStake",type:"bool"},{indexed:!1,internalType:"string[]",name:"transcripts",type:"string[]"},{indexed:!1,internalType:"string",name:"callbackMessageDetails",type:"string"}],name:"NodeRegistrationRejected",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!1,internalType:"uint256",name:"oldWTExecutionId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newWTExecutionId",type:"uint256"}],name:"NodeRegistrationReplaced",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!0,internalType:"uint256",name:"wtExecutionId",type:"uint256"}],name:"NodeRegistrationRequested",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"wtExecutionId",type:"uint256"},{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!1,internalType:"string",name:"callbackMessageDetails",type:"string"}],name:"NodeRegistrationStaled",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:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldAddress",type:"address"},{indexed:!0,internalType:"address",name:"newAddress",type:"address"}],name:"StakingContractChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"newThreshold",type:"uint256"}],name:"ThresholdModified",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldAddress",type:"address"},{indexed:!0,internalType:"address",name:"newAddress",type:"address"}],name:"WatchTowerAddressChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldWatchTower",type:"address"},{indexed:!0,internalType:"address",name:"newWatchTower",type:"address"}],name:"WatchTowerUpdated",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"WATCHTOWER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"result",type:"bytes"},{internalType:"string[]",name:"transcripts",type:"string[]"},{internalType:"uint256",name:"wtExecutionId",type:"uint256"},{internalType:"uint8",name:"status",type:"uint8"},{internalType:"string",name:"_callbackMessageDetails",type:"string"}],name:"callbackTask",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"executionId",type:"string"}],name:"deRegister",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"id",type:"address"},{internalType:"string",name:"executionId",type:"string"}],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:"blockRegistered",type:"uint256"},{internalType:"uint256",name:"timestampRegistered",type:"uint256"}],internalType:"struct INodeRegistry.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:[{internalType:"uint256",name:"wtExecutionId",type:"uint256"}],name:"getNodeRegistrationStatus",outputs:[{internalType:"bool",name:"isCallbackComplete",type:"bool"},{internalType:"bool",name:"isRegistered",type:"bool"},{internalType:"string",name:"message",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"node",type:"address"}],name:"getNodeToWTExecutionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getNodes",outputs:[{components:[{internalType:"address",name:"nodeAddress",type:"address"},{internalType:"uint256",name:"blockRegistered",type:"uint256"},{internalType:"uint256",name:"timestampRegistered",type:"uint256"}],internalType:"struct INodeRegistry.Registration[]",name:"",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"getWatchTowerAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_watchTower",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"node",type:"address"}],name:"isNodeRegistered",outputs:[{internalType:"bool",name:"",type:"bool"}],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:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"callerConfirmation",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_stakingContract",type:"address"}],name:"setStakingContract",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_watchTower",type:"address"}],name:"setWatchTower",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],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:"0x1622dae04ad2e97fd5a1e4f5d563389bef855e160af763180fd3cf60b78b89bd",receipt:{to:null,from:"0xd70C3454aaD1B7ec660a064d8b1FE5708d898d84",contractAddress:"0x67AF2F01D7cb9A52af289b2702772576bd155310",transactionIndex:7,gasUsed:"864743",logsBloom:"0x00000004000000000000000000000020400000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000800000020000000000000000002000001000000000000000000000000000000000000020000000000000000800800000000800000000000000000000000400000000800000000000880000000000000000002000081000000020000800000000001000000000000000000000000000000000000000000001080000000400000000020000000000000000000000000000000000404000100000000000020000002000000000000000000008000000000000000000000000000000000080000",blockHash:"0x47b27ed758b5dce15a44651ab220d5924d72fed2c18bfc8e1004d18893f76804",transactionHash:"0x1622dae04ad2e97fd5a1e4f5d563389bef855e160af763180fd3cf60b78b89bd",logs:[{transactionIndex:7,blockNumber:71901049,transactionHash:"0x1622dae04ad2e97fd5a1e4f5d563389bef855e160af763180fd3cf60b78b89bd",address:"0x67AF2F01D7cb9A52af289b2702772576bd155310",topics:["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x00000000000000000000000089d44a25f35d14cc3ad317277348980f9991561b"],data:"0x",logIndex:17,blockHash:"0x47b27ed758b5dce15a44651ab220d5924d72fed2c18bfc8e1004d18893f76804"},{transactionIndex:7,blockNumber:71901049,transactionHash:"0x1622dae04ad2e97fd5a1e4f5d563389bef855e160af763180fd3cf60b78b89bd",address:"0x67AF2F01D7cb9A52af289b2702772576bd155310",topics:["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x000000000000000000000000d70c3454aad1b7ec660a064d8b1fe5708d898d84"],data:"0x",logIndex:18,blockHash:"0x47b27ed758b5dce15a44651ab220d5924d72fed2c18bfc8e1004d18893f76804"},{transactionIndex:7,blockNumber:71901049,transactionHash:"0x1622dae04ad2e97fd5a1e4f5d563389bef855e160af763180fd3cf60b78b89bd",address:"0x67AF2F01D7cb9A52af289b2702772576bd155310",topics:["0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d","0x0000000000000000000000000000000000000000000000000000000000000000","0x000000000000000000000000d70c3454aad1b7ec660a064d8b1fe5708d898d84","0x000000000000000000000000d70c3454aad1b7ec660a064d8b1fe5708d898d84"],data:"0x",logIndex:19,blockHash:"0x47b27ed758b5dce15a44651ab220d5924d72fed2c18bfc8e1004d18893f76804"},{transactionIndex:7,blockNumber:71901049,transactionHash:"0x1622dae04ad2e97fd5a1e4f5d563389bef855e160af763180fd3cf60b78b89bd",address:"0x67AF2F01D7cb9A52af289b2702772576bd155310",topics:["0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d","0x112b543827e39baa999aa686bf791fe2f6502a00cd4342e25f8c36b543f90f14","0x000000000000000000000000ead039ca35b9c6592b638c0c4e2b7f42f078b754","0x000000000000000000000000d70c3454aad1b7ec660a064d8b1fe5708d898d84"],data:"0x",logIndex:20,blockHash:"0x47b27ed758b5dce15a44651ab220d5924d72fed2c18bfc8e1004d18893f76804"},{transactionIndex:7,blockNumber:71901049,transactionHash:"0x1622dae04ad2e97fd5a1e4f5d563389bef855e160af763180fd3cf60b78b89bd",address:"0x67AF2F01D7cb9A52af289b2702772576bd155310",topics:["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"],data:"0x0000000000000000000000000000000000000000000000000000000000000001",logIndex:21,blockHash:"0x47b27ed758b5dce15a44651ab220d5924d72fed2c18bfc8e1004d18893f76804"},{transactionIndex:7,blockNumber:71901049,transactionHash:"0x1622dae04ad2e97fd5a1e4f5d563389bef855e160af763180fd3cf60b78b89bd",address:"0x67AF2F01D7cb9A52af289b2702772576bd155310",topics:["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],data:"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b8a703c0865645277636f2286f0d2db5f51e418",logIndex:22,blockHash:"0x47b27ed758b5dce15a44651ab220d5924d72fed2c18bfc8e1004d18893f76804"}],blockNumber:71901049,cumulativeGasUsed:"1592009",status:1,byzantium:!0},args:["0x89D44A25f35D14cc3ad317277348980f9991561b","0x1B8a703c0865645277636f2286f0d2Db5f51E418","0xc4d66de8000000000000000000000000ead039ca35b9c6592b638c0c4e2b7f42f078b754"],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:["0xEAd039cA35B9c6592B638C0C4E2b7f42F078B754"]},implementation:"0x89D44A25f35D14cc3ad317277348980f9991561b",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 iue={address:"0x94D2e9CC66Ac140bC5C2DE552DdFbd32f80eEe86",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:"AccessControlBadConfirmation",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"bytes32",name:"neededRole",type:"bytes32"}],name:"AccessControlUnauthorizedAccount",type:"error"},{inputs:[{internalType:"uint256",name:"required",type:"uint256"},{internalType:"uint256",name:"available",type:"uint256"}],name:"InsufficientContractBalance",type:"error"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"InvalidAmount",type:"error"},{inputs:[{internalType:"uint256",name:"executionId",type:"uint256"}],name:"InvalidExecutionId",type:"error"},{inputs:[],name:"InvalidInitialization",type:"error"},{inputs:[],name:"InvalidNodeAddress",type:"error"},{inputs:[],name:"InvalidNodeRegistryAddress",type:"error"},{inputs:[],name:"InvalidSlashingWallet",type:"error"},{inputs:[],name:"InvalidStakerAddress",type:"error"},{inputs:[],name:"InvalidTokenAddress",type:"error"},{inputs:[],name:"InvalidWatchTowerAddress",type:"error"},{inputs:[],name:"InvalidWithdrawalDelay",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"NoActiveUnstakeRequest",type:"error"},{inputs:[],name:"NoSlashedTokensAvailable",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"NoStakeExists",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"NoStakeToSlash",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"NoTokensToUnstake",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"NoWithdrawalInProgress",type:"error"},{inputs:[{internalType:"address",name:"currentRegistry",type:"address"}],name:"NodeRegistryAlreadySet",type:"error"},{inputs:[],name:"NotInitializing",type:"error"},{inputs:[{internalType:"address",name:"staker",type:"address"},{internalType:"address",name:"caller",type:"address"}],name:"OnlyStakerCanCancel",type:"error"},{inputs:[{internalType:"address",name:"staker",type:"address"},{internalType:"address",name:"caller",type:"address"}],name:"OnlyStakerCanUnstake",type:"error"},{inputs:[],name:"ReentrancyGuardReentrantCall",type:"error"},{inputs:[],name:"SlashingWalletNotSet",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"StakeAlreadyExists",type:"error"},{inputs:[],name:"TokenTransferFailed",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"UnstakeAlreadyInProgress",type:"error"},{inputs:[],name:"WatchTowerNotSet",type:"error"},{inputs:[{internalType:"uint64",name:"withdrawalTime",type:"uint64"},{internalType:"uint256",name:"currentTime",type:"uint256"}],name:"WithdrawalPeriodNotElapsed",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint64",name:"version",type:"uint64"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldNodeRegistry",type:"address"},{indexed:!0,internalType:"address",name:"newNodeRegistry",type:"address"}],name:"NodeRegistryUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Slashed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"string",name:"executionId",type:"string"}],name:"Slashed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"SlashedCollected",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"oldAmount",type:"uint256"},{indexed:!0,internalType:"uint256",name:"newAmount",type:"uint256"}],name:"SlashingAmountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldWallet",type:"address"},{indexed:!0,internalType:"address",name:"newWallet",type:"address"}],name:"SlashingWalletUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!0,internalType:"address",name:"staker",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"timestamp",type:"uint256"}],name:"Staked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"oldAmount",type:"uint256"},{indexed:!0,internalType:"uint256",name:"newAmount",type:"uint256"}],name:"StakingAmountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldWatchTower",type:"address"},{indexed:!0,internalType:"address",name:"newWatchTower",type:"address"}],name:"WatchTowerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!1,internalType:"string",name:"reason",type:"string"},{indexed:!1,internalType:"uint256",name:"cancelledAmount",type:"uint256"}],name:"WithdrawalCancelled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!0,internalType:"address",name:"originalStaker",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"WithdrawalCompleted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"oldDelay",type:"uint256"},{indexed:!0,internalType:"uint256",name:"newDelay",type:"uint256"}],name:"WithdrawalDelayUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!0,internalType:"address",name:"staker",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"withdrawalTime",type:"uint256"}],name:"WithdrawalInitiated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!0,internalType:"address",name:"staker",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Withdrawn",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"SLASHER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"WATCHTOWER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"result",type:"bytes"},{internalType:"string[]",name:"",type:"string[]"},{internalType:"uint256",name:"wtExecutionId",type:"uint256"},{internalType:"uint8",name:"status",type:"uint8"},{internalType:"string",name:"",type:"string"}],name:"callbackTask",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"cancelWithdrawal",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"collectSlashedTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"completeWithdrawal",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"existsStake",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"getEffectiveStakeForRegistration",outputs:[{internalType:"uint256",name:"stakeAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"getSlashableAmountToCollect",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"getStake",outputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint256",name:"timestamp",type:"uint256"},{internalType:"address",name:"staker",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"getStakeAmount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"getStaker",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getStakingParameters",outputs:[{internalType:"uint256",name:"stakeAmount",type:"uint256"},{internalType:"uint256",name:"slashAmount",type:"uint256"},{internalType:"uint256",name:"withdrawalDelay",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"getUnstakeWithdrawalTime",outputs:[{internalType:"uint64",name:"withdrawalTime",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"grantSlasherRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"address",name:"_watchTower",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"isMyWithdrawalReady",outputs:[{internalType:"bool",name:"ready",type:"bool"},{internalType:"uint256",name:"timeRemaining",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"isUnstakeWithdrawalReady",outputs:[{internalType:"bool",name:"ready",type:"bool"},{internalType:"uint256",name:"timeRemaining",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"isWithdrawalInProgress",outputs:[{internalType:"bool",name:"inProgress",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"callerConfirmation",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_nodeRegistry",type:"address"}],name:"setNodeRegistry",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"}],name:"setSlashingAmount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_wallet",type:"address"}],name:"setSlashingWallet",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"}],name:"setStakingAmount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_watchTower",type:"address"}],name:"setWatchTower",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_withdrawalDelay",type:"uint256"}],name:"setWithdrawalDelay",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"},{internalType:"string",name:"executionId",type:"string"}],name:"slash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"slashingWallet",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"stake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"stake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"token",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalStaked",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"unstakeByAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"node",type:"address"}],name:"unstakeFor",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"watchTower",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",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:"0x7db87b8c61b543a3e3b3f5dfe40741d7d2266194d9c4c08b0ba414e1d6948cb6",receipt:{to:null,from:"0xd70C3454aaD1B7ec660a064d8b1FE5708d898d84",contractAddress:"0x94D2e9CC66Ac140bC5C2DE552DdFbd32f80eEe86",transactionIndex:55,gasUsed:"976743",logsBloom:"0x000000040000000000000000100000004000000000000000000100000080000000000000000000080000000000000000000000000000004000000000000000000000000000000000000000000000024000000000000000000200000000000000000000000200010000000000000008000000008000000000000000000000000000000000000000000008000000000000000000000000800000000200008000000000010000000000000000000000000000002000000000000010000000004800000000200000000000000000000000000000000004040001000000200000a0000002000000000000000000008000000000000000000000000000000000080000",blockHash:"0x8b7329ab1ebb52c93fc5b24eaaf5db642e6f7bf6aa1af6f551cfa3c355b5b2b6",transactionHash:"0x7db87b8c61b543a3e3b3f5dfe40741d7d2266194d9c4c08b0ba414e1d6948cb6",logs:[{transactionIndex:55,blockNumber:23790957,transactionHash:"0x7db87b8c61b543a3e3b3f5dfe40741d7d2266194d9c4c08b0ba414e1d6948cb6",address:"0x94D2e9CC66Ac140bC5C2DE552DdFbd32f80eEe86",topics:["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000c1fc4fd47507b083835766a87de0b96f1fb40192"],data:"0x",logIndex:376,blockHash:"0x8b7329ab1ebb52c93fc5b24eaaf5db642e6f7bf6aa1af6f551cfa3c355b5b2b6"},{transactionIndex:55,blockNumber:23790957,transactionHash:"0x7db87b8c61b543a3e3b3f5dfe40741d7d2266194d9c4c08b0ba414e1d6948cb6",address:"0x94D2e9CC66Ac140bC5C2DE552DdFbd32f80eEe86",topics:["0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d","0x0000000000000000000000000000000000000000000000000000000000000000","0x000000000000000000000000d70c3454aad1b7ec660a064d8b1fe5708d898d84","0x000000000000000000000000d70c3454aad1b7ec660a064d8b1fe5708d898d84"],data:"0x",logIndex:377,blockHash:"0x8b7329ab1ebb52c93fc5b24eaaf5db642e6f7bf6aa1af6f551cfa3c355b5b2b6"},{transactionIndex:55,blockNumber:23790957,transactionHash:"0x7db87b8c61b543a3e3b3f5dfe40741d7d2266194d9c4c08b0ba414e1d6948cb6",address:"0x94D2e9CC66Ac140bC5C2DE552DdFbd32f80eEe86",topics:["0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d","0x112b543827e39baa999aa686bf791fe2f6502a00cd4342e25f8c36b543f90f14","0x00000000000000000000000048c101d60f6f8a9589fa74e10da62460219b53e6","0x000000000000000000000000d70c3454aad1b7ec660a064d8b1fe5708d898d84"],data:"0x",logIndex:378,blockHash:"0x8b7329ab1ebb52c93fc5b24eaaf5db642e6f7bf6aa1af6f551cfa3c355b5b2b6"},{transactionIndex:55,blockNumber:23790957,transactionHash:"0x7db87b8c61b543a3e3b3f5dfe40741d7d2266194d9c4c08b0ba414e1d6948cb6",address:"0x94D2e9CC66Ac140bC5C2DE552DdFbd32f80eEe86",topics:["0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d","0x12b42e8a160f6064dc959c6f251e3af0750ad213dbecf573b4710d67d6c28e39","0x000000000000000000000000d70c3454aad1b7ec660a064d8b1fe5708d898d84","0x000000000000000000000000d70c3454aad1b7ec660a064d8b1fe5708d898d84"],data:"0x",logIndex:379,blockHash:"0x8b7329ab1ebb52c93fc5b24eaaf5db642e6f7bf6aa1af6f551cfa3c355b5b2b6"},{transactionIndex:55,blockNumber:23790957,transactionHash:"0x7db87b8c61b543a3e3b3f5dfe40741d7d2266194d9c4c08b0ba414e1d6948cb6",address:"0x94D2e9CC66Ac140bC5C2DE552DdFbd32f80eEe86",topics:["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"],data:"0x0000000000000000000000000000000000000000000000000000000000000001",logIndex:380,blockHash:"0x8b7329ab1ebb52c93fc5b24eaaf5db642e6f7bf6aa1af6f551cfa3c355b5b2b6"},{transactionIndex:55,blockNumber:23790957,transactionHash:"0x7db87b8c61b543a3e3b3f5dfe40741d7d2266194d9c4c08b0ba414e1d6948cb6",address:"0x94D2e9CC66Ac140bC5C2DE552DdFbd32f80eEe86",topics:["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],data:"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090b0f7da1f352b62c1575871fbec29a903c6d5c6",logIndex:381,blockHash:"0x8b7329ab1ebb52c93fc5b24eaaf5db642e6f7bf6aa1af6f551cfa3c355b5b2b6"}],blockNumber:23790957,cumulativeGasUsed:"12239811",status:1,byzantium:!0},args:["0xC1fc4fD47507B083835766a87de0b96f1Fb40192","0x90B0f7Da1f352B62C1575871Fbec29A903C6d5c6","0x485cc955000000000000000000000000f65b5c5104c4fafd4b709d9d60a185eae063276c00000000000000000000000048c101d60f6f8a9589fa74e10da62460219b53e6"],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:["0xf65b5c5104c4fafd4b709d9d60a185eae063276c","0x48C101d60F6f8a9589fa74e10da62460219B53e6"]},implementation:"0xC1fc4fD47507B083835766a87de0b96f1Fb40192",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 DE={address:"0x2279B7A0a67DB372996a5FaB50D91eAA73d2eBe6",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:"0xa64054924e276b527e8a1899bc2046f1309879d6c5c5615d2a2aa3b594a13afc",receipt:{to:null,from:"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",contractAddress:"0x2279B7A0a67DB372996a5FaB50D91eAA73d2eBe6",transactionIndex:0,gasUsed:"842873",logsBloom:"0x000000000000000000000000004000004000000000000000008000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000020000010000000000000000000000000000000000000200000000000001000008000000008000000000000000000000004000000000000000000008000000000000000000000000c0000000000000800000000000000000000000000000000040000000000000000000000000000000008000000020000000200000000000000000000000002404000000000000000020000000000000000000000000000800000000000000000000000000000000000000",blockHash:"0x8db9cb389c4e7a0e00206ed75999198a497434d8dd6316e8988c6299a35d3325",transactionHash:"0xa64054924e276b527e8a1899bc2046f1309879d6c5c5615d2a2aa3b594a13afc",logs:[{transactionIndex:0,blockNumber:9,transactionHash:"0xa64054924e276b527e8a1899bc2046f1309879d6c5c5615d2a2aa3b594a13afc",address:"0x2279B7A0a67DB372996a5FaB50D91eAA73d2eBe6",topics:["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000a513e6e4b8f2a923d98304ec87f64353c4d5c853"],data:"0x",logIndex:0,blockHash:"0x8db9cb389c4e7a0e00206ed75999198a497434d8dd6316e8988c6299a35d3325"},{transactionIndex:0,blockNumber:9,transactionHash:"0xa64054924e276b527e8a1899bc2046f1309879d6c5c5615d2a2aa3b594a13afc",address:"0x2279B7A0a67DB372996a5FaB50D91eAA73d2eBe6",topics:["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266"],data:"0x",logIndex:1,blockHash:"0x8db9cb389c4e7a0e00206ed75999198a497434d8dd6316e8988c6299a35d3325"},{transactionIndex:0,blockNumber:9,transactionHash:"0xa64054924e276b527e8a1899bc2046f1309879d6c5c5615d2a2aa3b594a13afc",address:"0x2279B7A0a67DB372996a5FaB50D91eAA73d2eBe6",topics:["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"],data:"0x0000000000000000000000000000000000000000000000000000000000000001",logIndex:2,blockHash:"0x8db9cb389c4e7a0e00206ed75999198a497434d8dd6316e8988c6299a35d3325"},{transactionIndex:0,blockNumber:9,transactionHash:"0xa64054924e276b527e8a1899bc2046f1309879d6c5c5615d2a2aa3b594a13afc",address:"0x2279B7A0a67DB372996a5FaB50D91eAA73d2eBe6",topics:["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],data:"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000005fbdb2315678afecb367f032d93f642f64180aa3",logIndex:3,blockHash:"0x8db9cb389c4e7a0e00206ed75999198a497434d8dd6316e8988c6299a35d3325"}],blockNumber:9,cumulativeGasUsed:"842873",status:1,byzantium:!0},args:["0xa513E6E4b8f2a923D98304ec87F64353C4D5C853","0x5FbDB2315678afecb367f032d93F642f64180aa3","0xc4d66de80000000000000000000000000165878a594ca255338adfa4d48449f69242eb8f"],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:["0x0165878A594ca255338adfa4d48449f69242Eb8F"]},implementation:"0xa513E6E4b8f2a923D98304ec87F64353C4D5C853",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 $E={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:"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:"0x5f0f14b65a48b0f76f86bdeed0defbad1fad0915637c7d7deff74d60b5bd21c5",receipt:{to:null,from:"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",contractAddress:"0x0165878A594ca255338adfa4d48449f69242Eb8F",transactionIndex:0,gasUsed:"820391",logsBloom:"0x00000000000000000000000000000000400000000000000000800000000000000000000000000000000000000000000040000000000000000000000000000000001000000000000000000000000002000001000000000000000000000000000000000000020000000000000100000800000000800000000000000000000000440000000000000000000800000000000000000000000080000000000000800000100000000000000000000000000000000000000000000000000000000000000000000024000000200000000000000000000000002404001000000000000020000000000000000000000000000000000000000000000000000000000000000000",blockHash:"0xaa4a9b1a60fca13589c7eba1fc90528816e62f545c83850f631966a7c94aa147",transactionHash:"0x5f0f14b65a48b0f76f86bdeed0defbad1fad0915637c7d7deff74d60b5bd21c5",logs:[{transactionIndex:0,blockNumber:7,transactionHash:"0x5f0f14b65a48b0f76f86bdeed0defbad1fad0915637c7d7deff74d60b5bd21c5",address:"0x0165878A594ca255338adfa4d48449f69242Eb8F",topics:["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x0000000000000000000000005fc8d32690cc91d4c39d9d3abcbd16989f875707"],data:"0x",logIndex:0,blockHash:"0xaa4a9b1a60fca13589c7eba1fc90528816e62f545c83850f631966a7c94aa147"},{transactionIndex:0,blockNumber:7,transactionHash:"0x5f0f14b65a48b0f76f86bdeed0defbad1fad0915637c7d7deff74d60b5bd21c5",address:"0x0165878A594ca255338adfa4d48449f69242Eb8F",topics:["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266"],data:"0x",logIndex:1,blockHash:"0xaa4a9b1a60fca13589c7eba1fc90528816e62f545c83850f631966a7c94aa147"},{transactionIndex:0,blockNumber:7,transactionHash:"0x5f0f14b65a48b0f76f86bdeed0defbad1fad0915637c7d7deff74d60b5bd21c5",address:"0x0165878A594ca255338adfa4d48449f69242Eb8F",topics:["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"],data:"0x0000000000000000000000000000000000000000000000000000000000000001",logIndex:2,blockHash:"0xaa4a9b1a60fca13589c7eba1fc90528816e62f545c83850f631966a7c94aa147"},{transactionIndex:0,blockNumber:7,transactionHash:"0x5f0f14b65a48b0f76f86bdeed0defbad1fad0915637c7d7deff74d60b5bd21c5",address:"0x0165878A594ca255338adfa4d48449f69242Eb8F",topics:["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],data:"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000005fbdb2315678afecb367f032d93f642f64180aa3",logIndex:3,blockHash:"0xaa4a9b1a60fca13589c7eba1fc90528816e62f545c83850f631966a7c94aa147"}],blockNumber:7,cumulativeGasUsed:"820391",status:1,byzantium:!0},args:["0x5FC8d32690cc91D4c39d9d3abcBD16989F875707","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:"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 LE={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:"AccessControlBadConfirmation",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"bytes32",name:"neededRole",type:"bytes32"}],name:"AccessControlUnauthorizedAccount",type:"error"},{inputs:[],name:"CallerNotAuthorizedToDeregister",type:"error"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"},{internalType:"uint256",name:"length",type:"uint256"}],name:"InvalidArrayIndex",type:"error"},{inputs:[],name:"InvalidInitialization",type:"error"},{inputs:[],name:"InvalidStakingContractAddress",type:"error"},{inputs:[],name:"InvalidWatchTowerAddress",type:"error"},{inputs:[],name:"NoRegistrationsAvailable",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"NodeAlreadyRegistered",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"NodeNotRegistered",type:"error"},{inputs:[],name:"NotInitializing",type:"error"},{inputs:[],name:"OnlyWatchTowerCanCallback",type:"error"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"OwnableInvalidOwner",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"OwnableUnauthorizedAccount",type:"error"},{inputs:[],name:"ReentrancyGuardReentrantCall",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint64",name:"version",type:"uint64"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!1,internalType:"string",name:"executionId",type:"string"}],name:"NodeDeregistered",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!0,internalType:"uint256",name:"index",type:"uint256"}],name:"NodeRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!0,internalType:"uint256",name:"nodeId",type:"uint256"},{indexed:!1,internalType:"bool",name:"hasStake",type:"bool"}],name:"NodeRegistrationCompleted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!0,internalType:"uint256",name:"wtExecutionId",type:"uint256"},{indexed:!1,internalType:"bool",name:"hasStake",type:"bool"},{indexed:!1,internalType:"string[]",name:"transcripts",type:"string[]"},{indexed:!1,internalType:"string",name:"callbackMessageDetails",type:"string"}],name:"NodeRegistrationRejected",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!1,internalType:"uint256",name:"oldWTExecutionId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newWTExecutionId",type:"uint256"}],name:"NodeRegistrationReplaced",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!0,internalType:"uint256",name:"wtExecutionId",type:"uint256"}],name:"NodeRegistrationRequested",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"wtExecutionId",type:"uint256"},{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!1,internalType:"string",name:"callbackMessageDetails",type:"string"}],name:"NodeRegistrationStaled",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:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldAddress",type:"address"},{indexed:!0,internalType:"address",name:"newAddress",type:"address"}],name:"StakingContractChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"newThreshold",type:"uint256"}],name:"ThresholdModified",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldAddress",type:"address"},{indexed:!0,internalType:"address",name:"newAddress",type:"address"}],name:"WatchTowerAddressChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldWatchTower",type:"address"},{indexed:!0,internalType:"address",name:"newWatchTower",type:"address"}],name:"WatchTowerUpdated",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"WATCHTOWER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"result",type:"bytes"},{internalType:"string[]",name:"transcripts",type:"string[]"},{internalType:"uint256",name:"wtExecutionId",type:"uint256"},{internalType:"uint8",name:"status",type:"uint8"},{internalType:"string",name:"_callbackMessageDetails",type:"string"}],name:"callbackTask",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"executionId",type:"string"}],name:"deRegister",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"id",type:"address"},{internalType:"string",name:"executionId",type:"string"}],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:"blockRegistered",type:"uint256"},{internalType:"uint256",name:"timestampRegistered",type:"uint256"}],internalType:"struct INodeRegistry.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:[{internalType:"uint256",name:"wtExecutionId",type:"uint256"}],name:"getNodeRegistrationStatus",outputs:[{internalType:"bool",name:"isCallbackComplete",type:"bool"},{internalType:"bool",name:"isRegistered",type:"bool"},{internalType:"string",name:"message",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"node",type:"address"}],name:"getNodeToWTExecutionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getNodes",outputs:[{components:[{internalType:"address",name:"nodeAddress",type:"address"},{internalType:"uint256",name:"blockRegistered",type:"uint256"},{internalType:"uint256",name:"timestampRegistered",type:"uint256"}],internalType:"struct INodeRegistry.Registration[]",name:"",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"getWatchTowerAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_watchTower",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"node",type:"address"}],name:"isNodeRegistered",outputs:[{internalType:"bool",name:"",type:"bool"}],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:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"callerConfirmation",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_stakingContract",type:"address"}],name:"setStakingContract",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_watchTower",type:"address"}],name:"setWatchTower",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],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:"0x9ec161fcfc21422f7c153efd6765b12454fd0265234f462bfc27ab5b499262d0",receipt:{to:null,from:"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",contractAddress:"0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9",transactionIndex:0,gasUsed:"864657",logsBloom:"0x00000004000000000000000000000000400000000000000000800000000000000000000000000080000400000000000000400000000000000000000000000000000000000000000000000000000002000001000000000000000000000000400000000000020000000000000100000800000000800000000000000000000000400000000000000000000800000000000000000000000080000000000000800000000001001000000000000000000000000000000000000000001000000000000000000020000000200000000000000000000000002424000100000000000020000002000000000000008000000000000000000001000000000100000000080000",blockHash:"0xfacd0407a7543e4f94a26511d3416e33adee64fc70d5b6cff9074c859366dbf1",transactionHash:"0x9ec161fcfc21422f7c153efd6765b12454fd0265234f462bfc27ab5b499262d0",logs:[{transactionIndex:0,blockNumber:5,transactionHash:"0x9ec161fcfc21422f7c153efd6765b12454fd0265234f462bfc27ab5b499262d0",address:"0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9",topics:["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000cf7ed3acca5a467e9e704c703e8d87f634fb0fc9"],data:"0x",logIndex:0,blockHash:"0xfacd0407a7543e4f94a26511d3416e33adee64fc70d5b6cff9074c859366dbf1"},{transactionIndex:0,blockNumber:5,transactionHash:"0x9ec161fcfc21422f7c153efd6765b12454fd0265234f462bfc27ab5b499262d0",address:"0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9",topics:["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266"],data:"0x",logIndex:1,blockHash:"0xfacd0407a7543e4f94a26511d3416e33adee64fc70d5b6cff9074c859366dbf1"},{transactionIndex:0,blockNumber:5,transactionHash:"0x9ec161fcfc21422f7c153efd6765b12454fd0265234f462bfc27ab5b499262d0",address:"0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9",topics:["0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d","0x0000000000000000000000000000000000000000000000000000000000000000","0x000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266","0x000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266"],data:"0x",logIndex:2,blockHash:"0xfacd0407a7543e4f94a26511d3416e33adee64fc70d5b6cff9074c859366dbf1"},{transactionIndex:0,blockNumber:5,transactionHash:"0x9ec161fcfc21422f7c153efd6765b12454fd0265234f462bfc27ab5b499262d0",address:"0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9",topics:["0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d","0x112b543827e39baa999aa686bf791fe2f6502a00cd4342e25f8c36b543f90f14","0x0000000000000000000000009fe46736679d2d9a65f0992f2272de9f3c7fa6e0","0x000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266"],data:"0x",logIndex:3,blockHash:"0xfacd0407a7543e4f94a26511d3416e33adee64fc70d5b6cff9074c859366dbf1"},{transactionIndex:0,blockNumber:5,transactionHash:"0x9ec161fcfc21422f7c153efd6765b12454fd0265234f462bfc27ab5b499262d0",address:"0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9",topics:["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"],data:"0x0000000000000000000000000000000000000000000000000000000000000001",logIndex:4,blockHash:"0xfacd0407a7543e4f94a26511d3416e33adee64fc70d5b6cff9074c859366dbf1"},{transactionIndex:0,blockNumber:5,transactionHash:"0x9ec161fcfc21422f7c153efd6765b12454fd0265234f462bfc27ab5b499262d0",address:"0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9",topics:["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],data:"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000005fbdb2315678afecb367f032d93f642f64180aa3",logIndex:5,blockHash:"0xfacd0407a7543e4f94a26511d3416e33adee64fc70d5b6cff9074c859366dbf1"}],blockNumber:5,cumulativeGasUsed:"864657",status:1,byzantium:!0},args:["0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9","0x5FbDB2315678afecb367f032d93F642f64180aa3","0xc4d66de80000000000000000000000009fe46736679d2d9a65f0992f2272de9f3c7fa6e0"],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:["0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0"]},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 ru={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:[{internalType:"address",name:"addr",type:"address"},{internalType:"string",name:"message",type:"string"}],name:"AddressBlacklistedOrQuotaExceeded",type:"error"},{inputs:[{internalType:"address",name:"addr",type:"address"}],name:"AddressNotBlacklisted",type:"error"},{inputs:[],name:"AlreadyFulfilled",type:"error"},{inputs:[{internalType:"address",name:"listener",type:"address"}],name:"AlreadyRegisteredListener",type:"error"},{inputs:[],name:"EnforcedPause",type:"error"},{inputs:[],name:"ExpectedPause",type:"error"},{inputs:[],name:"InvalidAddress",type:"error"},{inputs:[],name:"InvalidCaller",type:"error"},{inputs:[],name:"InvalidInitialization",type:"error"},{inputs:[],name:"InvalidRequestId",type:"error"},{inputs:[],name:"NotInitializing",type:"error"},{inputs:[{internalType:"address",name:"listener",type:"address"}],name:"NotRegisteredListener",type:"error"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"OwnableInvalidOwner",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"OwnableUnauthorizedAccount",type:"error"},{inputs:[],name:"ReentrancyGuardReentrantCall",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"blacklistedAddress",type:"address"}],name:"AddressBlacklisted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"removedAddress",type:"address"}],name:"AddressRemovedFromBlacklist",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"requestId",type:"uint256"},{indexed:!0,internalType:"address",name:"requester",type:"address"},{indexed:!1,internalType:"string",name:"reason",type:"string"}],name:"CallbackFailed",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:"account",type:"address"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"requestId",type:"uint256"},{indexed:!0,internalType:"address",name:"requester",type:"address"},{indexed:!1,internalType:"uint8",name:"status",type:"uint8"}],name:"RequestFulfilled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"userContract",type:"address"},{indexed:!0,internalType:"address",name:"userEOA",type:"address"},{indexed:!1,internalType:"string",name:"methodSignature",type:"string"},{indexed:!1,internalType:"bytes",name:"input",type:"bytes"},{indexed:!1,internalType:"bytes32",name:"codeHash",type:"bytes32"},{indexed:!1,internalType:"enum DOTypes.ExecutionType",name:"executionType",type:"uint8"},{indexed:!1,internalType:"uint256",name:"requestId",type:"uint256"}],name:"TaskRequested",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Unpaused",type:"event"},{inputs:[{internalType:"address",name:"addr",type:"address"}],name:"addToBlacklist",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"listener",type:"address"}],name:"associatedListener",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"caller",type:"address"},{internalType:"bytes",name:"resultData",type:"bytes"},{internalType:"string[]",name:"transcripts",type:"string[]"},{internalType:"uint256",name:"wtExecutionId",type:"uint256"},{internalType:"uint8",name:"status",type:"uint8"},{internalType:"string",name:"callbackMessageDetails",type:"string"}],name:"callback",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getRequestIdCounter",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"caller",type:"address"}],name:"getTaskSourceFromCaller",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"addr",type:"address"}],name:"isBlacklisted",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"requestId",type:"uint256"}],name:"isFulfilled",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"pause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"listener",type:"address"}],name:"registerListener",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"addr",type:"address"}],name:"removeFromBlacklist",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"methodSignature",type:"string"},{internalType:"bytes",name:"input",type:"bytes"},{internalType:"bytes32",name:"codeHash",type:"bytes32"},{internalType:"enum DOTypes.ExecutionType",name:"executionType",type:"uint8"}],name:"requestExecution",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unpause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"listener",type:"address"}],name:"unregisterListener",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",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:"0xdb010e2795de75460aa79a11b378d230c48e09ed711b5cba83c9e59533604286",receipt:{to:null,from:"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",contractAddress:"0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0",transactionIndex:0,gasUsed:"837747",logsBloom:"0x00000000000000000400000000000000400000000000000000800000000000000000000000000000000000000000000000000000000040200000000000000000000000000000000000000000000002000001000000000000000000000000000000000000020000000000000100000800000000800000000000000004000000400000000000000000000800000000000000000000000080000000000000800000000000000000000000000002000000000000000000000000000000000000000000000020000000200000000000000000000000002404000000000000000020000000000000000000000000000000000000000000000000400000000000000000",blockHash:"0x319f5b46047cf3793676e3479a5754dbfcdd0bad6fc7a8a6a1e069b800eaf849",transactionHash:"0xdb010e2795de75460aa79a11b378d230c48e09ed711b5cba83c9e59533604286",logs:[{transactionIndex:0,blockNumber:3,transactionHash:"0xdb010e2795de75460aa79a11b378d230c48e09ed711b5cba83c9e59533604286",address:"0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0",topics:["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000e7f1725e7734ce288f8367e1bb143e90bb3f0512"],data:"0x",logIndex:0,blockHash:"0x319f5b46047cf3793676e3479a5754dbfcdd0bad6fc7a8a6a1e069b800eaf849"},{transactionIndex:0,blockNumber:3,transactionHash:"0xdb010e2795de75460aa79a11b378d230c48e09ed711b5cba83c9e59533604286",address:"0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0",topics:["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266"],data:"0x",logIndex:1,blockHash:"0x319f5b46047cf3793676e3479a5754dbfcdd0bad6fc7a8a6a1e069b800eaf849"},{transactionIndex:0,blockNumber:3,transactionHash:"0xdb010e2795de75460aa79a11b378d230c48e09ed711b5cba83c9e59533604286",address:"0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0",topics:["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"],data:"0x0000000000000000000000000000000000000000000000000000000000000001",logIndex:2,blockHash:"0x319f5b46047cf3793676e3479a5754dbfcdd0bad6fc7a8a6a1e069b800eaf849"},{transactionIndex:0,blockNumber:3,transactionHash:"0xdb010e2795de75460aa79a11b378d230c48e09ed711b5cba83c9e59533604286",address:"0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0",topics:["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],data:"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000005fbdb2315678afecb367f032d93f642f64180aa3",logIndex:3,blockHash:"0x319f5b46047cf3793676e3479a5754dbfcdd0bad6fc7a8a6a1e069b800eaf849"}],blockNumber:3,cumulativeGasUsed:"837747",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 jE={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:"AccessControlBadConfirmation",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"bytes32",name:"neededRole",type:"bytes32"}],name:"AccessControlUnauthorizedAccount",type:"error"},{inputs:[{internalType:"uint256",name:"required",type:"uint256"},{internalType:"uint256",name:"available",type:"uint256"}],name:"InsufficientContractBalance",type:"error"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"InvalidAmount",type:"error"},{inputs:[{internalType:"uint256",name:"executionId",type:"uint256"}],name:"InvalidExecutionId",type:"error"},{inputs:[],name:"InvalidInitialization",type:"error"},{inputs:[],name:"InvalidNodeAddress",type:"error"},{inputs:[],name:"InvalidNodeRegistryAddress",type:"error"},{inputs:[],name:"InvalidSlashingWallet",type:"error"},{inputs:[],name:"InvalidStakerAddress",type:"error"},{inputs:[],name:"InvalidTokenAddress",type:"error"},{inputs:[],name:"InvalidWatchTowerAddress",type:"error"},{inputs:[],name:"InvalidWithdrawalDelay",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"NoActiveUnstakeRequest",type:"error"},{inputs:[],name:"NoSlashedTokensAvailable",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"NoStakeExists",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"NoStakeToSlash",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"NoTokensToUnstake",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"NoWithdrawalInProgress",type:"error"},{inputs:[{internalType:"address",name:"currentRegistry",type:"address"}],name:"NodeRegistryAlreadySet",type:"error"},{inputs:[],name:"NotInitializing",type:"error"},{inputs:[{internalType:"address",name:"staker",type:"address"},{internalType:"address",name:"caller",type:"address"}],name:"OnlyStakerCanCancel",type:"error"},{inputs:[{internalType:"address",name:"staker",type:"address"},{internalType:"address",name:"caller",type:"address"}],name:"OnlyStakerCanUnstake",type:"error"},{inputs:[],name:"ReentrancyGuardReentrantCall",type:"error"},{inputs:[],name:"SlashingWalletNotSet",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"StakeAlreadyExists",type:"error"},{inputs:[],name:"TokenTransferFailed",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"UnstakeAlreadyInProgress",type:"error"},{inputs:[],name:"WatchTowerNotSet",type:"error"},{inputs:[{internalType:"uint64",name:"withdrawalTime",type:"uint64"},{internalType:"uint256",name:"currentTime",type:"uint256"}],name:"WithdrawalPeriodNotElapsed",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint64",name:"version",type:"uint64"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldNodeRegistry",type:"address"},{indexed:!0,internalType:"address",name:"newNodeRegistry",type:"address"}],name:"NodeRegistryUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Slashed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"string",name:"executionId",type:"string"}],name:"Slashed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"SlashedCollected",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"oldAmount",type:"uint256"},{indexed:!0,internalType:"uint256",name:"newAmount",type:"uint256"}],name:"SlashingAmountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldWallet",type:"address"},{indexed:!0,internalType:"address",name:"newWallet",type:"address"}],name:"SlashingWalletUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!0,internalType:"address",name:"staker",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"timestamp",type:"uint256"}],name:"Staked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"oldAmount",type:"uint256"},{indexed:!0,internalType:"uint256",name:"newAmount",type:"uint256"}],name:"StakingAmountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldWatchTower",type:"address"},{indexed:!0,internalType:"address",name:"newWatchTower",type:"address"}],name:"WatchTowerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!1,internalType:"string",name:"reason",type:"string"},{indexed:!1,internalType:"uint256",name:"cancelledAmount",type:"uint256"}],name:"WithdrawalCancelled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!0,internalType:"address",name:"originalStaker",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"WithdrawalCompleted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"oldDelay",type:"uint256"},{indexed:!0,internalType:"uint256",name:"newDelay",type:"uint256"}],name:"WithdrawalDelayUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!0,internalType:"address",name:"staker",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"withdrawalTime",type:"uint256"}],name:"WithdrawalInitiated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!0,internalType:"address",name:"staker",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Withdrawn",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"SLASHER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"WATCHTOWER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"result",type:"bytes"},{internalType:"string[]",name:"",type:"string[]"},{internalType:"uint256",name:"wtExecutionId",type:"uint256"},{internalType:"uint8",name:"status",type:"uint8"},{internalType:"string",name:"",type:"string"}],name:"callbackTask",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"cancelWithdrawal",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"collectSlashedTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"completeWithdrawal",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"existsStake",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"getEffectiveStakeForRegistration",outputs:[{internalType:"uint256",name:"stakeAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"getSlashableAmountToCollect",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"getStake",outputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint256",name:"timestamp",type:"uint256"},{internalType:"address",name:"staker",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"getStakeAmount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"getStaker",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getStakingParameters",outputs:[{internalType:"uint256",name:"stakeAmount",type:"uint256"},{internalType:"uint256",name:"slashAmount",type:"uint256"},{internalType:"uint256",name:"withdrawalDelay",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"getUnstakeWithdrawalTime",outputs:[{internalType:"uint64",name:"withdrawalTime",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"grantSlasherRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"address",name:"_watchTower",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"isMyWithdrawalReady",outputs:[{internalType:"bool",name:"ready",type:"bool"},{internalType:"uint256",name:"timeRemaining",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"isUnstakeWithdrawalReady",outputs:[{internalType:"bool",name:"ready",type:"bool"},{internalType:"uint256",name:"timeRemaining",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"isWithdrawalInProgress",outputs:[{internalType:"bool",name:"inProgress",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"callerConfirmation",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_nodeRegistry",type:"address"}],name:"setNodeRegistry",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"}],name:"setSlashingAmount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_wallet",type:"address"}],name:"setSlashingWallet",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"}],name:"setStakingAmount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_watchTower",type:"address"}],name:"setWatchTower",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_withdrawalDelay",type:"uint256"}],name:"setWithdrawalDelay",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"},{internalType:"string",name:"executionId",type:"string"}],name:"slash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"slashingWallet",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"stake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"stake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"token",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalStaked",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"unstakeByAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"node",type:"address"}],name:"unstakeFor",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"watchTower",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",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:"0xf6bb3f27d93db8c99bb82bdaaf1279aa8349fb9fd8aee7fbf03c760b314ac18a",receipt:{to:null,from:"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",contractAddress:"0x0165878A594ca255338adfa4d48449f69242Eb8F",transactionIndex:0,gasUsed:"976620",logsBloom:"0x00000004000000000000000000000000400000000000000000010000000000000000000000000008000400000000000040400000000000000000000000000000001000000000000000000000000002000000000000000000000000000000400000000000020000000000000100000800000000800000000000000000000000040000000000000000000800000000000000000000000080000000000000800000100001000000000000000000000000000000000000000000001000000000080000000024000000200000000000000000000000002404001100000000000020000002000000000000000000000000000000000000000000000000000000080000",blockHash:"0xac29b571967ac188686887d7dd3b8d0074e3aed35581e85e7398f34130214aef",transactionHash:"0xf6bb3f27d93db8c99bb82bdaaf1279aa8349fb9fd8aee7fbf03c760b314ac18a",logs:[{transactionIndex:0,blockNumber:7,transactionHash:"0xf6bb3f27d93db8c99bb82bdaaf1279aa8349fb9fd8aee7fbf03c760b314ac18a",address:"0x0165878A594ca255338adfa4d48449f69242Eb8F",topics:["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x0000000000000000000000005fc8d32690cc91d4c39d9d3abcbd16989f875707"],data:"0x",logIndex:0,blockHash:"0xac29b571967ac188686887d7dd3b8d0074e3aed35581e85e7398f34130214aef"},{transactionIndex:0,blockNumber:7,transactionHash:"0xf6bb3f27d93db8c99bb82bdaaf1279aa8349fb9fd8aee7fbf03c760b314ac18a",address:"0x0165878A594ca255338adfa4d48449f69242Eb8F",topics:["0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d","0x0000000000000000000000000000000000000000000000000000000000000000","0x000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266","0x000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266"],data:"0x",logIndex:1,blockHash:"0xac29b571967ac188686887d7dd3b8d0074e3aed35581e85e7398f34130214aef"},{transactionIndex:0,blockNumber:7,transactionHash:"0xf6bb3f27d93db8c99bb82bdaaf1279aa8349fb9fd8aee7fbf03c760b314ac18a",address:"0x0165878A594ca255338adfa4d48449f69242Eb8F",topics:["0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d","0x112b543827e39baa999aa686bf791fe2f6502a00cd4342e25f8c36b543f90f14","0x0000000000000000000000009fe46736679d2d9a65f0992f2272de9f3c7fa6e0","0x000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266"],data:"0x",logIndex:2,blockHash:"0xac29b571967ac188686887d7dd3b8d0074e3aed35581e85e7398f34130214aef"},{transactionIndex:0,blockNumber:7,transactionHash:"0xf6bb3f27d93db8c99bb82bdaaf1279aa8349fb9fd8aee7fbf03c760b314ac18a",address:"0x0165878A594ca255338adfa4d48449f69242Eb8F",topics:["0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d","0x12b42e8a160f6064dc959c6f251e3af0750ad213dbecf573b4710d67d6c28e39","0x000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266","0x000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266"],data:"0x",logIndex:3,blockHash:"0xac29b571967ac188686887d7dd3b8d0074e3aed35581e85e7398f34130214aef"},{transactionIndex:0,blockNumber:7,transactionHash:"0xf6bb3f27d93db8c99bb82bdaaf1279aa8349fb9fd8aee7fbf03c760b314ac18a",address:"0x0165878A594ca255338adfa4d48449f69242Eb8F",topics:["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"],data:"0x0000000000000000000000000000000000000000000000000000000000000001",logIndex:4,blockHash:"0xac29b571967ac188686887d7dd3b8d0074e3aed35581e85e7398f34130214aef"},{transactionIndex:0,blockNumber:7,transactionHash:"0xf6bb3f27d93db8c99bb82bdaaf1279aa8349fb9fd8aee7fbf03c760b314ac18a",address:"0x0165878A594ca255338adfa4d48449f69242Eb8F",topics:["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],data:"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000005fbdb2315678afecb367f032d93f642f64180aa3",logIndex:5,blockHash:"0xac29b571967ac188686887d7dd3b8d0074e3aed35581e85e7398f34130214aef"}],blockNumber:7,cumulativeGasUsed:"976620",status:1,byzantium:!0},args:["0x5FC8d32690cc91D4c39d9d3abcBD16989F875707","0x5FbDB2315678afecb367f032d93F642f64180aa3","0x485cc955000000000000000000000000dc64a140aa3e981100a9beca4e685f962f0cf6c90000000000000000000000009fe46736679d2d9a65f0992f2272de9f3c7fa6e0"],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","0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0"]},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 sue={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:3,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",implementation:"0x74Bf3a2013dbc14151C06e86B7b26560B5e5Be04",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 oue={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:3,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",implementation:"0x0A5c83437795eCe589CF4ca4900d02A849442f4f",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 fue={address:"0xADF4996653Ae47303c158bb4bfEd290B31F36bD0",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:"AccessControlBadConfirmation",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"bytes32",name:"neededRole",type:"bytes32"}],name:"AccessControlUnauthorizedAccount",type:"error"},{inputs:[],name:"CallerNotAuthorizedToDeregister",type:"error"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"},{internalType:"uint256",name:"length",type:"uint256"}],name:"InvalidArrayIndex",type:"error"},{inputs:[],name:"InvalidInitialization",type:"error"},{inputs:[],name:"InvalidStakingContractAddress",type:"error"},{inputs:[],name:"InvalidWatchTowerAddress",type:"error"},{inputs:[],name:"NoRegistrationsAvailable",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"NodeAlreadyRegistered",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"NodeNotRegistered",type:"error"},{inputs:[],name:"NotInitializing",type:"error"},{inputs:[],name:"OnlyWatchTowerCanCallback",type:"error"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"OwnableInvalidOwner",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"OwnableUnauthorizedAccount",type:"error"},{inputs:[],name:"ReentrancyGuardReentrantCall",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint64",name:"version",type:"uint64"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!1,internalType:"string",name:"executionId",type:"string"}],name:"NodeDeregistered",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!0,internalType:"uint256",name:"index",type:"uint256"}],name:"NodeRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!0,internalType:"uint256",name:"nodeId",type:"uint256"},{indexed:!1,internalType:"bool",name:"hasStake",type:"bool"}],name:"NodeRegistrationCompleted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!0,internalType:"uint256",name:"wtExecutionId",type:"uint256"},{indexed:!1,internalType:"bool",name:"hasStake",type:"bool"},{indexed:!1,internalType:"string[]",name:"transcripts",type:"string[]"},{indexed:!1,internalType:"string",name:"callbackMessageDetails",type:"string"}],name:"NodeRegistrationRejected",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!1,internalType:"uint256",name:"oldWTExecutionId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newWTExecutionId",type:"uint256"}],name:"NodeRegistrationReplaced",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!0,internalType:"uint256",name:"wtExecutionId",type:"uint256"}],name:"NodeRegistrationRequested",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"wtExecutionId",type:"uint256"},{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!1,internalType:"string",name:"callbackMessageDetails",type:"string"}],name:"NodeRegistrationStaled",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:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldAddress",type:"address"},{indexed:!0,internalType:"address",name:"newAddress",type:"address"}],name:"StakingContractChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"newThreshold",type:"uint256"}],name:"ThresholdModified",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldAddress",type:"address"},{indexed:!0,internalType:"address",name:"newAddress",type:"address"}],name:"WatchTowerAddressChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldWatchTower",type:"address"},{indexed:!0,internalType:"address",name:"newWatchTower",type:"address"}],name:"WatchTowerUpdated",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"WATCHTOWER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"result",type:"bytes"},{internalType:"string[]",name:"transcripts",type:"string[]"},{internalType:"uint256",name:"wtExecutionId",type:"uint256"},{internalType:"uint8",name:"status",type:"uint8"},{internalType:"string",name:"_callbackMessageDetails",type:"string"}],name:"callbackTask",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"executionId",type:"string"}],name:"deRegister",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"id",type:"address"},{internalType:"string",name:"executionId",type:"string"}],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:"blockRegistered",type:"uint256"},{internalType:"uint256",name:"timestampRegistered",type:"uint256"}],internalType:"struct INodeRegistry.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:[{internalType:"uint256",name:"wtExecutionId",type:"uint256"}],name:"getNodeRegistrationStatus",outputs:[{internalType:"bool",name:"isCallbackComplete",type:"bool"},{internalType:"bool",name:"isRegistered",type:"bool"},{internalType:"string",name:"message",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"node",type:"address"}],name:"getNodeToWTExecutionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getNodes",outputs:[{components:[{internalType:"address",name:"nodeAddress",type:"address"},{internalType:"uint256",name:"blockRegistered",type:"uint256"},{internalType:"uint256",name:"timestampRegistered",type:"uint256"}],internalType:"struct INodeRegistry.Registration[]",name:"",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"getWatchTowerAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_watchTower",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"node",type:"address"}],name:"isNodeRegistered",outputs:[{internalType:"bool",name:"",type:"bool"}],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:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"callerConfirmation",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_stakingContract",type:"address"}],name:"setStakingContract",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_watchTower",type:"address"}],name:"setWatchTower",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],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:"0xebb619d3e0e8a66109d4832dd4272bd0e403d5a4f98e26488c4cbe377a2822ef",receipt:{to:null,from:"0xE3AcBBB129F14681C315028dB0A156597fb5058B",contractAddress:"0xADF4996653Ae47303c158bb4bfEd290B31F36bD0",transactionIndex:0,gasUsed:"864731",logsBloom:"0x00000006000000000000000000000000400000000000000000800000000000000000000000000100000000020000000000000000000000000000000000000000000000000000000000000000000002000001000000000000000000000000000000000000020000000000000000000800004000800000000000000000000000400000000000000000000808000000000000400000000080000000000000800000000001000000000000000000000000000000000000000000011000000000000000000020000000000000000000000000000000080484000902000000200020000002000000000000000000000000000000000000000000000000000000080000",blockHash:"0xd4457ba417ab8f20cb6883bb81a89c9f9cf8e1ddb5447454e1f31f164cd488b1",transactionHash:"0xebb619d3e0e8a66109d4832dd4272bd0e403d5a4f98e26488c4cbe377a2822ef",logs:[{transactionIndex:0,blockNumber:47640269,transactionHash:"0xebb619d3e0e8a66109d4832dd4272bd0e403d5a4f98e26488c4cbe377a2822ef",address:"0xADF4996653Ae47303c158bb4bfEd290B31F36bD0",topics:["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x0000000000000000000000001e006e62fbf0b8adad2ab94dd8ec4cb3f6f1b1da"],data:"0x",logIndex:0,blockHash:"0xd4457ba417ab8f20cb6883bb81a89c9f9cf8e1ddb5447454e1f31f164cd488b1"},{transactionIndex:0,blockNumber:47640269,transactionHash:"0xebb619d3e0e8a66109d4832dd4272bd0e403d5a4f98e26488c4cbe377a2822ef",address:"0xADF4996653Ae47303c158bb4bfEd290B31F36bD0",topics:["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x000000000000000000000000e3acbbb129f14681c315028db0a156597fb5058b"],data:"0x",logIndex:1,blockHash:"0xd4457ba417ab8f20cb6883bb81a89c9f9cf8e1ddb5447454e1f31f164cd488b1"},{transactionIndex:0,blockNumber:47640269,transactionHash:"0xebb619d3e0e8a66109d4832dd4272bd0e403d5a4f98e26488c4cbe377a2822ef",address:"0xADF4996653Ae47303c158bb4bfEd290B31F36bD0",topics:["0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d","0x0000000000000000000000000000000000000000000000000000000000000000","0x000000000000000000000000e3acbbb129f14681c315028db0a156597fb5058b","0x000000000000000000000000e3acbbb129f14681c315028db0a156597fb5058b"],data:"0x",logIndex:2,blockHash:"0xd4457ba417ab8f20cb6883bb81a89c9f9cf8e1ddb5447454e1f31f164cd488b1"},{transactionIndex:0,blockNumber:47640269,transactionHash:"0xebb619d3e0e8a66109d4832dd4272bd0e403d5a4f98e26488c4cbe377a2822ef",address:"0xADF4996653Ae47303c158bb4bfEd290B31F36bD0",topics:["0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d","0x112b543827e39baa999aa686bf791fe2f6502a00cd4342e25f8c36b543f90f14","0x0000000000000000000000006aa21ac81de8ca555fbfb082d7a3edfd6c4b55cb","0x000000000000000000000000e3acbbb129f14681c315028db0a156597fb5058b"],data:"0x",logIndex:3,blockHash:"0xd4457ba417ab8f20cb6883bb81a89c9f9cf8e1ddb5447454e1f31f164cd488b1"},{transactionIndex:0,blockNumber:47640269,transactionHash:"0xebb619d3e0e8a66109d4832dd4272bd0e403d5a4f98e26488c4cbe377a2822ef",address:"0xADF4996653Ae47303c158bb4bfEd290B31F36bD0",topics:["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"],data:"0x0000000000000000000000000000000000000000000000000000000000000001",logIndex:4,blockHash:"0xd4457ba417ab8f20cb6883bb81a89c9f9cf8e1ddb5447454e1f31f164cd488b1"},{transactionIndex:0,blockNumber:47640269,transactionHash:"0xebb619d3e0e8a66109d4832dd4272bd0e403d5a4f98e26488c4cbe377a2822ef",address:"0xADF4996653Ae47303c158bb4bfEd290B31F36bD0",topics:["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],data:"0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f9739ed4c06aad02f1e2b7632ba35d1760796382",logIndex:5,blockHash:"0xd4457ba417ab8f20cb6883bb81a89c9f9cf8e1ddb5447454e1f31f164cd488b1"}],blockNumber:47640269,cumulativeGasUsed:"864731",status:1,byzantium:!0},args:["0x1e006e62fbf0B8ADaD2aB94DD8ec4CB3f6f1b1da","0xF9739Ed4c06aad02F1E2b7632Ba35D1760796382","0xc4d66de80000000000000000000000006aa21ac81de8ca555fbfb082d7a3edfd6c4b55cb"],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:["0x6aa21Ac81dE8Ca555FbFB082D7A3eDFD6C4b55cb"]},implementation:"0x1e006e62fbf0B8ADaD2aB94DD8ec4CB3f6f1b1da",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 lue={address:"0x468A0EA8BBd2d3eDfC4f86bD0c059b8341122A8e",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:"AccessControlBadConfirmation",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"bytes32",name:"neededRole",type:"bytes32"}],name:"AccessControlUnauthorizedAccount",type:"error"},{inputs:[{internalType:"uint256",name:"required",type:"uint256"},{internalType:"uint256",name:"available",type:"uint256"}],name:"InsufficientContractBalance",type:"error"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"InvalidAmount",type:"error"},{inputs:[{internalType:"uint256",name:"executionId",type:"uint256"}],name:"InvalidExecutionId",type:"error"},{inputs:[],name:"InvalidInitialization",type:"error"},{inputs:[],name:"InvalidNodeAddress",type:"error"},{inputs:[],name:"InvalidNodeRegistryAddress",type:"error"},{inputs:[],name:"InvalidSlashingWallet",type:"error"},{inputs:[],name:"InvalidStakerAddress",type:"error"},{inputs:[],name:"InvalidTokenAddress",type:"error"},{inputs:[],name:"InvalidWatchTowerAddress",type:"error"},{inputs:[],name:"InvalidWithdrawalDelay",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"NoActiveUnstakeRequest",type:"error"},{inputs:[],name:"NoSlashedTokensAvailable",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"NoStakeExists",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"NoStakeToSlash",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"NoTokensToUnstake",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"NoWithdrawalInProgress",type:"error"},{inputs:[{internalType:"address",name:"currentRegistry",type:"address"}],name:"NodeRegistryAlreadySet",type:"error"},{inputs:[],name:"NotInitializing",type:"error"},{inputs:[{internalType:"address",name:"staker",type:"address"},{internalType:"address",name:"caller",type:"address"}],name:"OnlyStakerCanCancel",type:"error"},{inputs:[{internalType:"address",name:"staker",type:"address"},{internalType:"address",name:"caller",type:"address"}],name:"OnlyStakerCanUnstake",type:"error"},{inputs:[],name:"ReentrancyGuardReentrantCall",type:"error"},{inputs:[],name:"SlashingWalletNotSet",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"StakeAlreadyExists",type:"error"},{inputs:[],name:"TokenTransferFailed",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"UnstakeAlreadyInProgress",type:"error"},{inputs:[],name:"WatchTowerNotSet",type:"error"},{inputs:[{internalType:"uint64",name:"withdrawalTime",type:"uint64"},{internalType:"uint256",name:"currentTime",type:"uint256"}],name:"WithdrawalPeriodNotElapsed",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint64",name:"version",type:"uint64"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldNodeRegistry",type:"address"},{indexed:!0,internalType:"address",name:"newNodeRegistry",type:"address"}],name:"NodeRegistryUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Slashed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"string",name:"executionId",type:"string"}],name:"Slashed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"SlashedCollected",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"oldAmount",type:"uint256"},{indexed:!0,internalType:"uint256",name:"newAmount",type:"uint256"}],name:"SlashingAmountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldWallet",type:"address"},{indexed:!0,internalType:"address",name:"newWallet",type:"address"}],name:"SlashingWalletUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!0,internalType:"address",name:"staker",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"timestamp",type:"uint256"}],name:"Staked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"oldAmount",type:"uint256"},{indexed:!0,internalType:"uint256",name:"newAmount",type:"uint256"}],name:"StakingAmountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldWatchTower",type:"address"},{indexed:!0,internalType:"address",name:"newWatchTower",type:"address"}],name:"WatchTowerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!1,internalType:"string",name:"reason",type:"string"},{indexed:!1,internalType:"uint256",name:"cancelledAmount",type:"uint256"}],name:"WithdrawalCancelled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!0,internalType:"address",name:"originalStaker",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"WithdrawalCompleted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"oldDelay",type:"uint256"},{indexed:!0,internalType:"uint256",name:"newDelay",type:"uint256"}],name:"WithdrawalDelayUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!0,internalType:"address",name:"staker",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"withdrawalTime",type:"uint256"}],name:"WithdrawalInitiated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!0,internalType:"address",name:"staker",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Withdrawn",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"SLASHER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"WATCHTOWER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"result",type:"bytes"},{internalType:"string[]",name:"",type:"string[]"},{internalType:"uint256",name:"wtExecutionId",type:"uint256"},{internalType:"uint8",name:"status",type:"uint8"},{internalType:"string",name:"",type:"string"}],name:"callbackTask",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"cancelWithdrawal",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"collectSlashedTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"completeWithdrawal",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"existsStake",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"getEffectiveStakeForRegistration",outputs:[{internalType:"uint256",name:"stakeAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"getSlashableAmountToCollect",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"getStake",outputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint256",name:"timestamp",type:"uint256"},{internalType:"address",name:"staker",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"getStakeAmount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"getStaker",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getStakingParameters",outputs:[{internalType:"uint256",name:"stakeAmount",type:"uint256"},{internalType:"uint256",name:"slashAmount",type:"uint256"},{internalType:"uint256",name:"withdrawalDelay",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"getUnstakeWithdrawalTime",outputs:[{internalType:"uint64",name:"withdrawalTime",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"grantSlasherRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"address",name:"_watchTower",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"isMyWithdrawalReady",outputs:[{internalType:"bool",name:"ready",type:"bool"},{internalType:"uint256",name:"timeRemaining",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"isUnstakeWithdrawalReady",outputs:[{internalType:"bool",name:"ready",type:"bool"},{internalType:"uint256",name:"timeRemaining",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"isWithdrawalInProgress",outputs:[{internalType:"bool",name:"inProgress",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"callerConfirmation",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_nodeRegistry",type:"address"}],name:"setNodeRegistry",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"}],name:"setSlashingAmount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_wallet",type:"address"}],name:"setSlashingWallet",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"}],name:"setStakingAmount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_watchTower",type:"address"}],name:"setWatchTower",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_withdrawalDelay",type:"uint256"}],name:"setWithdrawalDelay",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"},{internalType:"string",name:"executionId",type:"string"}],name:"slash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"slashingWallet",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"stake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"stake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"token",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalStaked",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"unstakeByAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"node",type:"address"}],name:"unstakeFor",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"watchTower",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",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:"0x1624e4fbad6e84cfae5992a7dd2e4743b612341b6bc8eadfcb43c94f4fc31a63",receipt:{to:null,from:"0xE3AcBBB129F14681C315028dB0A156597fb5058B",contractAddress:"0x468A0EA8BBd2d3eDfC4f86bD0c059b8341122A8e",transactionIndex:49,gasUsed:"976644",logsBloom:"0x00000004000000000000000000000000440000000000000000010000000000000000000000000008000000000000000000000000000000080000000000000000000000000000000000000200000002000000000000000000000000000000000000080000020000080000000000000800000000800000000000000000000000000000000000000000000800000000000000400000000080000000000000800010000001000000001000000000200000000000000000000000001000000000080000000020000000000000000000000000000000000484010100000000200020000002000000000000000000000000000000000000000000000000000000080000",blockHash:"0xa5cb97fb73c1c394c960d3876e892e9fb65afe640182d815ea181104bbb6e420",transactionHash:"0x1624e4fbad6e84cfae5992a7dd2e4743b612341b6bc8eadfcb43c94f4fc31a63",logs:[{transactionIndex:49,blockNumber:9614270,transactionHash:"0x1624e4fbad6e84cfae5992a7dd2e4743b612341b6bc8eadfcb43c94f4fc31a63",address:"0x468A0EA8BBd2d3eDfC4f86bD0c059b8341122A8e",topics:["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x00000000000000000000000080fe6bad8d84ee9838bcef026d8acea2e7472a82"],data:"0x",logIndex:95,blockHash:"0xa5cb97fb73c1c394c960d3876e892e9fb65afe640182d815ea181104bbb6e420"},{transactionIndex:49,blockNumber:9614270,transactionHash:"0x1624e4fbad6e84cfae5992a7dd2e4743b612341b6bc8eadfcb43c94f4fc31a63",address:"0x468A0EA8BBd2d3eDfC4f86bD0c059b8341122A8e",topics:["0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d","0x0000000000000000000000000000000000000000000000000000000000000000","0x000000000000000000000000e3acbbb129f14681c315028db0a156597fb5058b","0x000000000000000000000000e3acbbb129f14681c315028db0a156597fb5058b"],data:"0x",logIndex:96,blockHash:"0xa5cb97fb73c1c394c960d3876e892e9fb65afe640182d815ea181104bbb6e420"},{transactionIndex:49,blockNumber:9614270,transactionHash:"0x1624e4fbad6e84cfae5992a7dd2e4743b612341b6bc8eadfcb43c94f4fc31a63",address:"0x468A0EA8BBd2d3eDfC4f86bD0c059b8341122A8e",topics:["0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d","0x112b543827e39baa999aa686bf791fe2f6502a00cd4342e25f8c36b543f90f14","0x00000000000000000000000007bc99accde2e07b7e7353f30f9c90eb80e4473d","0x000000000000000000000000e3acbbb129f14681c315028db0a156597fb5058b"],data:"0x",logIndex:97,blockHash:"0xa5cb97fb73c1c394c960d3876e892e9fb65afe640182d815ea181104bbb6e420"},{transactionIndex:49,blockNumber:9614270,transactionHash:"0x1624e4fbad6e84cfae5992a7dd2e4743b612341b6bc8eadfcb43c94f4fc31a63",address:"0x468A0EA8BBd2d3eDfC4f86bD0c059b8341122A8e",topics:["0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d","0x12b42e8a160f6064dc959c6f251e3af0750ad213dbecf573b4710d67d6c28e39","0x000000000000000000000000e3acbbb129f14681c315028db0a156597fb5058b","0x000000000000000000000000e3acbbb129f14681c315028db0a156597fb5058b"],data:"0x",logIndex:98,blockHash:"0xa5cb97fb73c1c394c960d3876e892e9fb65afe640182d815ea181104bbb6e420"},{transactionIndex:49,blockNumber:9614270,transactionHash:"0x1624e4fbad6e84cfae5992a7dd2e4743b612341b6bc8eadfcb43c94f4fc31a63",address:"0x468A0EA8BBd2d3eDfC4f86bD0c059b8341122A8e",topics:["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"],data:"0x0000000000000000000000000000000000000000000000000000000000000001",logIndex:99,blockHash:"0xa5cb97fb73c1c394c960d3876e892e9fb65afe640182d815ea181104bbb6e420"},{transactionIndex:49,blockNumber:9614270,transactionHash:"0x1624e4fbad6e84cfae5992a7dd2e4743b612341b6bc8eadfcb43c94f4fc31a63",address:"0x468A0EA8BBd2d3eDfC4f86bD0c059b8341122A8e",topics:["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],data:"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000006fb42a4d2b5dc5255fb36381215533ce7d18d341",logIndex:100,blockHash:"0xa5cb97fb73c1c394c960d3876e892e9fb65afe640182d815ea181104bbb6e420"}],blockNumber:9614270,cumulativeGasUsed:"8191516",status:1,byzantium:!0},args:["0x80fE6baD8d84Ee9838bCeF026D8Acea2E7472a82","0x6fb42a4d2B5DC5255fb36381215533cE7D18d341","0x485cc9550000000000000000000000004cb9d9d331da8655bd2455695bd0d334569716b700000000000000000000000007bc99accde2e07b7e7353f30f9c90eb80e4473d"],numDeployments:2,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",implementation:"0x2242b7Cc46cBA57747469aeAD15e0f148572F7F2",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 uue={address:"0x15dC697f596dF3693b13bf9Ac4088b93aB18c6e0",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:"0x343f633432079d0ed7b878b709a1db07dfd4cb94340d5c605e3486d636effac8",receipt:{to:null,from:"0x33c36D19Ba06842890cB6b5737Ff85A227D4eA26",contractAddress:"0x15dC697f596dF3693b13bf9Ac4088b93aB18c6e0",transactionIndex:0,gasUsed:"842873",logsBloom:"0x80000000000000000400000048000000400000000000000000800000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000002000001000000000000000000000000000000000000020000000000000000000800000000800000000000000000000000400000000000000000000800000000000000020000000080000000000000800000000000000000000000000000000000000000000000000000000000000000000000000020000000001000080000000000000000000404000000000000040020000000000000000000000000000000000000000000000000000000000000000000",blockHash:"0x74125a872dfa8d3e029212df3f55b1fa39b76f849a464a30dece4c9777ef494c",transactionHash:"0x343f633432079d0ed7b878b709a1db07dfd4cb94340d5c605e3486d636effac8",logs:[{transactionIndex:0,blockNumber:49427771,transactionHash:"0x343f633432079d0ed7b878b709a1db07dfd4cb94340d5c605e3486d636effac8",address:"0x15dC697f596dF3693b13bf9Ac4088b93aB18c6e0",topics:["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000674298a7d69acc154124a86dd19bb6bbc2ded408"],data:"0x",logIndex:0,blockHash:"0x74125a872dfa8d3e029212df3f55b1fa39b76f849a464a30dece4c9777ef494c"},{transactionIndex:0,blockNumber:49427771,transactionHash:"0x343f633432079d0ed7b878b709a1db07dfd4cb94340d5c605e3486d636effac8",address:"0x15dC697f596dF3693b13bf9Ac4088b93aB18c6e0",topics:["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000033c36d19ba06842890cb6b5737ff85a227d4ea26"],data:"0x",logIndex:1,blockHash:"0x74125a872dfa8d3e029212df3f55b1fa39b76f849a464a30dece4c9777ef494c"},{transactionIndex:0,blockNumber:49427771,transactionHash:"0x343f633432079d0ed7b878b709a1db07dfd4cb94340d5c605e3486d636effac8",address:"0x15dC697f596dF3693b13bf9Ac4088b93aB18c6e0",topics:["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"],data:"0x0000000000000000000000000000000000000000000000000000000000000001",logIndex:2,blockHash:"0x74125a872dfa8d3e029212df3f55b1fa39b76f849a464a30dece4c9777ef494c"},{transactionIndex:0,blockNumber:49427771,transactionHash:"0x343f633432079d0ed7b878b709a1db07dfd4cb94340d5c605e3486d636effac8",address:"0x15dC697f596dF3693b13bf9Ac4088b93aB18c6e0",topics:["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],data:"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000096d62705509059d981870abe4d347def34c4dc88",logIndex:3,blockHash:"0x74125a872dfa8d3e029212df3f55b1fa39b76f849a464a30dece4c9777ef494c"}],blockNumber:49427771,cumulativeGasUsed:"842873",status:1,byzantium:!0},args:["0x674298A7d69ACC154124A86Dd19Bb6bBc2deD408","0x96D62705509059d981870aBe4D347deF34c4dC88","0xc4d66de80000000000000000000000008b938a936dd83e33f97f2061852d272a1a1ba461"],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:["0x8B938a936dD83e33f97F2061852d272A1a1BA461"]},implementation:"0x674298A7d69ACC154124A86Dd19Bb6bBc2deD408",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 due={address:"0x8B938a936dD83e33f97F2061852d272A1a1BA461",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:"0xe21991d0b82f331731919a5cb6eeb947c93d22d67645917ee7d2f90ca86ed595",receipt:{to:null,from:"0x33c36D19Ba06842890cB6b5737Ff85A227D4eA26",contractAddress:"0x8B938a936dD83e33f97F2061852d272A1a1BA461",transactionIndex:0,gasUsed:"820391",logsBloom:"0x00000000000000000000000008000000400000000000000000800000000000000000000000000000000000000000000000000200000000000000000000000000000000000001000000000080000002000003000000000000000000000000000000000000020000000000800000000800000000800000000000000000000000400000000000000000000800000000000000020000000080000000000000800000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000001000404000000002000000020000000000000000000000000000000000000000000000000000000000000000000",blockHash:"0xf0c7ed8ff47c6864301487c9937839a6df0bab4a63c3807011a0009d71fdc1ff",transactionHash:"0xe21991d0b82f331731919a5cb6eeb947c93d22d67645917ee7d2f90ca86ed595",logs:[{transactionIndex:0,blockNumber:49427763,transactionHash:"0xe21991d0b82f331731919a5cb6eeb947c93d22d67645917ee7d2f90ca86ed595",address:"0x8B938a936dD83e33f97F2061852d272A1a1BA461",topics:["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x00000000000000000000000007c01b80f227f81604cfa18f73604575129c5096"],data:"0x",logIndex:0,blockHash:"0xf0c7ed8ff47c6864301487c9937839a6df0bab4a63c3807011a0009d71fdc1ff"},{transactionIndex:0,blockNumber:49427763,transactionHash:"0xe21991d0b82f331731919a5cb6eeb947c93d22d67645917ee7d2f90ca86ed595",address:"0x8B938a936dD83e33f97F2061852d272A1a1BA461",topics:["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000033c36d19ba06842890cb6b5737ff85a227d4ea26"],data:"0x",logIndex:1,blockHash:"0xf0c7ed8ff47c6864301487c9937839a6df0bab4a63c3807011a0009d71fdc1ff"},{transactionIndex:0,blockNumber:49427763,transactionHash:"0xe21991d0b82f331731919a5cb6eeb947c93d22d67645917ee7d2f90ca86ed595",address:"0x8B938a936dD83e33f97F2061852d272A1a1BA461",topics:["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"],data:"0x0000000000000000000000000000000000000000000000000000000000000001",logIndex:2,blockHash:"0xf0c7ed8ff47c6864301487c9937839a6df0bab4a63c3807011a0009d71fdc1ff"},{transactionIndex:0,blockNumber:49427763,transactionHash:"0xe21991d0b82f331731919a5cb6eeb947c93d22d67645917ee7d2f90ca86ed595",address:"0x8B938a936dD83e33f97F2061852d272A1a1BA461",topics:["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],data:"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000096d62705509059d981870abe4d347def34c4dc88",logIndex:3,blockHash:"0xf0c7ed8ff47c6864301487c9937839a6df0bab4a63c3807011a0009d71fdc1ff"}],blockNumber:49427763,cumulativeGasUsed:"820391",status:1,byzantium:!0},args:["0x07c01B80f227F81604CFa18f73604575129C5096","0x96D62705509059d981870aBe4D347deF34c4dC88","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:"0x07c01B80f227F81604CFa18f73604575129C5096",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 cue={address:"0x3293cB1761B6151a918418cC8eF886e2a7cdc62d",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:"AccessControlBadConfirmation",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"bytes32",name:"neededRole",type:"bytes32"}],name:"AccessControlUnauthorizedAccount",type:"error"},{inputs:[],name:"CallerNotAuthorizedToDeregister",type:"error"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"},{internalType:"uint256",name:"length",type:"uint256"}],name:"InvalidArrayIndex",type:"error"},{inputs:[],name:"InvalidInitialization",type:"error"},{inputs:[],name:"InvalidStakingContractAddress",type:"error"},{inputs:[],name:"InvalidWatchTowerAddress",type:"error"},{inputs:[],name:"NoRegistrationsAvailable",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"NodeAlreadyRegistered",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"NodeNotRegistered",type:"error"},{inputs:[],name:"NotInitializing",type:"error"},{inputs:[],name:"OnlyWatchTowerCanCallback",type:"error"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"OwnableInvalidOwner",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"OwnableUnauthorizedAccount",type:"error"},{inputs:[],name:"ReentrancyGuardReentrantCall",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint64",name:"version",type:"uint64"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!1,internalType:"string",name:"executionId",type:"string"}],name:"NodeDeregistered",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!0,internalType:"uint256",name:"index",type:"uint256"}],name:"NodeRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!0,internalType:"uint256",name:"nodeId",type:"uint256"},{indexed:!1,internalType:"bool",name:"hasStake",type:"bool"}],name:"NodeRegistrationCompleted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!0,internalType:"uint256",name:"wtExecutionId",type:"uint256"},{indexed:!1,internalType:"bool",name:"hasStake",type:"bool"},{indexed:!1,internalType:"string[]",name:"transcripts",type:"string[]"},{indexed:!1,internalType:"string",name:"callbackMessageDetails",type:"string"}],name:"NodeRegistrationRejected",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!1,internalType:"uint256",name:"oldWTExecutionId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newWTExecutionId",type:"uint256"}],name:"NodeRegistrationReplaced",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!0,internalType:"uint256",name:"wtExecutionId",type:"uint256"}],name:"NodeRegistrationRequested",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"wtExecutionId",type:"uint256"},{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!1,internalType:"string",name:"callbackMessageDetails",type:"string"}],name:"NodeRegistrationStaled",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:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldAddress",type:"address"},{indexed:!0,internalType:"address",name:"newAddress",type:"address"}],name:"StakingContractChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"newThreshold",type:"uint256"}],name:"ThresholdModified",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldAddress",type:"address"},{indexed:!0,internalType:"address",name:"newAddress",type:"address"}],name:"WatchTowerAddressChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldWatchTower",type:"address"},{indexed:!0,internalType:"address",name:"newWatchTower",type:"address"}],name:"WatchTowerUpdated",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"WATCHTOWER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"result",type:"bytes"},{internalType:"string[]",name:"transcripts",type:"string[]"},{internalType:"uint256",name:"wtExecutionId",type:"uint256"},{internalType:"uint8",name:"status",type:"uint8"},{internalType:"string",name:"_callbackMessageDetails",type:"string"}],name:"callbackTask",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"executionId",type:"string"}],name:"deRegister",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"id",type:"address"},{internalType:"string",name:"executionId",type:"string"}],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:"blockRegistered",type:"uint256"},{internalType:"uint256",name:"timestampRegistered",type:"uint256"}],internalType:"struct INodeRegistry.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:[{internalType:"uint256",name:"wtExecutionId",type:"uint256"}],name:"getNodeRegistrationStatus",outputs:[{internalType:"bool",name:"isCallbackComplete",type:"bool"},{internalType:"bool",name:"isRegistered",type:"bool"},{internalType:"string",name:"message",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"node",type:"address"}],name:"getNodeToWTExecutionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getNodes",outputs:[{components:[{internalType:"address",name:"nodeAddress",type:"address"},{internalType:"uint256",name:"blockRegistered",type:"uint256"},{internalType:"uint256",name:"timestampRegistered",type:"uint256"}],internalType:"struct INodeRegistry.Registration[]",name:"",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"getWatchTowerAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_watchTower",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"node",type:"address"}],name:"isNodeRegistered",outputs:[{internalType:"bool",name:"",type:"bool"}],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:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"callerConfirmation",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_stakingContract",type:"address"}],name:"setStakingContract",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_watchTower",type:"address"}],name:"setWatchTower",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],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:"0xce9ddc029070c0074018022978ef6aa08bff3b18119702b7511906bdeaa4479f",receipt:{to:null,from:"0x33c36D19Ba06842890cB6b5737Ff85A227D4eA26",contractAddress:"0x3293cB1761B6151a918418cC8eF886e2a7cdc62d",transactionIndex:1,gasUsed:"864657",logsBloom:"0x00000004000000100000008008000004400000000000000000800000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000002000001000000000000000000000000000000000000020000000000000000000800000000800000000000000000000000480000000000000000000800000000000000020000000080000000000000800000000001000000000000000000000000000000000000000000001000000000000000000020000400000000400000000000000000400404000100000000000020000002000000000800000000000000000000000000000000000000000000080000",blockHash:"0xde80f37ea9d7a8921a03aaa7dd54e00f141fa27a05e0f62e0e36c6a2a52600e9",transactionHash:"0xce9ddc029070c0074018022978ef6aa08bff3b18119702b7511906bdeaa4479f",logs:[{transactionIndex:1,blockNumber:49427753,transactionHash:"0xce9ddc029070c0074018022978ef6aa08bff3b18119702b7511906bdeaa4479f",address:"0x3293cB1761B6151a918418cC8eF886e2a7cdc62d",topics:["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000cf1c9cc2fe4fd8fc60e3963211e817a114b1f40b"],data:"0x",logIndex:3,blockHash:"0xde80f37ea9d7a8921a03aaa7dd54e00f141fa27a05e0f62e0e36c6a2a52600e9"},{transactionIndex:1,blockNumber:49427753,transactionHash:"0xce9ddc029070c0074018022978ef6aa08bff3b18119702b7511906bdeaa4479f",address:"0x3293cB1761B6151a918418cC8eF886e2a7cdc62d",topics:["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000033c36d19ba06842890cb6b5737ff85a227d4ea26"],data:"0x",logIndex:4,blockHash:"0xde80f37ea9d7a8921a03aaa7dd54e00f141fa27a05e0f62e0e36c6a2a52600e9"},{transactionIndex:1,blockNumber:49427753,transactionHash:"0xce9ddc029070c0074018022978ef6aa08bff3b18119702b7511906bdeaa4479f",address:"0x3293cB1761B6151a918418cC8eF886e2a7cdc62d",topics:["0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000033c36d19ba06842890cb6b5737ff85a227d4ea26","0x00000000000000000000000033c36d19ba06842890cb6b5737ff85a227d4ea26"],data:"0x",logIndex:5,blockHash:"0xde80f37ea9d7a8921a03aaa7dd54e00f141fa27a05e0f62e0e36c6a2a52600e9"},{transactionIndex:1,blockNumber:49427753,transactionHash:"0xce9ddc029070c0074018022978ef6aa08bff3b18119702b7511906bdeaa4479f",address:"0x3293cB1761B6151a918418cC8eF886e2a7cdc62d",topics:["0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d","0x112b543827e39baa999aa686bf791fe2f6502a00cd4342e25f8c36b543f90f14","0x0000000000000000000000007ef63e2e0ba16ab7e57db8add3cc73c2abe55e34","0x00000000000000000000000033c36d19ba06842890cb6b5737ff85a227d4ea26"],data:"0x",logIndex:6,blockHash:"0xde80f37ea9d7a8921a03aaa7dd54e00f141fa27a05e0f62e0e36c6a2a52600e9"},{transactionIndex:1,blockNumber:49427753,transactionHash:"0xce9ddc029070c0074018022978ef6aa08bff3b18119702b7511906bdeaa4479f",address:"0x3293cB1761B6151a918418cC8eF886e2a7cdc62d",topics:["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"],data:"0x0000000000000000000000000000000000000000000000000000000000000001",logIndex:7,blockHash:"0xde80f37ea9d7a8921a03aaa7dd54e00f141fa27a05e0f62e0e36c6a2a52600e9"},{transactionIndex:1,blockNumber:49427753,transactionHash:"0xce9ddc029070c0074018022978ef6aa08bff3b18119702b7511906bdeaa4479f",address:"0x3293cB1761B6151a918418cC8eF886e2a7cdc62d",topics:["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],data:"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000096d62705509059d981870abe4d347def34c4dc88",logIndex:8,blockHash:"0xde80f37ea9d7a8921a03aaa7dd54e00f141fa27a05e0f62e0e36c6a2a52600e9"}],blockNumber:49427753,cumulativeGasUsed:"950942",status:1,byzantium:!0},args:["0xcF1c9cc2Fe4fd8fc60e3963211e817a114B1f40b","0x96D62705509059d981870aBe4D347deF34c4dC88","0xc4d66de80000000000000000000000007ef63e2e0ba16ab7e57db8add3cc73c2abe55e34"],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:["0x7eF63E2E0bA16AB7e57DB8Add3cc73c2ABe55e34"]},implementation:"0xcF1c9cc2Fe4fd8fc60e3963211e817a114B1f40b",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 pue={address:"0x8B938a936dD83e33f97F2061852d272A1a1BA461",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:"AccessControlBadConfirmation",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"bytes32",name:"neededRole",type:"bytes32"}],name:"AccessControlUnauthorizedAccount",type:"error"},{inputs:[{internalType:"uint256",name:"required",type:"uint256"},{internalType:"uint256",name:"available",type:"uint256"}],name:"InsufficientContractBalance",type:"error"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"InvalidAmount",type:"error"},{inputs:[{internalType:"uint256",name:"executionId",type:"uint256"}],name:"InvalidExecutionId",type:"error"},{inputs:[],name:"InvalidInitialization",type:"error"},{inputs:[],name:"InvalidNodeAddress",type:"error"},{inputs:[],name:"InvalidNodeRegistryAddress",type:"error"},{inputs:[],name:"InvalidSlashingWallet",type:"error"},{inputs:[],name:"InvalidStakerAddress",type:"error"},{inputs:[],name:"InvalidTokenAddress",type:"error"},{inputs:[],name:"InvalidWatchTowerAddress",type:"error"},{inputs:[],name:"InvalidWithdrawalDelay",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"NoActiveUnstakeRequest",type:"error"},{inputs:[],name:"NoSlashedTokensAvailable",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"NoStakeExists",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"NoStakeToSlash",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"NoTokensToUnstake",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"NoWithdrawalInProgress",type:"error"},{inputs:[{internalType:"address",name:"currentRegistry",type:"address"}],name:"NodeRegistryAlreadySet",type:"error"},{inputs:[],name:"NotInitializing",type:"error"},{inputs:[{internalType:"address",name:"staker",type:"address"},{internalType:"address",name:"caller",type:"address"}],name:"OnlyStakerCanCancel",type:"error"},{inputs:[{internalType:"address",name:"staker",type:"address"},{internalType:"address",name:"caller",type:"address"}],name:"OnlyStakerCanUnstake",type:"error"},{inputs:[],name:"ReentrancyGuardReentrantCall",type:"error"},{inputs:[],name:"SlashingWalletNotSet",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"StakeAlreadyExists",type:"error"},{inputs:[],name:"TokenTransferFailed",type:"error"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"UnstakeAlreadyInProgress",type:"error"},{inputs:[],name:"WatchTowerNotSet",type:"error"},{inputs:[{internalType:"uint64",name:"withdrawalTime",type:"uint64"},{internalType:"uint256",name:"currentTime",type:"uint256"}],name:"WithdrawalPeriodNotElapsed",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint64",name:"version",type:"uint64"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldNodeRegistry",type:"address"},{indexed:!0,internalType:"address",name:"newNodeRegistry",type:"address"}],name:"NodeRegistryUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Slashed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"string",name:"executionId",type:"string"}],name:"Slashed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"SlashedCollected",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"oldAmount",type:"uint256"},{indexed:!0,internalType:"uint256",name:"newAmount",type:"uint256"}],name:"SlashingAmountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldWallet",type:"address"},{indexed:!0,internalType:"address",name:"newWallet",type:"address"}],name:"SlashingWalletUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!0,internalType:"address",name:"staker",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"timestamp",type:"uint256"}],name:"Staked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"oldAmount",type:"uint256"},{indexed:!0,internalType:"uint256",name:"newAmount",type:"uint256"}],name:"StakingAmountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldWatchTower",type:"address"},{indexed:!0,internalType:"address",name:"newWatchTower",type:"address"}],name:"WatchTowerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!1,internalType:"string",name:"reason",type:"string"},{indexed:!1,internalType:"uint256",name:"cancelledAmount",type:"uint256"}],name:"WithdrawalCancelled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!0,internalType:"address",name:"originalStaker",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"WithdrawalCompleted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"oldDelay",type:"uint256"},{indexed:!0,internalType:"uint256",name:"newDelay",type:"uint256"}],name:"WithdrawalDelayUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!0,internalType:"address",name:"staker",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"withdrawalTime",type:"uint256"}],name:"WithdrawalInitiated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nodeAddress",type:"address"},{indexed:!0,internalType:"address",name:"staker",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Withdrawn",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"SLASHER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"WATCHTOWER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"result",type:"bytes"},{internalType:"string[]",name:"",type:"string[]"},{internalType:"uint256",name:"wtExecutionId",type:"uint256"},{internalType:"uint8",name:"status",type:"uint8"},{internalType:"string",name:"",type:"string"}],name:"callbackTask",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"cancelWithdrawal",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"collectSlashedTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"completeWithdrawal",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"existsStake",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"getEffectiveStakeForRegistration",outputs:[{internalType:"uint256",name:"stakeAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"getSlashableAmountToCollect",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"getStake",outputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint256",name:"timestamp",type:"uint256"},{internalType:"address",name:"staker",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"getStakeAmount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"getStaker",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getStakingParameters",outputs:[{internalType:"uint256",name:"stakeAmount",type:"uint256"},{internalType:"uint256",name:"slashAmount",type:"uint256"},{internalType:"uint256",name:"withdrawalDelay",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"getUnstakeWithdrawalTime",outputs:[{internalType:"uint64",name:"withdrawalTime",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"grantSlasherRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"address",name:"_watchTower",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"isMyWithdrawalReady",outputs:[{internalType:"bool",name:"ready",type:"bool"},{internalType:"uint256",name:"timeRemaining",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"isUnstakeWithdrawalReady",outputs:[{internalType:"bool",name:"ready",type:"bool"},{internalType:"uint256",name:"timeRemaining",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"isWithdrawalInProgress",outputs:[{internalType:"bool",name:"inProgress",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"callerConfirmation",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_nodeRegistry",type:"address"}],name:"setNodeRegistry",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"}],name:"setSlashingAmount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_wallet",type:"address"}],name:"setSlashingWallet",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"}],name:"setStakingAmount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_watchTower",type:"address"}],name:"setWatchTower",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_withdrawalDelay",type:"uint256"}],name:"setWithdrawalDelay",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"},{internalType:"string",name:"executionId",type:"string"}],name:"slash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"slashingWallet",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"stake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"stake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"token",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalStaked",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"nodeAddress",type:"address"}],name:"unstakeByAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"node",type:"address"}],name:"unstakeFor",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"watchTower",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",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:"0x44bacc61493abb93816836eef188489b891cff0a113e8f825b116377de94aaee",receipt:{to:null,from:"0x33c36D19Ba06842890cB6b5737Ff85A227D4eA26",contractAddress:"0x8B938a936dD83e33f97F2061852d272A1a1BA461",transactionIndex:102,gasUsed:"976632",logsBloom:"0x00000004000000100000000008000000400000000000000000010000000000000000000000000008000000000000000000000200000000000000000000000000000000000001000000000080000002000002000000000000000000000000000000000000020000000000800000000800000000800000000000000000000000000000000000000000000800000000000000020000000080000000000000800000000001000000000000000000000000000000000000000000001000000000080000000020000400000000400000000000000001000404000100002000000020000002000000000000000000000000000000000000000000000000000000080000",blockHash:"0xee3ac46e80bf8621649a02564120472648d6f2abca86b4eb0195912e5f476f95",transactionHash:"0x44bacc61493abb93816836eef188489b891cff0a113e8f825b116377de94aaee",logs:[{transactionIndex:102,blockNumber:9900078,transactionHash:"0x44bacc61493abb93816836eef188489b891cff0a113e8f825b116377de94aaee",address:"0x8B938a936dD83e33f97F2061852d272A1a1BA461",topics:["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x00000000000000000000000007c01b80f227f81604cfa18f73604575129c5096"],data:"0x",logIndex:744,blockHash:"0xee3ac46e80bf8621649a02564120472648d6f2abca86b4eb0195912e5f476f95"},{transactionIndex:102,blockNumber:9900078,transactionHash:"0x44bacc61493abb93816836eef188489b891cff0a113e8f825b116377de94aaee",address:"0x8B938a936dD83e33f97F2061852d272A1a1BA461",topics:["0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000033c36d19ba06842890cb6b5737ff85a227d4ea26","0x00000000000000000000000033c36d19ba06842890cb6b5737ff85a227d4ea26"],data:"0x",logIndex:745,blockHash:"0xee3ac46e80bf8621649a02564120472648d6f2abca86b4eb0195912e5f476f95"},{transactionIndex:102,blockNumber:9900078,transactionHash:"0x44bacc61493abb93816836eef188489b891cff0a113e8f825b116377de94aaee",address:"0x8B938a936dD83e33f97F2061852d272A1a1BA461",topics:["0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d","0x112b543827e39baa999aa686bf791fe2f6502a00cd4342e25f8c36b543f90f14","0x0000000000000000000000007ef63e2e0ba16ab7e57db8add3cc73c2abe55e34","0x00000000000000000000000033c36d19ba06842890cb6b5737ff85a227d4ea26"],data:"0x",logIndex:746,blockHash:"0xee3ac46e80bf8621649a02564120472648d6f2abca86b4eb0195912e5f476f95"},{transactionIndex:102,blockNumber:9900078,transactionHash:"0x44bacc61493abb93816836eef188489b891cff0a113e8f825b116377de94aaee",address:"0x8B938a936dD83e33f97F2061852d272A1a1BA461",topics:["0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d","0x12b42e8a160f6064dc959c6f251e3af0750ad213dbecf573b4710d67d6c28e39","0x00000000000000000000000033c36d19ba06842890cb6b5737ff85a227d4ea26","0x00000000000000000000000033c36d19ba06842890cb6b5737ff85a227d4ea26"],data:"0x",logIndex:747,blockHash:"0xee3ac46e80bf8621649a02564120472648d6f2abca86b4eb0195912e5f476f95"},{transactionIndex:102,blockNumber:9900078,transactionHash:"0x44bacc61493abb93816836eef188489b891cff0a113e8f825b116377de94aaee",address:"0x8B938a936dD83e33f97F2061852d272A1a1BA461",topics:["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"],data:"0x0000000000000000000000000000000000000000000000000000000000000001",logIndex:748,blockHash:"0xee3ac46e80bf8621649a02564120472648d6f2abca86b4eb0195912e5f476f95"},{transactionIndex:102,blockNumber:9900078,transactionHash:"0x44bacc61493abb93816836eef188489b891cff0a113e8f825b116377de94aaee",address:"0x8B938a936dD83e33f97F2061852d272A1a1BA461",topics:["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],data:"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000096d62705509059d981870abe4d347def34c4dc88",logIndex:749,blockHash:"0xee3ac46e80bf8621649a02564120472648d6f2abca86b4eb0195912e5f476f95"}],blockNumber:9900078,cumulativeGasUsed:"22378019",status:1,byzantium:!0},args:["0x07c01B80f227F81604CFa18f73604575129C5096","0x96D62705509059d981870aBe4D347deF34c4dC88","0x485cc9550000000000000000000000003293cb1761b6151a918418cc8ef886e2a7cdc62d0000000000000000000000007ef63e2e0ba16ab7e57db8add3cc73c2abe55e34"],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:["0x3293cB1761B6151a918418cC8eF886e2a7cdc62d","0x7eF63E2E0bA16AB7e57DB8Add3cc73c2ABe55e34"]},implementation:"0x07c01B80f227F81604CFa18f73604575129C5096",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 a0(e,t){switch(t){case Tt.AVAX:return l8r(e);case Tt.ETH:return f8r(e);default:throw new Error(`Unsupported blockchain: ${t}`)}}function f8r(e){switch(e){case bo.LOCAL:return{url:"http://localhost:8546",chainId:"31337",staking:{address:jE.address,abi:jE.abi}};case bo.LOCAL_DOCKER:return{url:"http://hardhat-node:8546",chainId:"31337",staking:{address:jE.address,abi:jE.abi}};case bo.TESTNET:return{url:process.env.RPC_ETH_URL||"https://ethereum-sepolia-rpc.publicnode.com",chainId:"11155111",staking:{address:pue.address,abi:pue.abi}};case bo.STAGING:return{url:process.env.RPC_ETH_URL||"https://ethereum-sepolia-rpc.publicnode.com",chainId:"11155111",staking:{address:lue.address,abi:lue.abi}};case bo.PRODUCTION:return{url:process.env.RPC_ETH_URL||"https://ethereum-rpc.publicnode.com",chainId:"1",staking:{address:iue.address,abi:iue.abi}};default:throw new Error(`Unsupported environment: ${e}`)}}function l8r(e){switch(e){case bo.LOCAL:return{url:"http://localhost:8545",chainId:"31337",registry:{address:LE.address,abi:LE.abi},taskRegistry:{address:$E.address,abi:$E.abi},authorization:{address:DE.address,abi:DE.abi},watchTower:{address:ru.address,abi:ru.abi}};case bo.LOCAL_DOCKER:return{url:"http://hardhat-node:8545",chainId:"31337",registry:{address:LE.address,abi:LE.abi},taskRegistry:{address:$E.address,abi:$E.abi},authorization:{address:DE.address,abi:DE.abi},watchTower:{address:ru.address,abi:ru.abi}};case bo.TESTNET:return{url:process.env.RPC_URL||"https://api.avax-test.network/ext/bc/C/rpc",chainId:"43113",registry:{address:cue.address,abi:cue.abi},taskRegistry:{address:due.address,abi:due.abi},authorization:{address:uue.address,abi:uue.abi},watchTower:{address:ru.address,abi:ru.abi}};case bo.STAGING:return{url:process.env.RPC_URL||"https://api.avax-test.network/ext/bc/C/rpc",chainId:"43113",registry:{address:fue.address,abi:fue.abi},taskRegistry:{address:oue.address,abi:oue.abi},authorization:{address:sue.address,abi:sue.abi},watchTower:{address:ru.address,abi:ru.abi}};case bo.PRODUCTION:return{url:process.env.RPC_URL||"https://api.avax.network/ext/bc/C/rpc",chainId:"43114",registry:{address:aue.address,abi:aue.abi},taskRegistry:{address:nue.address,abi:nue.abi},authorization:{address:rue.address,abi:rue.abi},watchTower:{address:ru.address,abi:ru.abi}};default:throw new Error(`Unsupported environment: ${e}`)}}import{ethers as gKe}from"ethers";var yP=class{contractAddress;stakingContract;provider;signer;serviceLogger;isReadOnly;constructor(t,r,n){let a=a0(t,Tt.ETH);n instanceof gKe.JsonRpcProvider?(this.provider=n,this.signer=null,this.isReadOnly=!0):(this.provider=n.provider,this.signer=n,this.isReadOnly=!1),this.contractAddress=a.staking.address,this.stakingContract=new gKe.Contract(this.contractAddress,a.staking.abi,this.isReadOnly?this.provider:this.signer),this.serviceLogger=r}requireSigner(){if(this.isReadOnly||!this.signer)throw new Error("This operation requires a signer. Ledger was initialized in read-only mode (no private key provided).");return this.signer}getStakingContractAddress(){return this.contractAddress}async existsStake(t){return await this.stakingContract.existsStake(t)}async slash(t,r){return this.requireSigner(),(await this.stakingContract["slash(address, string)"](t,r)).wait()}};import{ethers as u8r}from"ethers";function d8r(e){return e&&typeof e.name=="string"&&typeof e.version=="string"&&typeof e.chainId=="number"&&typeof e.verifyingContract=="string"}var J5=class{provider;signer;constructor(t,r){this.provider=r.provider,this.signer=r}async signMeta(t,r,n){if(!d8r(t))throw new Error("Invalid EIP712Domain");return await this.signer.signTypedData(t,r,n)}async getCurrentNonce(){return await this.signer.getNonce()}async reSyncNonceManager(){this.signer instanceof u8r.NonceManager&&(this.signer.reset(),await this.signer.getNonce("pending"))}};import{ethers as mue,FetchRequest as p8r}from"ethers";import{inspect as m8r}from"util";import{ethers as c8r}from"ethers";var ch=class extends c8r.NonceManager{maxRetries;constructor(t,r=10){super(t),this.maxRetries=r}isNonceError(t){if(t instanceof Error){let r=t.message.toLowerCase();return t.code==="NONCE_EXPIRED"||r.includes("nonce too low")||r.includes("nonce too high")||r.includes("nonce has already been used")}return!1}async resyncNonce(){this.reset(),await this.getNonce("pending")}async sendTransaction(t){let r;for(let n=0;n<=this.maxRetries;n++)try{return await super.sendTransaction(t)}catch(a){if(r=a,this.isNonceError(a)&&n<this.maxRetries){await this.resyncNonce();continue}throw a}throw r}};var h8r=6e4,kE=class extends dh{staking;utils;signer;constructor(t,r,n){super(t,r,n);let a=a0(r,Tt.ETH),i=new mue.Network(r,a.chainId),s=new p8r(`${a.url}`);s.timeout=parseInt(process.env.RPC_TIMEOUT||"",10)||h8r;let o=new mue.JsonRpcProvider(s,i,{staticNetwork:i});if(n){let l=new mue.Wallet(n,o);this.signer=new ch(l)}else this.signer=null;try{let l=this.signer??o;this.staking=new yP(r,this.serviceLogger,l),this.utils=this.signer?new J5(r,this.signer):null}catch(l){throw new Error(`Failed to initialize Eth contracts: ${m8r(l)}`,{cause:l})}this.serviceLogger?.info(`Eth ledger initialized on network ${r} at ${a.url}${n?"":" (read-only mode)"}`)}};import{ethers as _Ke}from"ethers";import{retryAsync as hue}from"ts-retry";var bP=class{serviceLogger;provider;signer;contractAddress;nodeRegistryContract;transactionSuccess=1;EVENT_NAME="NodeRegistrationRequested";isReadOnly;constructor(t,r,n){this.serviceLogger=t;let a=a0(r,Tt.AVAX);n instanceof _Ke.JsonRpcProvider?(this.provider=n,this.signer=null,this.isReadOnly=!0):(this.provider=n.provider,this.signer=n,this.isReadOnly=!1),this.contractAddress=a.registry.address,this.nodeRegistryContract=new _Ke.Contract(this.contractAddress,a.registry.abi,this.isReadOnly?this.provider:this.signer)}requireSigner(){if(this.isReadOnly||!this.signer)throw new Error("This operation requires a signer. Ledger was initialized in read-only mode (no private key provided).");return this.signer}async getNodeRegistrationStatus(t){return await this.nodeRegistryContract.getNodeRegistrationStatus(t)}async registerNode(){this.requireSigner();let t=await(await this.nodeRegistryContract.registerNode()).wait(),r=BigInt(0);if(t.status==1){let n=t?.logs.find(a=>"eventName"in a&&a.eventName===this.EVENT_NAME);return n&&"args"in n&&(r=BigInt(n.args[1])),r}else throw new Error("Error registering the node")}async getChainId(){let{chainId:t}=await this.provider.getNetwork();return t.toString()}getRegistrationContractAddress(){return this.contractAddress}async getNodes(){return(await this.nodeRegistryContract.getNodes()).map(r=>({nodeAddress:r.nodeAddress,blockNumber:r.blockNumber,timestamp:r.timestamp}))}async getNodeCount(){return await this.nodeRegistryContract.getNodeCount()}async deRegister(t=""){this.requireSigner();let r=await hue(async()=>await(await this.nodeRegistryContract.deRegister(t)).wait(),{delay:1e3,maxTry:10,until:n=>n.message&&n.message.includes("replacement transaction underpriced")?(this.serviceLogger&&this.serviceLogger.error(`${n.message}`),!1):!0});if(r.status==this.transactionSuccess)return r;throw new Error("Error in deregister node process")}async deRegisterAddress(t,r=""){return this.requireSigner(),(await this.nodeRegistryContract.deRegisterAddress(t,r)).wait()}async getNodeAtIndex(t){let r=await this.nodeRegistryContract.getNodeAtIndex(t);return{nodeAddress:r.nodeAddress,blockNumber:r.blockNumber,timestamp:r.timestamp}}async getNodeIndexByAddress(t){return await this.nodeRegistryContract.getNodeIndexByAddress(t)}async isNodeRegistered(t){return await this.nodeRegistryContract.isNodeRegistered(t)}async deRegisterAll(){this.requireSigner(),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 n=(await hue(async()=>await this.provider.getBlock("latest"),{delay:2e3,maxTry:Number.MAX_SAFE_INTEGER,until:a=>a!=null})).number+t;await hue(async()=>await this.provider.getBlock("latest"),{delay:2e3,maxTry:Number.MAX_SAFE_INTEGER,until:a=>a!=null&&a.number>=n})}async sendSignedTransaction(t){let a=await(await this.requireSigner().sendTransaction({data:t})).wait();if(a)return a.blockHash;throw new Error("Transaction receipt is null")}async signTransaction(t){return await this.requireSigner().signTransaction(t)}async estimateGas(t){try{return await this.provider.estimateGas(t)}catch(r){throw console.error("Error estimating gas:",r),r}}};import{ethers as vP}from"ethers";import{retryAsync as xKe}from"ts-retry";var gP=class{serviceLogger;provider;signer;taskRegistryAddress;taskRegistryContract;transactionSuccess=1;isReadOnly;constructor(t,r,n){this.serviceLogger=t;let a=a0(r,Tt.AVAX);n instanceof vP.JsonRpcProvider?(this.provider=n,this.signer=null,this.isReadOnly=!0):(this.provider=n.provider,this.signer=n,this.isReadOnly=!1),this.taskRegistryAddress=a.taskRegistry.address,this.taskRegistryContract=new vP.Contract(this.taskRegistryAddress,a.taskRegistry.abi,this.isReadOnly?this.provider:this.signer)}requireSigner(){if(this.isReadOnly||!this.signer)throw new Error("This operation requires a signer. Ledger was initialized in read-only mode (no private key provided).");return 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(this.requireSigner(),(await(await this.taskRegistryContract.registerTaskNamespace(t)).wait()).status==this.transactionSuccess)return!0;throw new Error("Error registering task namespace")}async nonces(t){try{return await this.taskRegistryContract.nonces(t)}catch(r){return this.serviceLogger&&this.serviceLogger.info(`Nonces not found for address ${t}, treating as first use: ${r}`),0}}async getNamespaceOwner(t){return await this.taskRegistryContract.namespaceOwners(t)}async registerTaskNamespaceWithSignature(t){let r=this.requireSigner(),n=await this.provider.getFeeData(),a=null;n.gasPrice&&(a=n.gasPrice*2n);let s=await this.taskRegistryContract.registerTaskNamespaceWithSignature.estimateGas(t.user,t.namespace,t.deadline,t.signatureMeta,{gasPrice:a})*2n,o=await xKe(async()=>await(await this.taskRegistryContract.registerTaskNamespaceWithSignature(t.user,t.namespace,t.deadline,t.signatureMeta,{gasPrice:a,gasLimit:s})).wait(),{delay:1e3,maxTry:10,until:l=>l.messages&&(l.messages.includes("nonce too")||l.messages.includes("replacement transaction underpriced"))?(this.serviceLogger&&this.serviceLogger.error(`${l.messages}`),r instanceof vP.NonceManager&&r.reset(),!1):!0});if(o.status==this.transactionSuccess)return o;throw new Error("Error registering task namespace")}async transferTaskNamespace(t,r){if(this.requireSigner(),(await(await this.taskRegistryContract.transferTaskNamespace(t,r)).wait()).status==this.transactionSuccess)return!0;throw new Error("Error transferring task namespace")}async grantNamespaceAccess(t,r){if(this.requireSigner(),(await(await this.taskRegistryContract.grantNamespaceAccess(t,r)).wait()).status==this.transactionSuccess)return!0;throw new Error("Error granting task namespace")}async revokeNamespaceAccess(t,r){if(this.requireSigner(),(await(await this.taskRegistryContract.revokeNamespaceAccess(t,r)).wait()).status==this.transactionSuccess)return!0;throw new Error("Error revoking task namespace")}async setTaskLabel(t,r,n,a){if(this.requireSigner(),a.length>128)throw new Error("Label exceeds maximum length of 128 chars");if((await(await this.taskRegistryContract.setTaskLabel(t,r,n,a)).wait()).status==this.transactionSuccess)return!0;throw new Error("Error setting task label")}async registerTask(t,r,n){if(this.requireSigner(),(await(await this.taskRegistryContract.registerTask(t,r,n)).wait()).status==this.transactionSuccess)return!0;throw new Error("Error registering task")}async registerTaskWithSignature(t){let r=this.requireSigner(),n=await this.provider.getFeeData(),a=null;n.gasPrice&&(a=n.gasPrice*2n);let s=await this.taskRegistryContract.registerTaskWithSignature.estimateGas(t.user,t.namespace,t.taskName,t.task,t.deadline,t.signatureMeta,{gasPrice:a})*2n,o=await xKe(async()=>await(await this.taskRegistryContract.registerTaskWithSignature(t.user,t.namespace,t.taskName,t.task,t.deadline,t.signatureMeta,{gasPrice:a,gasLimit:s})).wait(),{delay:1e3,maxTry:10,until:l=>l.messages&&(l.messages.includes("nonce too")||l.messages.includes("replacement transaction underpriced"))?(this.serviceLogger&&this.serviceLogger.error(`${l.messages}`),r instanceof vP.NonceManager&&r.reset(),!1):!0});if(o.status==this.transactionSuccess)return o;throw new Error("Error registering task")}async getTask(t,r){let n=await this.taskRegistryContract.getTask(t,r);return{namespace:t,taskId:n[0][0],version:Number(n[2]),meta:n[0][1],nameSpaceOwner:n[1]}}async getTaskByLabel(t,r,n){let a=await this.taskRegistryContract.getTaskByLabel(t,r,n);return{namespace:t,taskId:a[0][0],version:Number(a[2]),label:n,meta:a[0][1],nameSpaceOwner:a[1]}}async getTaskByVersion(t,r,n){let a=await this.taskRegistryContract.getTaskByVersion(t,r,n);return{namespace:t,taskId:a[0][0],version:Number(n),meta:a[0][1],nameSpaceOwner:a[1]}}async disableTask(t,r,n){if(this.requireSigner(),(await(await this.taskRegistryContract.disableTask(t,r,n)).wait()).status==this.transactionSuccess)return!0;throw new Error("Error disabling task")}async enableTask(t,r,n){if(this.requireSigner(),(await(await this.taskRegistryContract.enableTask(t,r,n)).wait()).status==this.transactionSuccess)return!0;throw new Error("Error enabling task")}async isTaskRevoked(t){return await this.taskRegistryContract.isTaskRevoked(t)}async getLatestVersion(t,r){let n=Number(await this.taskRegistryContract.getLatestVersion(t,r));if(n==0)throw`Task (${r}) not found in namespace (${t})`;return n}async getLatestActiveVersion(t,r){return Number(await this.taskRegistryContract.getLatestActiveVersion(t,r))}};import{ethers as Z5}from"ethers";import{retryAsync as _P}from"ts-retry";var xP=class{serviceLogger;provider;signer;authorizationAddress;authorizationContract;transactionSuccess=1;isReadOnly;constructor(t,r,n){this.serviceLogger=t;let a=a0(r,Tt.AVAX);n instanceof Z5.JsonRpcProvider?(this.provider=n,this.signer=null,this.isReadOnly=!0):(this.provider=n.provider,this.signer=n,this.isReadOnly=!1),this.authorizationAddress=a.authorization.address,this.authorizationContract=new Z5.Contract(this.authorizationAddress,a.authorization.abi,this.isReadOnly?this.provider:this.signer)}requireSigner(){if(this.isReadOnly||!this.signer)throw new Error("This operation requires a signer. Ledger was initialized in read-only mode (no private key provided).");return 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){try{return await this.authorizationContract.nonces(t)}catch(r){return this.serviceLogger&&this.serviceLogger.info(`Nonces not found for address ${t}, treating as first use: ${r}`),0}}async grantAuthorization(t,r){if(this.requireSigner(),(await(await this.authorizationContract.grant(t,r)).wait()).status==this.transactionSuccess)return!0;throw new Error("Error granting authorization")}async grantAuthorizationWithSignature(t){let r=this.requireSigner(),n=await this.provider.getFeeData(),a=null;if(n.gasPrice&&(a=n.gasPrice*2n),(await _P(async()=>await(await this.authorizationContract.grantWithSignature(t.user,t.namespace,t.deadline,t.signatureMeta,{gasPrice:a})).wait(),{delay:1e3,maxTry:10,until:s=>s.messages&&(s.messages.includes("Nonce too")||s.messages.includes("replacement transaction underpriced"))?(this.serviceLogger&&this.serviceLogger.error(`${s.messages}`),r instanceof Z5.NonceManager&&r.reset(),!1):!0})).status==this.transactionSuccess)return!0;throw new Error("Error granting authorization with signature")}async revokeAuthorization(t,r){if(this.requireSigner(),(await(await this.authorizationContract.revoke(t,r)).wait()).status==this.transactionSuccess)return!0;throw new Error("Error revoking authorization")}async revokeAuthorizationWithSignature(t){let r=this.requireSigner();if((await _P(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}`),r instanceof Z5.NonceManager&&r.reset(),!1):!0})).status==this.transactionSuccess)return!0;throw new Error("Error revoking authorization with signature")}async registerAuthorization(t){if(this.requireSigner(),(await(await this.authorizationContract.register(t)).wait()).status==this.transactionSuccess)return!0;throw new Error("Error registering authorization")}async registerAuthorizationWithSignature(t){let r=this.requireSigner(),n=await this.provider.getFeeData(),a=null;n.gasPrice&&(a=n.gasPrice*2n);let s=await this.authorizationContract.registerWithSignature.estimateGas(t.user,t.apiKeyHash,t.deadline,t.signatureMeta,{gasPrice:a})*2n,o=await _P(async()=>await(await this.authorizationContract.registerWithSignature(t.user,t.apiKeyHash,t.deadline,t.signatureMeta,{gasPrice:a,gasLimit:s})).wait(),{delay:1e3,maxTry:10,until:l=>l.messages&&(l.messages.includes("Nonce too")||l.messages.includes("replacement transaction underpriced"))?(this.serviceLogger&&this.serviceLogger.error(`${l.messages}`),r instanceof Z5.NonceManager&&r.reset(),!1):!0});if(o.status==this.transactionSuccess)return o;throw new Error("Error registering authorization with signature")}async deRegisterAuthorization(t){if(this.requireSigner(),(await(await this.authorizationContract.deregister(t)).wait()).status==this.transactionSuccess)return!0;throw new Error("Error deregistering authorization")}async deRegisterAuthorizationWithSignature(t){let r=this.requireSigner();if((await _P(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}`),r instanceof Z5.NonceManager&&r.reset(),!1):!0})).status==this.transactionSuccess)return!0;throw new Error("Error deregistering authorization with signature")}async isAuthorized(t,r){return await this.authorizationContract.isAuthorized(t,r)}async getPayerAddress(t){return await this.authorizationContract.getPayer(t)}};import{ethers as yue,FetchRequest as y8r}from"ethers";import{inspect as b8r}from"util";var v8r=6e4,NE=class extends dh{nodeRegistry;taskRegistry;authorization;utils;signer;constructor(t,r,n){super(t,r,n);let a=a0(r,Tt.AVAX),i=new yue.Network(r,a.chainId),s=new y8r(`${a.url}`);s.timeout=parseInt(process.env.RPC_TIMEOUT||"",10)||v8r;let o=new yue.JsonRpcProvider(s,i,{staticNetwork:i});if(n){let l=new yue.Wallet(n,o);this.signer=new ch(l)}else this.signer=null;try{let l=this.signer??o;this.nodeRegistry=new bP(this.serviceLogger,r,l),this.taskRegistry=new gP(this.serviceLogger,r,l),this.authorization=new xP(this.serviceLogger,r,l),this.utils=this.signer?new J5(r,this.signer):null}catch(l){throw new Error(`Failed to initialize Avalanche contracts: ${b8r(l)}`,{cause:l})}this.serviceLogger?.info(`Avalanche ledger initialized on network ${r} at ${a.url}${n?"":" (read-only mode)"}`)}};import{Command as _6a,Option as x6a}from"commander";import E6a from"figlet";var L0=class{constructor(){}};import*as wP from"fs";import*as bue from"path";var EP=class extends L0{async build(t,r){let n=bue.join(process.cwd(),t,"main.js");if(!wP.existsSync(n))throw`File doesn't exist: ${n} `;wP.copyFileSync(n,bue.join(process.cwd(),`${r}/main.js`))}};import*as TP from"fs";import*as vue from"path";var SP=class extends L0{async build(t,r){let n=vue.join(process.cwd(),t,"task.py");if(!TP.existsSync(n))throw`File doesn't exist: ${n} `;TP.copyFileSync(n,vue.join(process.cwd(),`${r}/task.py`))}};import{exec as g8r}from"child_process";import*as ph from"fs";import*as AP from"path";var qP=class extends L0{async build(t,r){let n=AP.join(process.cwd(),t),a=AP.join(n,"task.wasm");if(ph.existsSync(a)&&ph.rmSync(a),await new Promise((i,s)=>{g8r(`cd ${n} && sh compile.sh`,(o,l,u)=>{o&&s(u),i(l)})}),!ph.existsSync(a))throw`File doesn't exist: ${a}`;ph.copyFileSync(a,AP.join(process.cwd(),`${r}/task.wasm`))}};import{exec as EKe}from"child_process";import*as OP from"fs";import*as X5 from"path";var IP=class extends L0{async build(t,r){await new Promise((s,o)=>{EKe("rustc --version",(l,u,d)=>{l&&o(`Rust ${d.split("error: ")[1]}`);let c=u.split(" ")[1];c!=="1.81.0"?o(`Rust version detected is: ${c}. Version must be 1.81`):EKe(`cargo build --manifest-path ${X5.join(process.cwd(),t,"Cargo.toml")} --target wasm32-wasip1`,(h,p,m)=>{h&&o(`Cargo ${m.split("error: ")[1]}`),s(p)})})});let n=t.split("/"),a=n[n.length-1]||n[n.length-2];if(!OP.existsSync(X5.join(process.cwd(),t,`/target/wasm32-wasip1/debug/${a}.wasm`)))throw`File doesn't exist: ${X5.join(process.cwd(),t,`/target/wasm32-wasip1/debug/${a}.wasm`)}. Please check that your Cargo.toml file has the same name of the directory of the task. `;OP.copyFileSync(X5.join(process.cwd(),t,`/target/wasm32-wasip1/debug/${a}.wasm`),X5.join(process.cwd(),`${r}/task.wasm`))}};import*as Q5 from"fs";import*as gue from"path";import _8r from"openapi-enforcer";var RP=class extends L0{async build(t,r){let n="manifest.json",a=gue.join(process.cwd(),t);if(!Q5.existsSync(a))throw`File doesn't exist: ${a}`;try{let s=Q5.readFileSync(a,"utf-8"),[o,l,u]=await _8r(JSON.parse(s),{fullResult:!0});if(l!==void 0)throw console.error(l),new Error(l);u!==void 0&&console.warn(u),o!==void 0&&console.log("OpenAPI manifest is valid!")}catch{throw"Error validating OpenAPI manifest"}Q5.copyFileSync(a,gue.join(process.cwd(),`${r}/${n}`))}};var PP=class{static createBuild(t){switch(t){case li.RUST:return new IP;case li.C:return new qP;case li.JS:return new EP;case X1.API:return new RP;case li.PYTHON:return new SP;default:throw"Invalid language"}}};import*as go from"fs";import*as i2 from"path";import{v4 as x4r}from"uuid";var jJe=Gt(jue(),1);i0();import*as a2 from"fs";import _4r from"path";import b4r from"axios";import{publicIp as v4r}from"public-ip";Us();a6();import{ethers as g4r}from"ethers";var B0=e=>{throw b4r.isAxiosError(e)?e.response?e.response.data.message.includes("Entitlement Validation Error")?On.USER_NO_REGISTERED:`${e.response.data.message||e.response.data}`:e.request?`Server is not responding: ${e.message}
489
- ${e.config?.method} - ${e.config?.url}`:e.message:e.message};function Vs(e,t){if(e!==e.toLowerCase())throw new Error(`${t} must be lowercase.`)}function _n(e,t){switch(t){case Tt.ETH:return Y5.create(null,nd.EVM,e,Tt.ETH,Vr("privateKey"));case Tt.AVAX:return Y5.create(null,nd.EVM,e,Tt.AVAX,Vr("privateKey"));default:throw new Error(`Unsupported blockchain: ${t}`)}}function WE(e){if(!g4r.isAddress(e)||e.length!==42||!e.startsWith("0x"))throw new Error("Must be a valid ethereum address. (ENS not supported yet)")}async function GP(){try{return await v4r({onlyHttps:!0})}catch{return"unknown"}}function Ia(){return new Date().toUTCString().replace(",","")}function CJe(e,t,r,n,a){let i=Vr("address");return{distinct_id:i,user_ip:r,date_time:Ia(),os_version:n,node_version:process.version,cli_version:a,taskId:e,input:t,wallet_address:i}}function MJe(e,t,r){let n=Vr("address");return{distinct_id:n,user_ip:e,date_time:Ia(),os_version:t,node_version:process.version,cli_version:r,wallet_address:n}}function kJe(e,t,r,n,a,i,s){let o=Vr("address");return{distinct_id:o,user_ip:a,date_time:Ia(),os_version:i,node_version:process.version,cli_version:s,taskId:e,task_name:t,namespace:r,label:n,wallet_address:o}}function NJe(e,t,r,n,a){let i=Vr("address");return{distinct_id:i,user_ip:r,date_time:Ia(),os_version:n,node_version:process.version,cli_version:a,manifest:e,authType:t,wallet_address:i}}function DJe(e,t,r,n){let a=Vr("address");return{distinct_id:a,user_ip:t,date_time:Ia(),os_version:r,node_version:process.version,cli_version:n,manifest:e,wallet_address:a}}function $Je(e,t,r,n,a,i,s){let o=Vr("address");return{distinct_id:o,user_ip:a,date_time:Ia(),os_version:i,node_version:process.version,cli_version:s,taskId:e,namespace:t,taskname:r,authType:n,wallet_address:o}}function hh(e,t,r,n,a){let i=Vr("address"),s={distinct_id:i,user_ip:t,date_time:Ia(),os_version:r,node_version:process.version,cli_version:n,namespace:e,wallet_address:i};return a&&(s.address_to=a),s}function GE(e,t,r,n,a,i,s){let o=Vr("address");return{distinct_id:o,user_ip:r,date_time:Ia(),os_version:n,node_version:process.version,cli_version:a,namespace:e,wallet_address:o,taskname:t,label:i,version:s}}function KP(e,t,r,n){let a=Vr("address");return{distinct_id:a,user_ip:t,date_time:Ia(),os_version:r,node_version:process.version,cli_version:n,api_key:e,wallet_address:a}}function LJe(e,t,r,n,a){let i=Vr("address");return{distinct_id:i,user_ip:r,date_time:Ia(),os_version:n,node_version:process.version,cli_version:a,namespace:e,address_check:t,wallet_address:i}}function ss(){let e="production";return process.env.TRUEBIT_ENV==="local"?e="local":process.env.TRUEBIT_ENV==="staging"?e="staging":process.env.TRUEBIT_ENV==="testnet"&&(e="testnet"),e}a6();Us();Fc();function F0(e){let t=Fs(),r=t!==null,n;switch(!r||r&&(!t.privateKey||!t.address)?n=1:n=2,n){case 1:console.error(On.USER_NO_REGISTERED),process.exit(1);break;case 2:{e=Xo.createSignedBody(e,t.privateKey,t.address);break}}return e}async function BJe(e,t){if(!a2.existsSync(e))throw"Invalid source code path";let n=a2.readdirSync(e);if(n.length===0)throw"No files found in directory";let a=new jJe.default;for(let u of n){let d=e+`/${u}`,c=a2.readFileSync(d),h=_4r.basename(d);a.append("files",c,h)}a.append("lang",t);let i={files:n,lang:t},s=F0(i),o=await fd();return a.append("walletAddress",s.walletAddress),a.append("signature",JSON.stringify(s.signature)),a.append("fmpayload",JSON.stringify(i)),(await o.post("api/filesystem/pushLocal",a,{headers:{...a.getHeaders()}}).catch(u=>{B0(u)})).data}var Fue=async(e,t)=>{let n=`./tmp.${x4r()}`;try{go.mkdirSync(n);let a=i2.join(process.cwd(),t);if(!go.existsSync(a))throw"Task path doesn't exist";if(e===li.C||e===li.RUST||e===li.JS||e===li.PYTHON){let l="config.json",u=i2.join(a,l);go.existsSync(u)||go.writeFileSync(u,JSON.stringify({run:{limits:{call:VNe,frame:HNe,gas:UNe,memory:zNe}}})),go.copyFileSync(u,i2.join(n,l));let d="fs.tar",c=i2.join(a,d);go.existsSync(c)&&go.copyFileSync(c,i2.join(n,d))}await PP.createBuild(e).build(t,n);let o=await BJe(n,e);return go.rmSync(n,{recursive:!0}),o}catch(a){throw go.rmSync(n,{recursive:!0}),a}};import*as uBt from"node:fs";var djt=Gt(jue(),1);import LTe from"axios";import Yca from"node:https";var{parse:E4r,stringify:w4r}=JSON,{keys:oSa}=Object,S4r=String,T4r="string";var FJe="object",A4r=(e,t)=>t;var UJe=(e,t,r)=>{let n=S4r(t.push(r)-1);return e.set(r,n),n};var q4r=(e,t,r)=>{let n=t&&typeof t===FJe?(d,c)=>d===""||-1<t.indexOf(d)?c:void 0:t||A4r,a=new Map,i=[],s=[],o=+UJe(a,i,n.call({"":e},"",e)),l=!o;for(;o<i.length;)l=!0,s[o]=w4r(i[o++],u,r);return"["+s.join(",")+"]";function u(d,c){if(l)return l=!l,c;let h=n.call(this,d,c);switch(typeof h){case FJe:if(h===null)return h;case T4r:return a.get(h)||UJe(a,i,h)}return h}},Uue=e=>E4r(q4r(e));var Jca=Gt(Ub(),1),h3i=Gt(Une(),1),g3i=Gt(Ub(),1);I7();import"ethers";I7();import"ethers";var U3i=Gt(die(),1),Wjt=Gt(pie(),1),rAe=Gt(js(),1),G3i=Gt(Ap(),1),u1=Gt(Ip(),1),De=Gt(js(),1),Vo=Gt(js(),1),Y3i=Gt(Ap(),1),Ie=Gt(js(),1),ac=Gt(Ip(),1),J3i=Gt(Ap(),1),Ve=Gt(js(),1),vi=Gt(Ip(),1),Z3i=Gt(Ap(),1),w0=Gt(js(),1),iAe=Gt(Ip(),1),st=Gt(js(),1);import"node:os";import{v4 as ppa}from"uuid";import"axios";var tBt=Gt(VLt(),1);import"axios";import eBt from"openapi-enforcer";import{isIP as Tpa}from"node:net";var Kca=Object.defineProperty,be=(e,t)=>Kca(e,"name",{value:t,configurable:!0}),{format:y3i,createLogger:b3i,transports:v3i}=Jca;process.setMaxListeners(0);function cjt(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}be(cjt,"isBytes");function o4(e,t=""){if(!Number.isSafeInteger(e)||e<0){let r=t&&`"${t}" `;throw new Error(`${r}expected integer >= 0, got ${e}`)}}be(o4,"anumber");function f4(e,t,r=""){let n=cjt(e),a=e?.length,i=t!==void 0;if(!n||i&&a!==t){let s=r&&`"${r}" `,o=i?` of length ${t}`:"",l=n?`length=${a}`:`type=${typeof e}`;throw new Error(s+"expected Uint8Array"+o+", got "+l)}return e}be(f4,"abytes");function pjt(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash must wrapped by utils.createHasher");o4(e.outputLen),o4(e.blockLen)}be(pjt,"ahash");function BTe(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}be(BTe,"aexists");function mjt(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}be(mjt,"clean");var hjt=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",Zca=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function KTe(e){if(f4(e),hjt)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=Zca[e[r]];return t}be(KTe,"bytesToHex");var mm={_0:48,_9:57,A:65,F:70,a:97,f:102};function FTe(e){if(e>=mm._0&&e<=mm._9)return e-mm._0;if(e>=mm.A&&e<=mm.F)return e-(mm.A-10);if(e>=mm.a&&e<=mm.f)return e-(mm.a-10)}be(FTe,"asciiToBase16");function yjt(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(hjt)return Uint8Array.fromHex(e);let t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let a=0,i=0;a<r;a++,i+=2){let s=FTe(e.charCodeAt(i)),o=FTe(e.charCodeAt(i+1));if(s===void 0||o===void 0){let l=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+l+'" at index '+i)}n[a]=s*16+o}return n}be(yjt,"hexToBytes");var M3i=BigInt(2**32-1),bjt=BigInt(0);function vjt(e){if(typeof e=="bigint"){if(!Xca(e))throw new Error("positive bigint expected, got "+e)}else o4(e);return e}be(vjt,"abignumber");function YTe(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?bjt:BigInt("0x"+e)}be(YTe,"hexToNumber");function gjt(e){return YTe(KTe(e))}be(gjt,"bytesToNumberBE");function _jt(e){return YTe(KTe(Ejt(f4(e)).reverse()))}be(_jt,"bytesToNumberLE");function JTe(e,t){o4(t),e=vjt(e);let r=yjt(e.toString(16).padStart(t*2,"0"));if(r.length!==t)throw new Error("number too large");return r}be(JTe,"numberToBytesBE");function xjt(e,t){return JTe(e,t).reverse()}be(xjt,"numberToBytesLE");function Ejt(e){return Uint8Array.from(e)}be(Ejt,"copyBytes");var Xca=be(e=>typeof e=="bigint"&&bjt<=e,"isPosBig"),Zs=BigInt(0),Uo=BigInt(1),Ly=BigInt(2),wjt=BigInt(3),Sjt=BigInt(4),Tjt=BigInt(5),Qca=BigInt(7),Ajt=BigInt(8),epa=BigInt(9),qjt=BigInt(16);function Iu(e,t){let r=e%t;return r>=Zs?r:t+r}be(Iu,"mod");function E0(e,t,r){let n=e;for(;t-- >Zs;)n*=n,n%=r;return n}be(E0,"pow2");function UTe(e,t){if(e===Zs)throw new Error("invert: expected non-zero number");if(t<=Zs)throw new Error("invert: expected positive modulus, got "+t);let r=Iu(e,t),n=t,a=Zs,i=Uo,s=Uo,o=Zs;for(;r!==Zs;){let l=n/r,u=n%r,d=a-s*l,c=i-o*l;n=r,r=u,a=s,i=o,s=d,o=c}if(n!==Uo)throw new Error("invert: does not exist");return Iu(a,t)}be(UTe,"invert");function Iee(e,t,r){if(!e.eql(e.sqr(t),r))throw new Error("Cannot find square root")}be(Iee,"assertIsSquare");function ZTe(e,t){let r=(e.ORDER+Uo)/Sjt,n=e.pow(t,r);return Iee(e,n,t),n}be(ZTe,"sqrt3mod4");function Ijt(e,t){let r=(e.ORDER-Tjt)/Ajt,n=e.mul(t,Ly),a=e.pow(n,r),i=e.mul(t,a),s=e.mul(e.mul(i,Ly),a),o=e.mul(i,e.sub(s,e.ONE));return Iee(e,o,t),o}be(Ijt,"sqrt5mod8");function Ojt(e){let t=Oee(e),r=XTe(e),n=r(t,t.neg(t.ONE)),a=r(t,n),i=r(t,t.neg(n)),s=(e+Qca)/qjt;return(o,l)=>{let u=o.pow(l,s),d=o.mul(u,n),c=o.mul(u,a),h=o.mul(u,i),p=o.eql(o.sqr(d),l),m=o.eql(o.sqr(c),l);u=o.cmov(u,d,p),d=o.cmov(h,c,m);let b=o.eql(o.sqr(d),l),v=o.cmov(u,d,b);return Iee(o,v,l),v}}be(Ojt,"sqrt9mod16");function XTe(e){if(e<wjt)throw new Error("sqrt is not defined for small field");let t=e-Uo,r=0;for(;t%Ly===Zs;)t/=Ly,r++;let n=Ly,a=Oee(e);for(;VTe(a,n)===1;)if(n++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(r===1)return ZTe;let i=a.pow(n,t),s=(t+Uo)/Ly;return be(function(o,l){if(o.is0(l))return l;if(VTe(o,l)!==1)throw new Error("Cannot find square root");let u=r,d=o.mul(o.ONE,i),c=o.pow(l,t),h=o.pow(l,s);for(;!o.eql(c,o.ONE);){if(o.is0(c))return o.ZERO;let p=1,m=o.sqr(c);for(;!o.eql(m,o.ONE);)if(p++,m=o.sqr(m),p===u)throw new Error("Cannot find square root");let b=Uo<<BigInt(u-p-1),v=o.pow(d,b);u=p,d=o.sqr(v),c=o.mul(c,d),h=o.mul(h,v)}return h},"tonelliSlow")}be(XTe,"tonelliShanks");function Rjt(e){return e%Sjt===wjt?ZTe:e%Ajt===Tjt?Ijt:e%qjt===epa?Ojt(e):XTe(e)}be(Rjt,"FpSqrt");function Pjt(e,t,r){if(r<Zs)throw new Error("invalid exponent, negatives unsupported");if(r===Zs)return e.ONE;if(r===Uo)return t;let n=e.ONE,a=t;for(;r>Zs;)r&Uo&&(n=e.mul(n,a)),a=e.sqr(a),r>>=Uo;return n}be(Pjt,"FpPow");function Cjt(e,t,r=!1){let n=new Array(t.length).fill(r?e.ZERO:void 0),a=t.reduce((s,o,l)=>e.is0(o)?s:(n[l]=s,e.mul(s,o)),e.ONE),i=e.inv(a);return t.reduceRight((s,o,l)=>e.is0(o)?s:(n[l]=e.mul(s,n[l]),e.mul(s,o)),i),n}be(Cjt,"FpInvertBatch");function VTe(e,t){let r=(e.ORDER-Uo)/Ly,n=e.pow(t,r),a=e.eql(n,e.ONE),i=e.eql(n,e.ZERO),s=e.eql(n,e.neg(e.ONE));if(!a&&!i&&!s)throw new Error("invalid Legendre symbol result");return a?1:i?0:-1}be(VTe,"FpLegendre");function Mjt(e,t){t!==void 0&&o4(t);let r=t!==void 0?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}be(Mjt,"nLength");var tpa=class{static{be(this,"_Field")}ORDER;BITS;BYTES;isLE;ZERO=Zs;ONE=Uo;_lengths;_sqrt;_mod;constructor(e,t={}){if(e<=Zs)throw new Error("invalid field: expected ORDER > 0, got "+e);let r;this.isLE=!1,t!=null&&typeof t=="object"&&(typeof t.BITS=="number"&&(r=t.BITS),typeof t.sqrt=="function"&&(this.sqrt=t.sqrt),typeof t.isLE=="boolean"&&(this.isLE=t.isLE),t.allowedLengths&&(this._lengths=t.allowedLengths?.slice()),typeof t.modFromBytes=="boolean"&&(this._mod=t.modFromBytes));let{nBitLength:n,nByteLength:a}=Mjt(e,r);if(a>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");this.ORDER=e,this.BITS=n,this.BYTES=a,this._sqrt=void 0,Object.preventExtensions(this)}create(e){return Iu(e,this.ORDER)}isValid(e){if(typeof e!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof e);return Zs<=e&&e<this.ORDER}is0(e){return e===Zs}isValidNot0(e){return!this.is0(e)&&this.isValid(e)}isOdd(e){return(e&Uo)===Uo}neg(e){return Iu(-e,this.ORDER)}eql(e,t){return e===t}sqr(e){return Iu(e*e,this.ORDER)}add(e,t){return Iu(e+t,this.ORDER)}sub(e,t){return Iu(e-t,this.ORDER)}mul(e,t){return Iu(e*t,this.ORDER)}pow(e,t){return Pjt(this,e,t)}div(e,t){return Iu(e*UTe(t,this.ORDER),this.ORDER)}sqrN(e){return e*e}addN(e,t){return e+t}subN(e,t){return e-t}mulN(e,t){return e*t}inv(e){return UTe(e,this.ORDER)}sqrt(e){return this._sqrt||(this._sqrt=Rjt(this.ORDER)),this._sqrt(this,e)}toBytes(e){return this.isLE?xjt(e,this.BYTES):JTe(e,this.BYTES)}fromBytes(e,t=!1){f4(e);let{_lengths:r,BYTES:n,isLE:a,ORDER:i,_mod:s}=this;if(r){if(!r.includes(e.length)||e.length>n)throw new Error("Field.fromBytes: expected "+r+" bytes, got "+e.length);let l=new Uint8Array(n);l.set(e,a?0:l.length-e.length),e=l}if(e.length!==n)throw new Error("Field.fromBytes: expected "+n+" bytes, got "+e.length);let o=a?_jt(e):gjt(e);if(s&&(o=Iu(o,i)),!t&&!this.isValid(o))throw new Error("invalid field element: outside of range 0..ORDER");return o}invertBatch(e){return Cjt(this,e)}cmov(e,t,r){return r?t:e}};function Oee(e,t={}){return new tpa(e,t)}be(Oee,"Field");var kjt=class{static{be(this,"_HMAC")}oHash;iHash;blockLen;outputLen;finished=!1;destroyed=!1;constructor(e,t){if(pjt(e),f4(t,void 0,"key"),this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let r=this.blockLen,n=new Uint8Array(r);n.set(t.length>r?e.create().update(t).digest():t);for(let a=0;a<n.length;a++)n[a]^=54;this.iHash.update(n),this.oHash=e.create();for(let a=0;a<n.length;a++)n[a]^=106;this.oHash.update(n),mjt(n)}update(e){return BTe(this),this.iHash.update(e),this}digestInto(e){BTe(this),f4(e,this.outputLen,"output"),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||=Object.create(Object.getPrototypeOf(this),{});let{oHash:t,iHash:r,finished:n,destroyed:a,blockLen:i,outputLen:s}=this;return e=e,e.finished=n,e.destroyed=a,e.blockLen=i,e.outputLen=s,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}},rpa=be((e,t,r)=>new kjt(e,t).update(r).digest(),"hmac");rpa.create=(e,t)=>new kjt(e,t);var k3i=BigInt(0),N3i=BigInt(1),D3i=BigInt(2),$3i=BigInt(3),L3i=BigInt(4),Njt={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},j3i={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},HLt=BigInt(2);function Djt(e){let t=Njt.p,r=BigInt(3),n=BigInt(6),a=BigInt(11),i=BigInt(22),s=BigInt(23),o=BigInt(44),l=BigInt(88),u=e*e*e%t,d=u*u*e%t,c=E0(d,r,t)*d%t,h=E0(c,r,t)*d%t,p=E0(h,HLt,t)*u%t,m=E0(p,a,t)*p%t,b=E0(m,i,t)*m%t,v=E0(b,o,t)*b%t,_=E0(v,l,t)*v%t,w=E0(_,o,t)*b%t,S=E0(w,r,t)*d%t,A=E0(S,s,t)*m%t,W=E0(A,n,t)*u%t,B=E0(W,HLt,t);if(!zLt.eql(zLt.sqr(B),e))throw new Error("Cannot find square root");return B}be(Djt,"sqrtMod");var zLt=Oee(Njt.p,{sqrt:Djt});function $jt(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}be($jt,"isBytes2");function yA(e,t,r=""){let n=$jt(e),a=e?.length,i=t!==void 0;if(!n||i&&a!==t){let s=r&&`"${r}" `,o=i?` of length ${t}`:"",l=n?`length=${a}`:`type=${typeof e}`;throw new Error(s+"expected Uint8Array"+o+", got "+l)}return e}be(yA,"abytes2");function QTe(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}be(QTe,"u32");function bA(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}be(bA,"clean2");function Ljt(e){return e.byteOffset%4===0}be(Ljt,"isAligned32");function jjt(e){return Uint8Array.from(e)}be(jjt,"copyBytes2");var Qd=16,npa=283;function eAe(e){if(![16,24,32].includes(e.length))throw new Error('"aes key" expected Uint8Array of length 16/24/32, got length='+e.length)}be(eAe,"validateKeyLength");function Ree(e){return e<<1^npa&-(e>>7)}be(Ree,"mul2");function HTe(e,t){let r=0;for(;t>0;t>>=1)r^=e&-(t&1),e=Ree(e);return r}be(HTe,"mul");var apa=(()=>{let e=new Uint8Array(256);for(let r=0,n=1;r<256;r++,n^=Ree(n))e[r]=n;let t=new Uint8Array(256);t[0]=99;for(let r=0;r<255;r++){let n=e[255-r];n|=n<<8,t[e[r]]=(n^n>>4^n>>5^n>>6^n>>7^99)&255}return bA(e),t})(),ipa=be(e=>e<<24|e>>>8,"rotr32_8"),jTe=be(e=>e<<8|e>>>24,"rotl32_8");function Bjt(e,t){if(e.length!==256)throw new Error("Wrong sbox length");let r=new Uint32Array(256).map((u,d)=>t(e[d])),n=r.map(jTe),a=n.map(jTe),i=a.map(jTe),s=new Uint32Array(256*256),o=new Uint32Array(256*256),l=new Uint16Array(256*256);for(let u=0;u<256;u++)for(let d=0;d<256;d++){let c=u*256+d;s[c]=r[u]^n[d],o[c]=a[u]^i[d],l[c]=e[u]<<8|e[d]}return{sbox:e,sbox2:l,T0:r,T1:n,T2:a,T3:i,T01:s,T23:o}}be(Bjt,"genTtable");var Fjt=Bjt(apa,e=>HTe(e,3)<<24|e<<16|e<<8|HTe(e,2)),spa=(()=>{let e=new Uint8Array(16);for(let t=0,r=1;t<16;t++,r=Ree(r))e[t]=r;return e})();function Ujt(e){yA(e);let t=e.length;eAe(e);let{sbox2:r}=Fjt,n=[];Ljt(e)||n.push(e=jjt(e));let a=QTe(e),i=a.length,s=be(l=>i4(r,l,l,l,l),"subByte"),o=new Uint32Array(t+28);o.set(a);for(let l=i;l<o.length;l++){let u=o[l-1];l%i===0?u=s(ipa(u))^spa[l/i-1]:i>6&&l%i===4&&(u=s(u)),o[l]=o[l-i]^u}return bA(...n),o}be(Ujt,"expandKeyLE");function mA(e,t,r,n,a,i){return e[r<<8&65280|n>>>8&255]^t[a>>>8&65280|i>>>24&255]}be(mA,"apply0123");function i4(e,t,r,n,a){return e[t&255|r&65280]|e[n>>>16&255|a>>>16&65280]<<16}be(i4,"applySbox");function Vjt(e,t,r,n,a){let{sbox2:i,T01:s,T23:o}=Fjt,l=0;t^=e[l++],r^=e[l++],n^=e[l++],a^=e[l++];let u=e.length/4-2;for(let m=0;m<u;m++){let b=e[l++]^mA(s,o,t,r,n,a),v=e[l++]^mA(s,o,r,n,a,t),_=e[l++]^mA(s,o,n,a,t,r),w=e[l++]^mA(s,o,a,t,r,n);t=b,r=v,n=_,a=w}let d=e[l++]^i4(i,t,r,n,a),c=e[l++]^i4(i,r,n,a,t),h=e[l++]^i4(i,n,a,t,r),p=e[l++]^i4(i,a,t,r,n);return{s0:d,s1:c,s2:h,s3:p}}be(Vjt,"encrypt");function Hjt(e){return e instanceof Uint32Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint32Array"}be(Hjt,"isBytes32");function wee(e,t){if(yA(t,16,"block"),!Hjt(e))throw new Error("_encryptBlock accepts result of expandKeyLE");let r=QTe(t),{s0:n,s1:a,s2:i,s3:s}=Vjt(e,r[0],r[1],r[2],r[3]);return r[0]=n,r[1]=a,r[2]=i,r[3]=s,t}be(wee,"encryptBlock");function zTe(e){let t=0;for(let r=Qd-1;r>=0;r--){let n=(e[r]&128)>>>7;e[r]=e[r]<<1|t,t=n}return t&&(e[Qd-1]^=135),e}be(zTe,"dbl");function hA(e,t){if(e.length!==t.length)throw new Error("xorBlock: blocks must have same length");for(let r=0;r<e.length;r++)e[r]=e[r]^t[r];return e}be(hA,"xorBlock");var zjt=class{static{be(this,"_CMAC")}buffer;destroyed;k1;k2;xk;constructor(e){yA(e),eAe(e),this.xk=Ujt(e),this.buffer=new Uint8Array(0),this.destroyed=!1;let t=new Uint8Array(Qd);wee(this.xk,t),this.k1=zTe(t),this.k2=zTe(new Uint8Array(this.k1))}update(e){let{destroyed:t,buffer:r}=this;if(t)throw new Error("CMAC instance was destroyed");yA(e);let n=new Uint8Array(r.length+e.length);return n.set(r),n.set(e,r.length),this.buffer=n,this}digest(){if(this.destroyed)throw new Error("CMAC instance was destroyed");let{buffer:e}=this,t=e.length,r=Math.ceil(t/Qd),n;r===0?(r=1,n=!1):n=t%Qd===0;let a=(r-1)*Qd,i=e.subarray(a),s;if(n)s=hA(new Uint8Array(i),this.k1);else{let l=new Uint8Array(Qd);l.set(i),l[i.length]=128,s=hA(l,this.k2)}let o=new Uint8Array(Qd);for(let l=0;l<r-1;l++){let u=e.subarray(l*Qd,(l+1)*Qd);hA(o,u),wee(this.xk,o)}return hA(o,s),wee(this.xk,o),bA(s),o}destroy(){let{buffer:e,destroyed:t,xk:r,k1:n,k2:a}=this;t||(this.destroyed=!0,bA(e,r,n,a))}},opa=be((e,t)=>new zjt(e).update(t).digest(),"cmac");opa.create=e=>new zjt(e);var See;(function(e){e.RUST="rs",e.C="c",e.JS="js",e.API="api",e.PYTHON="py"})(See||(See={}));var WTe;(function(e){e.API="api"})(WTe||(WTe={}));var fpa={...See,...WTe},B3i=Object.values(fpa),F3i=Object.values(See),WLt;(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"})(WLt||(WLt={}));var GLt;(function(e){e.JSON="json",e.WASM="wasm",e.PLAIN_TXT="txt",e.JS="js",e.DTA="dta",e.PY="py",e.TAR="tar"})(GLt||(GLt={}));var KLt;(function(e){e.SYNC="sync",e.ASYNC="async"})(KLt||(KLt={}));var YLt;(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"})(YLt||(YLt={}));var ec;(function(e){e.FAILED="failed",e.SUCCEED="succeed",e.RUNNING="running"})(ec||(ec={}));var JLt;(function(e){e.ERROR="Error",e.SUCCESS="Success",e.RUNNING="Running"})(JLt||(JLt={}));var ZLt;(function(e){e.ERROR="Error",e.SUCCESS="Success",e.RUNNING="Running",e.INDETERMINATE="Indeterminate"})(ZLt||(ZLt={}));var XLt;(function(e){e.MINIO="minio",e.S3="s3"})(XLt||(XLt={}));var tAe=class{static{be(this,"AuthMethod")}tokens=[];authInputs;parse(e,t){let r=this.parseKeyValuePairs(t);if(e.length==0){this.authInputs=r;return}let n=Object.keys(r);if(e.every(a=>n.includes(a))){let a={};for(let i of e)a[i]=r[i];this.authInputs=a}else throw new Error(`Invalid authString: ${e} are required`)}parseKeyValuePairs(e){try{let t=e.split(","),r={};for(let n of t){let[a,i]=n.split(":");r[a.trim()]=i.trim()}return r}catch{throw new Error("Invalid auth string")}}},lpa=class extends tAe{static{be(this,"AwsSignature")}tokens=["accessKey","secretKey"];constructor(e){super(),this.parse(this.tokens,e)}authHeaders(e){return Wjt.default.sign(e,{accessKeyId:this.authInputs.accessKey,secretAccessKey:this.authInputs.secretKey}).headers||{}}},upa=class extends tAe{static{be(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}`)}`}}},dpa=class extends tAe{static{be(this,"CustomHeader")}tokens=[];constructor(e){super(),this.parse([],e)}authHeaders(e){return{...this.authInputs}}},s4;(function(e){e.AWS_SIGNATURE="aws-signature",e.BASIC_AUTH="basic-auth",e.CUSTOM_HEADER="custom-header"})(s4||(s4={}));var cpa=be((e,t)=>{switch(e){case s4.AWS_SIGNATURE:return new lpa(t);case s4.BASIC_AUTH:return new upa(t);case s4.CUSTOM_HEADER:return new dpa(t);default:throw new Error(`Invalid authentication method specified. Should be one of <${Object.values(s4)}>`)}},"createApiAuthParser"),QLt;(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.REQUEST_SLASH="request_slash",e.RETRY_SLASH="retry_slash",e.RETRY_DEREGISTER="retry_deregister",e.ENTITLEMENT="entitlement",e.HEALTH_CHECK="health_check",e.TASK_REQUEST_WALLET="task_request_wallet",e.TASK_REQUEST_API_KEY="task_request_api_key",e.TASK_REQUEST_BLOCKCHAIN="task_request_blockchain",e.GET_EXECUTION_STATUS="get_execution_status",e.CHECK_DUPLICATED_EXECUTION="check_duplicated_execution",e.CHECK_DUPLICATED_EXECUTION_RESPONSE="check_duplicated_execution_response",e.GET_INVOICES_COUNT="get_invoices_count",e.GET_INVOICES_COUNT_RESPONSE="get_invoices_count_response",e.GET_EXECUTION_TRANSCRIPT="get_execution_transcript",e.GET_EXECUTION_TRANSCRIPT_RESPONSE="get_execution_transcript_response",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",e.HTTP_GATEWAY_TASK_STATUS_RESPONSE="http_gateway_task_status_response",e.HTTP_GATEWAY_TASK_RESPONSE="http_gateway_task_response"})(QLt||(QLt={}));var af;(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.RETRY_SLASH="retry_slash",e.RETRY_DEREGISTER="retry_deregister",e.TASK_REQUEST_WALLET="task_request_wallet",e.TASK_REQUEST_BLOCKCHAIN="task_request_blockchain",e.TASK_REQUEST_API_KEY="task_request_api_key",e.GET_EXECUTION_STATUS="get_execution_status",e.TASK_RESPONSE_HTTP="task_response_http",e.TASK_RESPONSE_BLOCKCHAIN="task_response_blockchain",e.CHECK_DUPLICATED_EXECUTION="check_duplicated_execution",e.CHECK_DUPLICATED_EXECUTION_RESPONSE="check_duplicated_execution_response",e.GET_INVOICES_COUNT="get_invoices_count",e.GET_INVOICES_COUNT_RESPONSE="get_invoices_count_response",e.GET_EXECUTION_TRANSCRIPT="get_execution_transcript",e.GET_EXECUTION_TRANSCRIPT_RESPONSE="get_execution_transcript_response"})(af||(af={}));var ejt;(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"})(ejt||(ejt={}));var tjt;(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.RETRY_SLASH="retry_slash",e.RETRY_DEREGISTER="retry_deregister",e.TASK_REQUEST_WALLET="task_request_wallet",e.TASK_REQUEST_API_KEY="task_request_api_key",e.TASK_REQUEST_BLOCKCHAIN="task_request_blockchain",e.GET_EXECUTION_STATUS="get_execution_status",e.TASK_RESPONSE_HTTP="task_response_http",e.TASK_RESPONSE_BLOCKCHAIN="task_response_blockchain",e.CHECK_DUPLICATED_EXECUTION="check_duplicated_execution",e.CHECK_DUPLICATED_EXECUTION_RESPONSE="check_duplicated_execution_response",e.GET_INVOICES_COUNT="get_invoices_count",e.GET_INVOICES_COUNT_RESPONSE="get_invoices_count_response",e.GET_EXECUTION_TRANSCRIPT="get_execution_transcript",e.GET_EXECUTION_TRANSCRIPT_RESPONSE="get_execution_transcript_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"})(tjt||(tjt={}));var rjt;(function(e){e.VALIDATION_ERROR="validation_error"})(rjt||(rjt={}));var Tee;(function(e){e.GAME_PENDING="GamePending",e.READY_FOR_INVOICE="ReadyForInvoice",e.CONTROL_NODE_TIMEOUT="ControlNodeTimeout",e.ERROR="Error"})(Tee||(Tee={}));var njt;(function(e){e.HTTP_GATEWAY_TASK_RESPONSE="http_gateway_task_response",e.HTTP_GATEWAY_TASK_STATUS_RESPONSE="http_gateway_task_status_response"})(njt||(njt={}));var ajt;(function(e){let t;(function(n){n.Pay="pay",n.Charge="charge",n.Penalty="penalty"})(t=e.Operation||(e.Operation={}));let r;(function(n){n.IS_USER_REGISTER="isUserRegister"})(r=e.EntitlementOperation||(e.EntitlementOperation={}))})(ajt||(ajt={}));var ijt;(function(e){e.Pay="pay",e.Charge="charge",e.Penalty="penalty"})(ijt||(ijt={}));var W3i=[af.TASK_SOLVED,af.TASK_CREATED,af.API_TASK_CREATED,af.NODE_OUTCOME,af.SOLUTIONS_REVEALED,af.REVEAL_SOLUTIONS,af.API_OUTCOME,af.EXECUTION_COMPLETED,af.EXECUTION_METADATA,af.ADJUDICATION_OUTCOME],sjt;(function(e){e.EXECUTE_TRANSACTION="EXECUTE_TRANSACTION",e.GET_TRANSACTION="GET_TRANSACTION",e.GET_TRANSACTION_BY_HASH="GET_TRANSACTION_BY_HASH",e.GET_TRANSACTIONS_BY_STATUS="GET_TRANSACTIONS_BY_STATUS",e.REGISTER_USER="REGISTER_USER",e.AUTH_CHECK_WALLET="AUTH_CHECK_WALLET",e.AUTH_CHECK_API_KEY="AUTH_CHECK_API_KEY",e.AUTH_CHECK_BLOCKCHAIN="AUTH_CHECK_BLOCKCHAIN",e.RESOLVE_AUTHORIZATION="RESOLVE_AUTHORIZATION",e.FETCH_NODES="FETCH_NODES"})(sjt||(sjt={}));var ojt;(function(e){e.AUTHORIZATION_REGISTER="authorization.register",e.AUTHORIZATION_DEREGISTER="authorization.deregister",e.TASKREGISTRY_REGISTER_NAMESPACE="taskregistry.registerNamespace",e.TASKREGISTRY_REGISTER_TASK="taskregistry.registerTask",e.STAKING_SLASH="staking.slash",e.NODEREGISTRY_DEREGISTER="noderegistry.deregister",e.WATCHTOWER_CALLBACK="watchtower.callback"})(ojt||(ojt={}));function l1(){return function(e,t){(0,rAe.registerDecorator)({name:"IsUnixTimestamp",target:e.constructor,propertyName:t,validator:{validate(r){let n=r,a=new Date(n);return!isNaN(a.getTime())&&n>16725312e5}}})}}be(l1,"IsUnixTimestamp");function nAe(){return function(e,t){(0,rAe.registerDecorator)({name:"IsUnixTimestamp",target:e.constructor,propertyName:t,validator:{validate(r){let n=r,a=new Date(n);return!isNaN(a.getTime())&&n>1672531200}}})}}be(nAe,"IsUnixTimestampSeconds");var Qt=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},er=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},fjt;(function(e){e.FREE="free",e.DEV="dev",e.UNLIMITED="unlimited"})(fjt||(fjt={}));var o1=class{static{be(this,"EncryptedSolution")}iv;ephemPublicKey;ciphertext;mac;constructor(e,t,r,n){this.iv=e,this.ephemPublicKey=t,this.ciphertext=r,this.mac=n}};Qt([(0,De.IsNotEmpty)(),(0,De.IsString)(),er("design:type",String)],o1.prototype,"iv",void 0);Qt([(0,De.IsNotEmpty)(),(0,De.IsString)(),er("design:type",String)],o1.prototype,"ephemPublicKey",void 0);Qt([(0,De.IsNotEmpty)(),(0,De.IsString)(),er("design:type",String)],o1.prototype,"ciphertext",void 0);Qt([(0,De.IsNotEmpty)(),(0,De.IsString)(),er("design:type",String)],o1.prototype,"mac",void 0);var qn=class{static{be(this,"Signature")}v;r;s;constructor(e,t,r){this.v=e,this.r=t,this.s=r}};Qt([(0,De.IsNotEmpty)(),(0,De.IsNumber)(),er("design:type",Number)],qn.prototype,"v",void 0);Qt([(0,De.IsNotEmpty)(),(0,De.IsString)(),er("design:type",String)],qn.prototype,"r",void 0);Qt([(0,De.IsNotEmpty)(),(0,De.IsString)(),er("design:type",String)],qn.prototype,"s",void 0);var l4=class{static{be(this,"ExecutionOutputMeteringLast")}memoryGrowDelta;call;frame;steps;constructor(e,t,r,n){this.call=e,this.frame=t,this.steps=r,this.memoryGrowDelta=n}};Qt([(0,De.IsNumber)(),(0,De.IsOptional)(),er("design:type",Number)],l4.prototype,"memoryGrowDelta",void 0);Qt([(0,De.IsNumber)(),(0,De.IsNotEmpty)(),er("design:type",Number)],l4.prototype,"call",void 0);Qt([(0,De.IsNumber)(),(0,De.IsNotEmpty)(),er("design:type",Number)],l4.prototype,"frame",void 0);Qt([(0,De.IsNumber)(),(0,De.IsNotEmpty)(),er("design:type",Number)],l4.prototype,"steps",void 0);var u4=class{static{be(this,"ExecutionOutputMeteringLimits")}call;frame;gas;memory;constructor(e,t,r,n){this.call=e,this.frame=t,this.gas=r,this.memory=n}};Qt([(0,De.IsNumber)(),(0,De.IsNotEmpty)(),er("design:type",Number)],u4.prototype,"call",void 0);Qt([(0,De.IsNumber)(),(0,De.IsNotEmpty)(),er("design:type",Number)],u4.prototype,"frame",void 0);Qt([(0,De.IsNumber)(),(0,De.IsNotEmpty)(),er("design:type",Number)],u4.prototype,"gas",void 0);Qt([(0,De.IsNumber)(),(0,De.IsNotEmpty)(),er("design:type",Number)],u4.prototype,"memory",void 0);var vA=class{static{be(this,"ExecutionOutputMeteringPeak")}call;frame;memory;constructor(e,t,r){this.call=e,this.frame=t,this.memory=r}};Qt([(0,De.IsNumber)(),(0,De.IsNotEmpty)(),er("design:type",Number)],vA.prototype,"call",void 0);Qt([(0,De.IsNumber)(),(0,De.IsNotEmpty)(),er("design:type",Number)],vA.prototype,"frame",void 0);Qt([(0,De.IsNumber)(),(0,De.IsNotEmpty)(),er("design:type",Number)],vA.prototype,"memory",void 0);var GTe=class{static{be(this,"ExecutionOutputMeteringVersions")}protocol;constructor(e){this.protocol=e}};Qt([(0,De.IsString)(),(0,De.IsNotEmpty)(),er("design:type",String)],GTe.prototype,"protocol",void 0);var f1=class{static{be(this,"ExecutionOutputMetering")}last;limits;peak;versions;constructor(e,t,r,n){this.last=e,this.limits=t,this.peak=r,this.versions=n}};Qt([(0,De.ValidateNested)(),(0,u1.Type)(()=>l4),er("design:type",l4)],f1.prototype,"last",void 0);Qt([(0,De.ValidateNested)(),(0,u1.Type)(()=>u4),er("design:type",u4)],f1.prototype,"limits",void 0);Qt([(0,De.ValidateNested)(),(0,u1.Type)(()=>vA),er("design:type",vA)],f1.prototype,"peak",void 0);Qt([(0,De.IsOptional)(),(0,De.ValidateNested)(),(0,u1.Type)(()=>GTe),er("design:type",GTe)],f1.prototype,"versions",void 0);var d4=class{static{be(this,"ClearTextSolution")}senderAddress;status;output;metering;constructor(e,t,r,n){this.senderAddress=e,this.status=t,this.output=r,this.metering=n}};Qt([(0,De.IsNotEmpty)(),(0,De.IsEthereumAddress)(),er("design:type",String)],d4.prototype,"senderAddress",void 0);Qt([(0,De.IsNotEmpty)(),(0,De.IsEnum)(ec),er("design:type",String)],d4.prototype,"status",void 0);Qt([(0,De.IsOptional)(),(0,De.IsString)(),er("design:type",String)],d4.prototype,"output",void 0);Qt([(0,De.IsOptional)(),(0,De.ValidateNested)(),(0,u1.Type)(()=>f1),er("design:type",f1)],d4.prototype,"metering",void 0);var aAe=class{static{be(this,"ClearTextSolutionSigned")}signature;clearTextSolution;constructor(e,t){this.signature=e,this.clearTextSolution=t}};Qt([(0,De.ValidateNested)(),(0,u1.Type)(()=>qn),er("design:type",qn)],aAe.prototype,"signature",void 0);Qt([(0,De.ValidateNested)(),(0,u1.Type)(()=>d4),er("design:type",d4)],aAe.prototype,"clearTextSolution",void 0);var hm=class{static{be(this,"WorkersParams")}blockNumber;selectionStrategy;setNodes;constructor(e,t,r){this.blockNumber=e,this.selectionStrategy=t,this.setNodes=r}};Qt([(0,De.IsNotEmpty)(),(0,De.Min)(0),er("design:type",Number)],hm.prototype,"blockNumber",void 0);Qt([(0,De.IsNotEmpty)(),(0,De.IsString)(),er("design:type",String)],hm.prototype,"selectionStrategy",void 0);Qt([(0,De.ArrayNotEmpty)(),(0,De.IsNotEmpty)({each:!0}),(0,De.IsEthereumAddress)({each:!0}),er("design:type",Array)],hm.prototype,"setNodes",void 0);var tc=class{static{be(this,"TaskExecutionLimitsParams")}gas;call;frame;memory;constructor(e,t,r,n){this.gas=e,this.call=t,this.frame=r,this.memory=n}};Qt([(0,De.IsNotEmpty)(),(0,De.IsString)(),er("design:type",String)],tc.prototype,"gas",void 0);Qt([(0,De.IsNotEmpty)(),(0,De.IsString)(),er("design:type",String)],tc.prototype,"call",void 0);Qt([(0,De.IsNotEmpty)(),(0,De.IsString)(),er("design:type",String)],tc.prototype,"frame",void 0);Qt([(0,De.IsNotEmpty)(),(0,De.IsString)(),er("design:type",String)],tc.prototype,"memory",void 0);var rc=class{static{be(this,"EconParams")}reward;requiredSolutions;totalSolutions;executionTimeout;constructor(e,t,r,n){this.reward=e,this.requiredSolutions=t,this.totalSolutions=r,this.executionTimeout=n}};Qt([(0,De.IsNotEmpty)(),(0,De.IsString)(),er("design:type",String)],rc.prototype,"reward",void 0);Qt([(0,De.Min)(1),(0,De.IsNotEmpty)(),(0,De.IsNumber)(),er("design:type",Number)],rc.prototype,"requiredSolutions",void 0);Qt([(0,De.Min)(1),(0,De.IsNotEmpty)(),(0,De.IsNumber)(),er("design:type",Number)],rc.prototype,"totalSolutions",void 0);Qt([(0,De.Min)(1),(0,De.IsNotEmpty)(),(0,De.IsNumber)(),er("design:type",Number)],rc.prototype,"executionTimeout",void 0);var Aee=class{static{be(this,"TotalTransferredBytes")}request;response;constructor(e,t){this.request=e,this.response=t}};Qt([(0,De.IsNotEmpty)(),(0,De.IsNumber)(),er("design:type",Number)],Aee.prototype,"request",void 0);Qt([(0,De.IsNotEmpty)(),(0,De.IsNumber)(),er("design:type",Number)],Aee.prototype,"response",void 0);var ljt;(function(e){e.MINIO="minio",e.S3="s3"})(ljt||(ljt={}));var c4=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},p4=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},m4=class{static{be(this,"BaseMessage")}msgType;messageId;payload;msgTimestamp=Date.now();constructor(e,t){this.msgType=this.constructor.name,this.messageId=t||ppa(),this.payload=e}};c4([(0,Vo.IsNotEmpty)(),(0,Vo.IsString)(),p4("design:type",String)],m4.prototype,"msgType",void 0);c4([(0,Vo.IsOptional)(),(0,Vo.IsUUID)(),p4("design:type",String)],m4.prototype,"messageId",void 0);c4([(0,Vo.ValidateNested)(),p4("design:type",Object)],m4.prototype,"payload",void 0);c4([l1(),p4("design:type",Number)],m4.prototype,"msgTimestamp",void 0);var mpa=class extends m4{static{be(this,"FailedMessage")}error;constructor(e,t,r){super(t,r),this.error=e}};c4([(0,Vo.IsNotEmpty)(),(0,Vo.IsString)(),p4("design:type",String)],mpa.prototype,"error",void 0);var hpa=class extends m4{static{be(this,"InvalidMessage")}error;constructor(e,t,r){super(t,r),this.error=e}};c4([(0,Vo.IsNotEmpty)(),(0,Vo.IsString)(),p4("design:type",String)],hpa.prototype,"error",void 0);var qee;(function(e){e.EVM="evm",e.AVALANCHE="avalanche"})(qee||(qee={}));var xt=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Et=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},nc;(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"})(nc||(nc={}));var Ou=class{static{be(this,"BaseTranscriptRecord")}type;executionId;message;msgHash;signature;sequencerAddress;timestamp;constructor(e,t,r,n,a,i,s){this.type=e,this.executionId=t,this.message=n,this.msgHash=r,this.signature=a,this.timestamp=s,this.sequencerAddress=i}};xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsEnum)(nc),Et("design:type",String)],Ou.prototype,"type",void 0);xt([(0,Ie.IsUUID)(),(0,Ie.IsNotEmpty)(),Et("design:type",String)],Ou.prototype,"executionId",void 0);xt([(0,Ie.ValidateNested)(),Et("design:type",Object)],Ou.prototype,"message",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsHash)("sha256"),Et("design:type",String)],Ou.prototype,"msgHash",void 0);xt([(0,Ie.ValidateNested)(),(0,ac.Type)(()=>qn),Et("design:type",qn)],Ou.prototype,"signature",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsEthereumAddress)(),Et("design:type",String)],Ou.prototype,"sequencerAddress",void 0);xt([l1(),(0,Ie.IsNotEmpty)(),Et("design:type",Number)],Ou.prototype,"timestamp",void 0);var ia=class{static{be(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,r,n,a,i,s,o,l,u,d,c,h,p,m,b,v,_,w,S,A,W){this.taskId=e,this.executionId=t,this.msgHash=r,this.signature=n,this.limits=a,this.econParams=i,this.workers=s,this.dispatcherTimestamp=o,this.taskRequesterTimestamp=l,this.ledgerName=u,this.blockHash=d,this.blockNumber=c,this.chainId=h,this.nodeRegistryContractAddress=p,this.taskRegistryContractAddress=m,this.taskAuthorizationContractAddress=b,this.taskRequesterAddress=v,this.taskPath=_,this.taskVersion=w,this.signedRequestBody=W,this.senderAddress=S,this.input=A}};xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsString)(),Et("design:type",String)],ia.prototype,"taskId",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsUUID)(),Et("design:type",String)],ia.prototype,"executionId",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsHash)("sha256"),Et("design:type",String)],ia.prototype,"msgHash",void 0);xt([(0,Ie.ValidateNested)(),(0,ac.Type)(()=>qn),Et("design:type",qn)],ia.prototype,"signature",void 0);xt([(0,Ie.ValidateNested)(),(0,ac.Type)(()=>tc),Et("design:type",tc)],ia.prototype,"limits",void 0);xt([(0,Ie.ValidateNested)(),(0,ac.Type)(()=>rc),Et("design:type",rc)],ia.prototype,"econParams",void 0);xt([(0,Ie.ValidateNested)(),(0,ac.Type)(()=>hm),Et("design:type",hm)],ia.prototype,"workers",void 0);xt([(0,Ie.IsNotEmpty)(),nAe(),Et("design:type",Number)],ia.prototype,"dispatcherTimestamp",void 0);xt([(0,Ie.IsNotEmpty)(),nAe(),Et("design:type",Number)],ia.prototype,"taskRequesterTimestamp",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsEnum)(qee),Et("design:type",String)],ia.prototype,"ledgerName",void 0);xt([(0,Ie.IsNotEmpty)(),Et("design:type",String)],ia.prototype,"blockHash",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.Min)(0),Et("design:type",Number)],ia.prototype,"blockNumber",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsString)(),Et("design:type",String)],ia.prototype,"chainId",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsEthereumAddress)(),Et("design:type",String)],ia.prototype,"nodeRegistryContractAddress",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsEthereumAddress)(),Et("design:type",String)],ia.prototype,"taskRegistryContractAddress",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsEthereumAddress)(),Et("design:type",String)],ia.prototype,"taskAuthorizationContractAddress",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsEthereumAddress)(),Et("design:type",String)],ia.prototype,"taskRequesterAddress",void 0);xt([(0,Ie.IsOptional)(),Et("design:type",String)],ia.prototype,"taskPath",void 0);xt([(0,Ie.IsOptional)(),(0,Ie.Min)(0),Et("design:type",Number)],ia.prototype,"taskVersion",void 0);xt([(0,Ie.IsOptional)(),Et("design:type",Object)],ia.prototype,"signedRequestBody",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsEthereumAddress)(),Et("design:type",String)],ia.prototype,"senderAddress",void 0);xt([(0,Ie.IsOptional)(),(0,Ie.Allow)(),Et("design:type",String)],ia.prototype,"input",void 0);var Pi=class{static{be(this,"APITaskCreatedMessageParams")}type="dispatch_task";taskId;executionId;msgHash;signature;ledgerName;blockHash;blockNumber;chainId;taskRegistryContractAddress;taskAuthorizationContractAddress;taskRequesterAddress;taskPath;taskVersion;senderAddress;executionTimeout;input;constructor(e,t,r,n,a,i,s,o,l,u,d,c,h,p,m,b){this.taskId=e,this.executionId=t,this.msgHash=r,this.signature=n,this.executionTimeout=m,this.ledgerName=i,this.blockHash=s,this.blockNumber=o,this.chainId=l,this.taskRegistryContractAddress=u,this.taskAuthorizationContractAddress=d,this.taskRequesterAddress=c,this.taskPath=h,this.taskVersion=p,this.senderAddress=a,this.input=b}};xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsString)(),Et("design:type",String)],Pi.prototype,"taskId",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsUUID)(),Et("design:type",String)],Pi.prototype,"executionId",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsHash)("sha256"),Et("design:type",String)],Pi.prototype,"msgHash",void 0);xt([(0,Ie.ValidateNested)(),(0,ac.Type)(()=>qn),Et("design:type",qn)],Pi.prototype,"signature",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsEnum)(qee),Et("design:type",String)],Pi.prototype,"ledgerName",void 0);xt([(0,Ie.IsNotEmpty)(),Et("design:type",String)],Pi.prototype,"blockHash",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.Min)(0),Et("design:type",Number)],Pi.prototype,"blockNumber",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsString)(),Et("design:type",String)],Pi.prototype,"chainId",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsEthereumAddress)(),Et("design:type",String)],Pi.prototype,"taskRegistryContractAddress",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsEthereumAddress)(),Et("design:type",String)],Pi.prototype,"taskAuthorizationContractAddress",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsEthereumAddress)(),Et("design:type",String)],Pi.prototype,"taskRequesterAddress",void 0);xt([(0,Ie.IsOptional)(),Et("design:type",String)],Pi.prototype,"taskPath",void 0);xt([(0,Ie.IsOptional)(),(0,Ie.Min)(0),Et("design:type",Number)],Pi.prototype,"taskVersion",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsEthereumAddress)(),Et("design:type",String)],Pi.prototype,"senderAddress",void 0);xt([(0,Ie.IsNumber)(),Et("design:type",Number)],Pi.prototype,"executionTimeout",void 0);xt([(0,Ie.IsOptional)(),(0,Ie.Allow)(),Et("design:type",String)],Pi.prototype,"input",void 0);var jy=class{static{be(this,"NodeOutcomeMessageParams")}executionId;senderAddress;encryptedSolution;msgHash;signature;constructor(e,t,r,n,a){this.executionId=e,this.signature=a,this.encryptedSolution=r,this.senderAddress=t,this.msgHash=n}};xt([(0,Ie.IsUUID)(),(0,Ie.IsNotEmpty)(),Et("design:type",String)],jy.prototype,"executionId",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsEthereumAddress)(),Et("design:type",String)],jy.prototype,"senderAddress",void 0);xt([(0,Ie.ValidateNested)(),(0,ac.Type)(()=>o1),Et("design:type",o1)],jy.prototype,"encryptedSolution",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsHash)("sha256"),Et("design:type",String)],jy.prototype,"msgHash",void 0);xt([(0,Ie.ValidateNested)(),(0,ac.Type)(()=>qn),Et("design:type",qn)],jy.prototype,"signature",void 0);var By=class{static{be(this,"ApiOutcomeMessageParams")}executionId;senderAddress;bodyResponse;tlsHandshakeHash;status;totalTransferredBytes;constructor(e,t,r,n,a,i){this.executionId=e,this.bodyResponse=r,this.tlsHandshakeHash=n,this.senderAddress=t,this.status=a,this.totalTransferredBytes=i}};xt([(0,Ie.IsUUID)(),(0,Ie.IsNotEmpty)(),Et("design:type",String)],By.prototype,"executionId",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsEthereumAddress)(),Et("design:type",String)],By.prototype,"senderAddress",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsString)(),Et("design:type",String)],By.prototype,"tlsHandshakeHash",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsString)(),Et("design:type",String)],By.prototype,"status",void 0);xt([(0,Ie.ValidateNested)(),(0,ac.Type)(()=>Aee),Et("design:type",Aee)],By.prototype,"totalTransferredBytes",void 0);var Mt=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},kt=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},d1=class{static{be(this,"DispatchTaskPayload")}executionId;msgHash;signature;limits;econParams;workers;senderAddress;input;constructor(e,t,r,n,a,i,s,o){this.executionId=e,this.msgHash=t,this.signature=r,this.limits=n,this.econParams=a,this.workers=i,this.senderAddress=s,this.input=o}};Mt([(0,Ve.IsUUID)(),(0,Ve.IsNotEmpty)(),kt("design:type",String)],d1.prototype,"executionId",void 0);Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsHash)("sha256"),kt("design:type",String)],d1.prototype,"msgHash",void 0);Mt([(0,Ve.ValidateNested)(),(0,vi.Type)(()=>qn),kt("design:type",qn)],d1.prototype,"signature",void 0);Mt([(0,Ve.ValidateNested)(),(0,vi.Type)(()=>tc),kt("design:type",tc)],d1.prototype,"limits",void 0);Mt([(0,Ve.ValidateNested)(),(0,vi.Type)(()=>rc),kt("design:type",rc)],d1.prototype,"econParams",void 0);Mt([(0,Ve.ValidateNested)(),(0,vi.Type)(()=>hm),kt("design:type",hm)],d1.prototype,"workers",void 0);Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsString)(),kt("design:type",String)],d1.prototype,"senderAddress",void 0);Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsString)(),kt("design:type",String)],d1.prototype,"input",void 0);var Pee=class{static{be(this,"UnsignedDispatchTaskPayload")}executionId;limits;econParams;workers;input;constructor(e,t,r,n,a){this.executionId=e,this.limits=t,this.econParams=r,this.workers=n,this.input=a}};Mt([(0,Ve.IsUUID)(),(0,Ve.IsNotEmpty)(),kt("design:type",String)],Pee.prototype,"executionId",void 0);Mt([(0,Ve.ValidateNested)(),(0,vi.Type)(()=>tc),kt("design:type",tc)],Pee.prototype,"limits",void 0);Mt([(0,Ve.ValidateNested)(),(0,vi.Type)(()=>rc),kt("design:type",rc)],Pee.prototype,"econParams",void 0);Mt([(0,Ve.ValidateNested)(),(0,vi.Type)(()=>hm),kt("design:type",hm)],Pee.prototype,"workers",void 0);var ypa=class extends Ou{static{be(this,"NodeOutcomePayload")}message;constructor(e,t,r,n,a,i){super(nc.NODE_OUTCOME,e,t,r,n,a,i),this.message=r,this.executionId=e,this.msgHash=t,this.signature=n,this.timestamp=i,this.sequencerAddress=a,this.message=r}};Mt([(0,Ve.ValidateNested)(),(0,vi.Type)(()=>jy),kt("design:type",jy)],ypa.prototype,"message",void 0);var bpa=class extends Ou{static{be(this,"ApiOutcomePayload")}message;constructor(e,t,r,n,a,i){super(nc.API_OUTCOME,e,t,r,n,a,i),this.message=r,this.executionId=e,this.msgHash=t,this.signature=n,this.timestamp=i,this.sequencerAddress=a}};Mt([(0,Ve.ValidateNested)(),(0,vi.Type)(()=>By),kt("design:type",By)],bpa.prototype,"message",void 0);var Fy=class{static{be(this,"ExecutionCompletedPayload")}type;executionId;transcriptHash;status;signature;signerAddress;timestamp;constructor(e,t,r,n,a,i){this.type=nc.EXECUTION_COMPLETED,this.executionId=e,this.transcriptHash=t,this.status=r,this.signature=n,this.signerAddress=a,this.timestamp=i}};Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsString)(),kt("design:type",String)],Fy.prototype,"type",void 0);Mt([(0,Ve.IsUUID)(),(0,Ve.IsNotEmpty)(),kt("design:type",String)],Fy.prototype,"executionId",void 0);Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsHash)("sha256"),kt("design:type",String)],Fy.prototype,"transcriptHash",void 0);Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsEnum)(Tee),kt("design:type",String)],Fy.prototype,"status",void 0);Mt([(0,Ve.ValidateNested)(),(0,vi.Type)(()=>qn),kt("design:type",qn)],Fy.prototype,"signature",void 0);Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsString)(),kt("design:type",String)],Fy.prototype,"signerAddress",void 0);Mt([l1(),(0,Ve.IsNotEmpty)(),kt("design:type",Number)],Fy.prototype,"timestamp",void 0);var ym=class{static{be(this,"AdjudicationOutcomePayload")}type;executionId;status;signature;senderAddress;timestamp;output;metering;error;constructor(e,t,r,n,a,i,s,o){this.type=nc.ADJUDICATION_OUTCOME,this.executionId=e,this.status=t,this.signature=r,this.senderAddress=n,this.output=i,this.metering=s,this.timestamp=a,this.error=o}};Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsString)(),kt("design:type",String)],ym.prototype,"type",void 0);Mt([(0,Ve.IsUUID)(),(0,Ve.IsNotEmpty)(),kt("design:type",String)],ym.prototype,"executionId",void 0);Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsEnum)(Tee),kt("design:type",String)],ym.prototype,"status",void 0);Mt([(0,Ve.ValidateNested)(),(0,vi.Type)(()=>qn),kt("design:type",qn)],ym.prototype,"signature",void 0);Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsString)(),kt("design:type",String)],ym.prototype,"senderAddress",void 0);Mt([l1(),(0,Ve.IsNotEmpty)(),kt("design:type",Number)],ym.prototype,"timestamp",void 0);Mt([(0,Ve.IsOptional)(),(0,Ve.IsString)(),kt("design:type",String)],ym.prototype,"output",void 0);Mt([(0,Ve.IsOptional)(),(0,Ve.ValidateNested)(),(0,vi.Type)(()=>f1),kt("design:type",f1)],ym.prototype,"metering",void 0);Mt([(0,Ve.IsOptional)(),(0,Ve.IsString)(),kt("design:type",String)],ym.prototype,"error",void 0);var h4=class{static{be(this,"SolutionsRevealedPayload")}type;executionId;signature;clearTextSolutions;sequencerAddress;msgHash;timestamp;constructor(e,t,r,n,a,i){this.type=nc.SOLUTIONS_REVEALED,this.executionId=e,this.signature=t,this.clearTextSolutions=r,this.sequencerAddress=n,this.msgHash=a,this.timestamp=i}};Mt([(0,Ve.IsUUID)(),(0,Ve.IsNotEmpty)(),kt("design:type",String)],h4.prototype,"executionId",void 0);Mt([(0,Ve.ValidateNested)(),(0,vi.Type)(()=>qn),kt("design:type",qn)],h4.prototype,"signature",void 0);Mt([(0,Ve.ValidateNested)({each:!0}),(0,vi.Type)(()=>aAe),kt("design:type",Array)],h4.prototype,"clearTextSolutions",void 0);Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsEthereumAddress)(),kt("design:type",String)],h4.prototype,"sequencerAddress",void 0);Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsHash)("sha256"),kt("design:type",String)],h4.prototype,"msgHash",void 0);Mt([l1(),(0,Ve.IsNotEmpty)(),kt("design:type",Number)],h4.prototype,"timestamp",void 0);var Uy=class extends Ou{static{be(this,"TaskCreatedPayload")}executionId;msgHash;message;signature;publicKey;sequencerAddress;timestamp;constructor(e,t,r,n,a,i,s){super(nc.TASK_CREATED,e,t,r,n,i,s),this.message=r,this.executionId=e,this.msgHash=t,this.signature=n,this.timestamp=s,this.sequencerAddress=i,this.publicKey=a,this.message=r}};Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsUUID)(),kt("design:type",String)],Uy.prototype,"executionId",void 0);Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsHash)("sha256"),kt("design:type",String)],Uy.prototype,"msgHash",void 0);Mt([(0,Ve.ValidateNested)(),(0,vi.Type)(()=>ia),kt("design:type",ia)],Uy.prototype,"message",void 0);Mt([(0,Ve.ValidateNested)(),(0,vi.Type)(()=>qn),kt("design:type",qn)],Uy.prototype,"signature",void 0);Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsString)(),kt("design:type",String)],Uy.prototype,"publicKey",void 0);Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsEthereumAddress)(),kt("design:type",String)],Uy.prototype,"sequencerAddress",void 0);Mt([l1(),(0,Ve.IsNotEmpty)(),kt("design:type",Number)],Uy.prototype,"timestamp",void 0);var Vy=class extends Ou{static{be(this,"APITaskCreatedPayload")}executionId;msgHash;message;signature;publicKey;sequencerAddress;timestamp;constructor(e,t,r,n,a,i,s){super(nc.API_TASK_CREATED,e,t,r,n,i,s),this.message=r,this.executionId=e,this.msgHash=t,this.signature=n,this.timestamp=s,this.sequencerAddress=i,this.publicKey=a,this.message=r}};Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsUUID)(),kt("design:type",String)],Vy.prototype,"executionId",void 0);Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsHash)("sha256"),kt("design:type",String)],Vy.prototype,"msgHash",void 0);Mt([(0,Ve.ValidateNested)(),(0,vi.Type)(()=>Pi),kt("design:type",Pi)],Vy.prototype,"message",void 0);Mt([(0,Ve.ValidateNested)(),(0,vi.Type)(()=>qn),kt("design:type",qn)],Vy.prototype,"signature",void 0);Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsString)(),kt("design:type",String)],Vy.prototype,"publicKey",void 0);Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsEthereumAddress)(),kt("design:type",String)],Vy.prototype,"sequencerAddress",void 0);Mt([l1(),(0,Ve.IsNotEmpty)(),kt("design:type",Number)],Vy.prototype,"timestamp",void 0);var gA=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},_A=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},xA=class{static{be(this,"ComputedOutcomePayload")}executionId;msgHash;signature;senderAddress;encryptedSolution;constructor(e,t,r,n,a){this.executionId=e,this.msgHash=t,this.signature=r,this.senderAddress=n,this.encryptedSolution=a}};gA([(0,w0.IsUUID)(),(0,w0.IsNotEmpty)(),_A("design:type",String)],xA.prototype,"executionId",void 0);gA([(0,w0.IsNotEmpty)(),(0,w0.IsHash)("sha256"),_A("design:type",String)],xA.prototype,"msgHash",void 0);gA([(0,w0.ValidateNested)(),(0,iAe.Type)(()=>qn),_A("design:type",qn)],xA.prototype,"signature",void 0);gA([(0,w0.IsNotEmpty)(),(0,w0.IsEthereumAddress)(),_A("design:type",String)],xA.prototype,"senderAddress",void 0);gA([(0,w0.ValidateNested)(),(0,iAe.Type)(()=>o1),_A("design:type",o1)],xA.prototype,"encryptedSolution",void 0);var Fr=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Ur=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},vpa=class{static{be(this,"PushTaskPayload")}taskId;constructor(e){this.taskId=e}};Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],vpa.prototype,"taskId",void 0);var gpa=class{static{be(this,"PullTaskPayload")}taskId;constructor(e){this.taskId=e}};Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],gpa.prototype,"taskId",void 0);var sAe=class{static{be(this,"CheckpointTaskPayload")}input;checkpoint;taskId;constructor(e,t,r){this.taskId=e,this.checkpoint=t,this.input=r}};Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],sAe.prototype,"input",void 0);Fr([(0,st.IsNotEmpty)(),Ur("design:type",Object)],sAe.prototype,"checkpoint",void 0);Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],sAe.prototype,"taskId",void 0);var Gjt=class{static{be(this,"ListTaskCheckpointPayload")}input;taskId;constructor(e,t){this.taskId=e,this.input=t}};Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],Gjt.prototype,"input",void 0);Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],Gjt.prototype,"taskId",void 0);var oAe=class{static{be(this,"ExecuteTaskPayload")}executionId;input;taskId;constructor(e,t,r){this.taskId=e,this.executionId=t,this.input=r}};Fr([(0,st.IsNotEmpty)(),(0,st.IsUUID)(),Ur("design:type",String)],oAe.prototype,"executionId",void 0);Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],oAe.prototype,"input",void 0);Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],oAe.prototype,"taskId",void 0);var Kjt=class{static{be(this,"InstrumentTaskPayload")}instrumentationId;taskId;constructor(e,t){this.taskId=e,this.instrumentationId=t}};Fr([(0,st.IsNotEmpty)(),(0,st.IsUUID)(),Ur("design:type",String)],Kjt.prototype,"instrumentationId",void 0);Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],Kjt.prototype,"taskId",void 0);var _pa=class{static{be(this,"TaskPushedPayload")}taskId;constructor(e){this.taskId=e}};Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],_pa.prototype,"taskId",void 0);var xpa=class{static{be(this,"TaskPulledPayload")}taskId;constructor(e){this.taskId=e}};Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],xpa.prototype,"taskId",void 0);var Epa=class{static{be(this,"TaskPulledFailedPayload")}taskId;constructor(e){this.taskId=e}};Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],Epa.prototype,"taskId",void 0);var Yjt=class{static{be(this,"TaskCheckpointedPayload")}checkpointHash;taskId;constructor(e,t){this.taskId=e,this.checkpointHash=t}};Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],Yjt.prototype,"checkpointHash",void 0);Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],Yjt.prototype,"taskId",void 0);var wpa=class{static{be(this,"TaskCheckpointedFailedPayload")}taskId;constructor(e){this.taskId=e}};Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],wpa.prototype,"taskId",void 0);var Jjt=class{static{be(this,"TaskCheckpointsListedPayload")}checkpointCount;taskId;constructor(e,t){this.taskId=e,this.checkpointCount=t}};Fr([(0,st.IsNotEmpty)(),(0,st.IsNumber)(),Ur("design:type",Number)],Jjt.prototype,"checkpointCount",void 0);Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],Jjt.prototype,"taskId",void 0);var Spa=class{static{be(this,"TaskCheckpointsListFailedPayload")}taskId;constructor(e,t){this.taskId=t}};Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],Spa.prototype,"taskId",void 0);var fAe=class{static{be(this,"TaskExecutedPayload")}executionId;output;taskId;constructor(e,t,r){this.taskId=e,this.executionId=t,this.output=r}};Fr([(0,st.IsNotEmpty)(),(0,st.IsUUID)(),Ur("design:type",String)],fAe.prototype,"executionId",void 0);Fr([(0,st.IsOptional)(),(0,st.IsString)(),Ur("design:type",String)],fAe.prototype,"output",void 0);Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],fAe.prototype,"taskId",void 0);var Zjt=class{static{be(this,"TaskExecutionFailedPayload")}executionId;taskId;constructor(e,t,r){this.taskId=t,this.executionId=r}};Fr([(0,st.IsNotEmpty)(),(0,st.IsUUID)(),Ur("design:type",String)],Zjt.prototype,"executionId",void 0);Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],Zjt.prototype,"taskId",void 0);var Cee=class{static{be(this,"TaskInstrumentedPayload")}instrumentationId;output;taskId;instrumentedTaskId;constructor(e,t,r,n){this.taskId=e,this.instrumentationId=t,this.output=n,this.instrumentedTaskId=r}};Fr([(0,st.IsNotEmpty)(),(0,st.IsUUID)(),Ur("design:type",String)],Cee.prototype,"instrumentationId",void 0);Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],Cee.prototype,"output",void 0);Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],Cee.prototype,"taskId",void 0);Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],Cee.prototype,"instrumentedTaskId",void 0);var Xjt=class{static{be(this,"TaskInstrumentedFailedPayload")}instrumentationId;taskId;constructor(e,t,r){this.taskId=t,this.instrumentationId=r}};Fr([(0,st.IsNotEmpty)(),(0,st.IsUUID)(),Ur("design:type",String)],Xjt.prototype,"instrumentationId",void 0);Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],Xjt.prototype,"taskId",void 0);var ujt;(function(e){e.ACTIVE="active",e.INACTIVE="inactive"})(ujt||(ujt={}));async function lAe(e,t,r,n,a,i,s){let o={},l=0,u=0,d=LTe.create({headers:{Connection:"keep-alive"},httpsAgent:new Yca.Agent({keepAlive:!0}).on("keylog",(c,h)=>{let p=h.getSession(),m=Buffer.from(p).toString("hex").toUpperCase();o={tlsCert:Uue(h.getPeerCertificate(!0)),localCertificate:Uue(h.getCertificate()),ephemeral:h.getEphemeralKeyInfo(),cipher:h.getCipher(),session:m,ticket:h.getTLSTicket(),localAddress:h.localAddress,sharedSigAlgs:h.getSharedSigalgs(),remoteAddress:h.remoteAddress,protocol:h.getProtocol()}}),maxContentLength:1/0,maxBodyLength:1/0});d.interceptors.request.use(c=>{let h=c.data?JSON.stringify(c.data):"";return l=(c.url?.length||0)+(h.length||0)+JSON.stringify(c.headers).length,c}),d.interceptors.response.use(c=>(u=JSON.stringify(c.data).length+JSON.stringify(c.headers).length,c));try{let c;if(e=="cli"||Qjt(t.url))switch(t.method.toLowerCase()){case"get":c=await d.get(t.url,{headers:t.headers,timeout:r});break;case"patch":c=await d.patch(t.url,t.body,{headers:t.headers,timeout:r});break;case"post":c=await d.post(t.url,t.body,{headers:t.headers,timeout:r});break;case"put":c=await d.put(t.url,t.body,{headers:t.headers,timeout:r});break;case"delete":c=await d.delete(t.url,{headers:t.headers,timeout:r});break;default:throw new Error("Unsupported HTTP method")}else{let h=new djt.default;h.append("taskId",e),s&&h.append("executionId",s),n&&h.append("namespace",n),a&&h.append("taskname",a),h.append("url",t.url),h.append("method",t.method.toLowerCase()),h.append("headers",JSON.stringify(t.headers)),h.append("body",typeof t.body=="object"?JSON.stringify(t.body):t.body??void 0),h.append("timeout",r.toString()),i&&h.append("manifest",Buffer.from(i),{filename:"manifest.json",contentType:"application/json"}),c=await LTe.post(`${process.env.NITRO_URL}/callAPI`,h,{timeout:24e4,headers:{...h.getHeaders()}})}return[c.data,JSON.stringify(o),ec.SUCCEED,l,u]}catch(c){let h,p;return c.response?.data?p=JSON.stringify(c.response.data):p=c.message,LTe.isAxiosError(c)?h=c.response||{data:p,status:500,statusText:"",headers:{},config:{headers:{}}}:h={data:p,status:500,statusText:"",headers:{},config:{headers:{}}},[h.data,JSON.stringify(o),ec.FAILED,l,u]}}be(lAe,"handleAxiosCall");function Qjt(e){let t=new Set(["localhost","127.0.0.1","hardhat-node","n8n-node","dispatcher"]),r=!!process.env.ENABLE_AXIOS_LOCAL_CALL;try{let n=new URL(e).hostname;return t.has(n)&&r}catch{return!1}}be(Qjt,"isAxiosLocalCall");function rBt(e){let t=e.split(".").map(Number);return t.length!==4||t.some(r=>Number.isNaN(r)||r<0||r>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}be(rBt,"isPrivateIP");function nBt(e){if(["local","testnet","staging"].includes(process.env.TRUEBIT_ENV))return[!0,""];try{let t=new URL(e),r=t.hostname;if(!["http:","https:"].includes(t.protocol))return[!1,"Only HTTP and HTTPS protocols are allowed"];if(Tpa(r)){if(rBt(r))return[!1,"Internal IP addresses are not allowed"]}else{let n=[".local",".internal",".cluster.local","localhost","kubernetes","kubernetes.default","kubernetes.default.svc","kubernetes.default.svc.cluster.local"],a=r.toLowerCase();for(let i of n)if(a===i||a.endsWith(i))return[!1,"Internal domains are not allowed"]}return[!0,""]}catch{return[!1,"Invalid URL format"]}}be(nBt,"validateExternalUrl");function uAe(e){let t=e.servers;if(t&&t.length>0){let r=t[0],n=r.url;return r.variables&&Object.keys(r.variables).forEach(a=>{let i=r.variables[a],s=i.default||i.enum?.[0];if(s===void 0)throw new Error(`No default value found for variable ${a}`);n=n.replace(`{${a}}`,s)}),n}else throw new Error("No servers defined in OpenAPI document")}be(uAe,"getBaseURLFromOpenAPI");function aBt(e,t,r){let n=e.paths?.[t];if(!n)return null;let a=n[r.toLowerCase()];return a&&a.operationId||null}be(aBt,"findOperationId");function iBt(e,t,r){let n=t;r&&Object.entries(r).forEach(([s,o])=>{n=n.replace(`{${s}}`,encodeURIComponent(String(o)))});let a=e.endsWith("/")?e.slice(0,-1):e,i=n.startsWith("/")?n:`/${n}`;return`${a}${i}`}be(iBt,"buildUrlWithPathParams");function Mee(e,t,r){let n=new Map,a=e.paths?.[t];if(!a)return n;let i=a.parameters||[],s=a[r.toLowerCase()]?.parameters||[],o=[...i,...s];for(let u of o)"name"in u&&"in"in u&&n.set(u.name,u.in);let l=t.match(/\{([^}]+)\}/g);return l&&l.forEach(u=>{let d=u.slice(1,-1);n.has(d)||n.set(d,"path")}),n}be(Mee,"categorizeParameters");function sBt(e,t,r,n){if(!n||Object.keys(n).length===0)return"";let a=Mee(e,t,r),i=Object.entries(n).filter(([s])=>{let o=a.get(s);return o==="query"||!o}).map(([s,o])=>Array.isArray(o)?o.map(l=>`${encodeURIComponent(s)}=${encodeURIComponent(String(l))}`).join("&"):`${encodeURIComponent(s)}=${encodeURIComponent(String(o))}`).join("&");return i?`?${i}`:""}be(sBt,"buildQueryString");function oBt(e,t,r,n){let a={};if(!n||Object.keys(n).length===0)return a;let i=Mee(e,t,r);for(let[s,o]of Object.entries(n))i.get(s)==="header"&&(a[s]=String(o));return a}be(oBt,"extractHeaderParams");function fBt(e,t,r,n){if(!n||Object.keys(n).length===0)return null;let a=Mee(e,t,r),i=[];for(let[s,o]of Object.entries(n))a.get(s)==="cookie"&&i.push(`${encodeURIComponent(s)}=${encodeURIComponent(String(o))}`);return i.length>0?i.join("; "):null}be(fBt,"extractCookieParams");async function kee(e,t){let r=await eBt(e),n=aBt(r,t.path,t.method);if(n){let a=t.body;if(typeof t.body=="string"&&t.body.includes("=")){let u=new URLSearchParams(t.body);a=Object.fromEntries(u.entries())}let i={spec:r,operationId:n,parameters:t.params||{},requestBody:a,securities:t.securities,server:t.server,serverVariables:t.serverVariables,responseContentType:t.responseContentType};t.requestContentType&&(i.requestContentType=t.requestContentType);let s=tBt.default.buildRequest(i),o=new Set(Object.keys(t.headers||{}).map(u=>u.toLowerCase())),l={...Object.fromEntries(Object.entries(s.headers).filter(([u])=>{let d=u.toLowerCase();return!(d==="content-type"&&!o.has("content-type")||d==="accept"&&!o.has("accept"))})),...t.headers};return{url:s.url,method:s.method.toUpperCase(),headers:l,body:s.body}}else{let a=uAe(r),i=iBt(a,t.path,t.params),s=sBt(r,t.path,t.method,t.params),o=oBt(r,t.path,t.method,t.params),l=fBt(r,t.path,t.method,t.params),u=t.requestContentType||"application/json",d={...o,...t.headers};l&&(d.Cookie=d.Cookie?`${d.Cookie}; ${l}`:l);let c;return t.body&&(typeof t.body=="string"?c=t.body:u==="application/x-www-form-urlencoded"?c=new URLSearchParams(t.body).toString():c=JSON.stringify(t.body)),{url:`${i}${s}`,method:t.method.toUpperCase(),headers:d,body:c}}}be(kee,"createRequest");async function dAe(e,t){try{let r=await eBt(e),n=uAe(r),[a,i]=nBt(n);return a?(await kee(e,t),[n,"",ec.SUCCEED]):(console.warn(`Manifest-based call blocked: ${i} - baseURL: ${n}`),["",`Security: ${i}`,ec.FAILED])}catch(r){return console.log(r),["",r,ec.FAILED]}}be(dAe,"handleEnforcerManifestCheck");async function cAe(e){try{let t=JSON.parse(e);return[{path:t.path.toString(),method:t.method.toString(),body:t.body,params:t.params,headers:t.headers||{}},"",ec.SUCCEED]}catch(t){return console.error("Invalid JSON format:",t),[null,"Api_Adapter create request input format",ec.FAILED]}}be(cAe,"createRequestInput");var lBt=be((e,t,r)=>cpa(e,t).authHeaders(r),"handleGetAuthHeaders");import Ru from"chalk";var pAe=async(e,t,r,n)=>{let a="",i=uBt.readFileSync(t,"utf8"),s=JSON.parse(i).input,o=JSON.parse(i).executionTimeout,[l,u,d]=await cAe(JSON.stringify(s));if(a+=`${Ru.cyanBright(`
489
+ ${e.config?.method} - ${e.config?.url}`:e.message:e.message};function Vs(e,t){if(e!==e.toLowerCase())throw new Error(`${t} must be lowercase.`)}function _n(e,t){switch(t){case Tt.ETH:return Y5.create(null,nd.EVM,e,Tt.ETH,Vr("privateKey"));case Tt.AVAX:return Y5.create(null,nd.EVM,e,Tt.AVAX,Vr("privateKey"));default:throw new Error(`Unsupported blockchain: ${t}`)}}function WE(e){if(!g4r.isAddress(e)||e.length!==42||!e.startsWith("0x"))throw new Error("Must be a valid ethereum address. (ENS not supported yet)")}async function GP(){try{return await v4r({onlyHttps:!0})}catch{return"unknown"}}function Ia(){return new Date().toUTCString().replace(",","")}function CJe(e,t,r,n,a){let i=Vr("address");return{distinct_id:i,user_ip:r,date_time:Ia(),os_version:n,node_version:process.version,cli_version:a,taskId:e,input:t,wallet_address:i}}function MJe(e,t,r){let n=Vr("address");return{distinct_id:n,user_ip:e,date_time:Ia(),os_version:t,node_version:process.version,cli_version:r,wallet_address:n}}function kJe(e,t,r,n,a,i,s){let o=Vr("address");return{distinct_id:o,user_ip:a,date_time:Ia(),os_version:i,node_version:process.version,cli_version:s,taskId:e,task_name:t,namespace:r,label:n,wallet_address:o}}function NJe(e,t,r,n,a){let i=Vr("address");return{distinct_id:i,user_ip:r,date_time:Ia(),os_version:n,node_version:process.version,cli_version:a,manifest:e,authType:t,wallet_address:i}}function DJe(e,t,r,n){let a=Vr("address");return{distinct_id:a,user_ip:t,date_time:Ia(),os_version:r,node_version:process.version,cli_version:n,manifest:e,wallet_address:a}}function $Je(e,t,r,n,a,i,s){let o=Vr("address");return{distinct_id:o,user_ip:a,date_time:Ia(),os_version:i,node_version:process.version,cli_version:s,taskId:e,namespace:t,taskname:r,authType:n,wallet_address:o}}function hh(e,t,r,n,a){let i=Vr("address"),s={distinct_id:i,user_ip:t,date_time:Ia(),os_version:r,node_version:process.version,cli_version:n,namespace:e,wallet_address:i};return a&&(s.address_to=a),s}function GE(e,t,r,n,a,i,s){let o=Vr("address");return{distinct_id:o,user_ip:r,date_time:Ia(),os_version:n,node_version:process.version,cli_version:a,namespace:e,wallet_address:o,taskname:t,label:i,version:s}}function KP(e,t,r,n){let a=Vr("address");return{distinct_id:a,user_ip:t,date_time:Ia(),os_version:r,node_version:process.version,cli_version:n,api_key:e,wallet_address:a}}function LJe(e,t,r,n,a){let i=Vr("address");return{distinct_id:i,user_ip:r,date_time:Ia(),os_version:n,node_version:process.version,cli_version:a,namespace:e,address_check:t,wallet_address:i}}function ss(){let e="production";return process.env.TRUEBIT_ENV==="local"?e="local":process.env.TRUEBIT_ENV==="staging"?e="staging":process.env.TRUEBIT_ENV==="testnet"&&(e="testnet"),e}a6();Us();Fc();function F0(e){let t=Fs(),r=t!==null,n;switch(!r||r&&(!t.privateKey||!t.address)?n=1:n=2,n){case 1:console.error(On.USER_NO_REGISTERED),process.exit(1);break;case 2:{e=Xo.createSignedBody(e,t.privateKey,t.address);break}}return e}async function BJe(e,t){if(!a2.existsSync(e))throw"Invalid source code path";let n=a2.readdirSync(e);if(n.length===0)throw"No files found in directory";let a=new jJe.default;for(let u of n){let d=e+`/${u}`,c=a2.readFileSync(d),h=_4r.basename(d);a.append("files",c,h)}a.append("lang",t);let i={files:n,lang:t},s=F0(i),o=await fd();return a.append("walletAddress",s.walletAddress),a.append("signature",JSON.stringify(s.signature)),a.append("fmpayload",JSON.stringify(i)),(await o.post("api/filesystem/pushLocal",a,{headers:{...a.getHeaders()}}).catch(u=>{B0(u)})).data}var Fue=async(e,t)=>{let n=`./tmp.${x4r()}`;try{go.mkdirSync(n);let a=i2.join(process.cwd(),t);if(!go.existsSync(a))throw"Task path doesn't exist";if(e===li.C||e===li.RUST||e===li.JS||e===li.PYTHON){let l="config.json",u=i2.join(a,l);go.existsSync(u)||go.writeFileSync(u,JSON.stringify({run:{limits:{call:VNe,frame:HNe,gas:UNe,memory:zNe}}})),go.copyFileSync(u,i2.join(n,l));let d="fs.tar",c=i2.join(a,d);go.existsSync(c)&&go.copyFileSync(c,i2.join(n,d))}await PP.createBuild(e).build(t,n);let o=await BJe(n,e);return go.rmSync(n,{recursive:!0}),o}catch(a){throw go.rmSync(n,{recursive:!0}),a}};import*as uBt from"node:fs";var djt=Gt(jue(),1);import LTe from"axios";import Yca from"node:https";var{parse:E4r,stringify:w4r}=JSON,{keys:oSa}=Object,S4r=String,T4r="string";var FJe="object",A4r=(e,t)=>t;var UJe=(e,t,r)=>{let n=S4r(t.push(r)-1);return e.set(r,n),n};var q4r=(e,t,r)=>{let n=t&&typeof t===FJe?(d,c)=>d===""||-1<t.indexOf(d)?c:void 0:t||A4r,a=new Map,i=[],s=[],o=+UJe(a,i,n.call({"":e},"",e)),l=!o;for(;o<i.length;)l=!0,s[o]=w4r(i[o++],u,r);return"["+s.join(",")+"]";function u(d,c){if(l)return l=!l,c;let h=n.call(this,d,c);switch(typeof h){case FJe:if(h===null)return h;case T4r:return a.get(h)||UJe(a,i,h)}return h}},Uue=e=>E4r(q4r(e));var Jca=Gt(Ub(),1),h3i=Gt(Une(),1),g3i=Gt(Ub(),1);I7();import"ethers";I7();import"ethers";var U3i=Gt(die(),1),Wjt=Gt(pie(),1),rAe=Gt(js(),1),G3i=Gt(Ap(),1),u1=Gt(Ip(),1),De=Gt(js(),1),Vo=Gt(js(),1),Y3i=Gt(Ap(),1),Ie=Gt(js(),1),ac=Gt(Ip(),1),J3i=Gt(Ap(),1),Ve=Gt(js(),1),vi=Gt(Ip(),1),Z3i=Gt(Ap(),1),w0=Gt(js(),1),iAe=Gt(Ip(),1),st=Gt(js(),1);import"node:os";import{v4 as ppa}from"uuid";import"axios";var tBt=Gt(VLt(),1);import"axios";import eBt from"openapi-enforcer";import{isIP as Tpa}from"node:net";var Kca=Object.defineProperty,be=(e,t)=>Kca(e,"name",{value:t,configurable:!0}),{format:y3i,createLogger:b3i,transports:v3i}=Jca;process.setMaxListeners(0);function cjt(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}be(cjt,"isBytes");function o4(e,t=""){if(!Number.isSafeInteger(e)||e<0){let r=t&&`"${t}" `;throw new Error(`${r}expected integer >= 0, got ${e}`)}}be(o4,"anumber");function f4(e,t,r=""){let n=cjt(e),a=e?.length,i=t!==void 0;if(!n||i&&a!==t){let s=r&&`"${r}" `,o=i?` of length ${t}`:"",l=n?`length=${a}`:`type=${typeof e}`;throw new Error(s+"expected Uint8Array"+o+", got "+l)}return e}be(f4,"abytes");function pjt(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash must wrapped by utils.createHasher");o4(e.outputLen),o4(e.blockLen)}be(pjt,"ahash");function BTe(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}be(BTe,"aexists");function mjt(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}be(mjt,"clean");var hjt=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",Zca=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function KTe(e){if(f4(e),hjt)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=Zca[e[r]];return t}be(KTe,"bytesToHex");var mm={_0:48,_9:57,A:65,F:70,a:97,f:102};function FTe(e){if(e>=mm._0&&e<=mm._9)return e-mm._0;if(e>=mm.A&&e<=mm.F)return e-(mm.A-10);if(e>=mm.a&&e<=mm.f)return e-(mm.a-10)}be(FTe,"asciiToBase16");function yjt(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(hjt)return Uint8Array.fromHex(e);let t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let a=0,i=0;a<r;a++,i+=2){let s=FTe(e.charCodeAt(i)),o=FTe(e.charCodeAt(i+1));if(s===void 0||o===void 0){let l=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+l+'" at index '+i)}n[a]=s*16+o}return n}be(yjt,"hexToBytes");var M3i=BigInt(2**32-1),bjt=BigInt(0);function vjt(e){if(typeof e=="bigint"){if(!Xca(e))throw new Error("positive bigint expected, got "+e)}else o4(e);return e}be(vjt,"abignumber");function YTe(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?bjt:BigInt("0x"+e)}be(YTe,"hexToNumber");function gjt(e){return YTe(KTe(e))}be(gjt,"bytesToNumberBE");function _jt(e){return YTe(KTe(Ejt(f4(e)).reverse()))}be(_jt,"bytesToNumberLE");function JTe(e,t){o4(t),e=vjt(e);let r=yjt(e.toString(16).padStart(t*2,"0"));if(r.length!==t)throw new Error("number too large");return r}be(JTe,"numberToBytesBE");function xjt(e,t){return JTe(e,t).reverse()}be(xjt,"numberToBytesLE");function Ejt(e){return Uint8Array.from(e)}be(Ejt,"copyBytes");var Xca=be(e=>typeof e=="bigint"&&bjt<=e,"isPosBig"),Zs=BigInt(0),Uo=BigInt(1),Ly=BigInt(2),wjt=BigInt(3),Sjt=BigInt(4),Tjt=BigInt(5),Qca=BigInt(7),Ajt=BigInt(8),epa=BigInt(9),qjt=BigInt(16);function Iu(e,t){let r=e%t;return r>=Zs?r:t+r}be(Iu,"mod");function E0(e,t,r){let n=e;for(;t-- >Zs;)n*=n,n%=r;return n}be(E0,"pow2");function UTe(e,t){if(e===Zs)throw new Error("invert: expected non-zero number");if(t<=Zs)throw new Error("invert: expected positive modulus, got "+t);let r=Iu(e,t),n=t,a=Zs,i=Uo,s=Uo,o=Zs;for(;r!==Zs;){let l=n/r,u=n%r,d=a-s*l,c=i-o*l;n=r,r=u,a=s,i=o,s=d,o=c}if(n!==Uo)throw new Error("invert: does not exist");return Iu(a,t)}be(UTe,"invert");function Iee(e,t,r){if(!e.eql(e.sqr(t),r))throw new Error("Cannot find square root")}be(Iee,"assertIsSquare");function ZTe(e,t){let r=(e.ORDER+Uo)/Sjt,n=e.pow(t,r);return Iee(e,n,t),n}be(ZTe,"sqrt3mod4");function Ijt(e,t){let r=(e.ORDER-Tjt)/Ajt,n=e.mul(t,Ly),a=e.pow(n,r),i=e.mul(t,a),s=e.mul(e.mul(i,Ly),a),o=e.mul(i,e.sub(s,e.ONE));return Iee(e,o,t),o}be(Ijt,"sqrt5mod8");function Ojt(e){let t=Oee(e),r=XTe(e),n=r(t,t.neg(t.ONE)),a=r(t,n),i=r(t,t.neg(n)),s=(e+Qca)/qjt;return(o,l)=>{let u=o.pow(l,s),d=o.mul(u,n),c=o.mul(u,a),h=o.mul(u,i),p=o.eql(o.sqr(d),l),m=o.eql(o.sqr(c),l);u=o.cmov(u,d,p),d=o.cmov(h,c,m);let b=o.eql(o.sqr(d),l),v=o.cmov(u,d,b);return Iee(o,v,l),v}}be(Ojt,"sqrt9mod16");function XTe(e){if(e<wjt)throw new Error("sqrt is not defined for small field");let t=e-Uo,r=0;for(;t%Ly===Zs;)t/=Ly,r++;let n=Ly,a=Oee(e);for(;VTe(a,n)===1;)if(n++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(r===1)return ZTe;let i=a.pow(n,t),s=(t+Uo)/Ly;return be(function(o,l){if(o.is0(l))return l;if(VTe(o,l)!==1)throw new Error("Cannot find square root");let u=r,d=o.mul(o.ONE,i),c=o.pow(l,t),h=o.pow(l,s);for(;!o.eql(c,o.ONE);){if(o.is0(c))return o.ZERO;let p=1,m=o.sqr(c);for(;!o.eql(m,o.ONE);)if(p++,m=o.sqr(m),p===u)throw new Error("Cannot find square root");let b=Uo<<BigInt(u-p-1),v=o.pow(d,b);u=p,d=o.sqr(v),c=o.mul(c,d),h=o.mul(h,v)}return h},"tonelliSlow")}be(XTe,"tonelliShanks");function Rjt(e){return e%Sjt===wjt?ZTe:e%Ajt===Tjt?Ijt:e%qjt===epa?Ojt(e):XTe(e)}be(Rjt,"FpSqrt");function Pjt(e,t,r){if(r<Zs)throw new Error("invalid exponent, negatives unsupported");if(r===Zs)return e.ONE;if(r===Uo)return t;let n=e.ONE,a=t;for(;r>Zs;)r&Uo&&(n=e.mul(n,a)),a=e.sqr(a),r>>=Uo;return n}be(Pjt,"FpPow");function Cjt(e,t,r=!1){let n=new Array(t.length).fill(r?e.ZERO:void 0),a=t.reduce((s,o,l)=>e.is0(o)?s:(n[l]=s,e.mul(s,o)),e.ONE),i=e.inv(a);return t.reduceRight((s,o,l)=>e.is0(o)?s:(n[l]=e.mul(s,n[l]),e.mul(s,o)),i),n}be(Cjt,"FpInvertBatch");function VTe(e,t){let r=(e.ORDER-Uo)/Ly,n=e.pow(t,r),a=e.eql(n,e.ONE),i=e.eql(n,e.ZERO),s=e.eql(n,e.neg(e.ONE));if(!a&&!i&&!s)throw new Error("invalid Legendre symbol result");return a?1:i?0:-1}be(VTe,"FpLegendre");function Mjt(e,t){t!==void 0&&o4(t);let r=t!==void 0?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}be(Mjt,"nLength");var tpa=class{static{be(this,"_Field")}ORDER;BITS;BYTES;isLE;ZERO=Zs;ONE=Uo;_lengths;_sqrt;_mod;constructor(e,t={}){if(e<=Zs)throw new Error("invalid field: expected ORDER > 0, got "+e);let r;this.isLE=!1,t!=null&&typeof t=="object"&&(typeof t.BITS=="number"&&(r=t.BITS),typeof t.sqrt=="function"&&(this.sqrt=t.sqrt),typeof t.isLE=="boolean"&&(this.isLE=t.isLE),t.allowedLengths&&(this._lengths=t.allowedLengths?.slice()),typeof t.modFromBytes=="boolean"&&(this._mod=t.modFromBytes));let{nBitLength:n,nByteLength:a}=Mjt(e,r);if(a>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");this.ORDER=e,this.BITS=n,this.BYTES=a,this._sqrt=void 0,Object.preventExtensions(this)}create(e){return Iu(e,this.ORDER)}isValid(e){if(typeof e!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof e);return Zs<=e&&e<this.ORDER}is0(e){return e===Zs}isValidNot0(e){return!this.is0(e)&&this.isValid(e)}isOdd(e){return(e&Uo)===Uo}neg(e){return Iu(-e,this.ORDER)}eql(e,t){return e===t}sqr(e){return Iu(e*e,this.ORDER)}add(e,t){return Iu(e+t,this.ORDER)}sub(e,t){return Iu(e-t,this.ORDER)}mul(e,t){return Iu(e*t,this.ORDER)}pow(e,t){return Pjt(this,e,t)}div(e,t){return Iu(e*UTe(t,this.ORDER),this.ORDER)}sqrN(e){return e*e}addN(e,t){return e+t}subN(e,t){return e-t}mulN(e,t){return e*t}inv(e){return UTe(e,this.ORDER)}sqrt(e){return this._sqrt||(this._sqrt=Rjt(this.ORDER)),this._sqrt(this,e)}toBytes(e){return this.isLE?xjt(e,this.BYTES):JTe(e,this.BYTES)}fromBytes(e,t=!1){f4(e);let{_lengths:r,BYTES:n,isLE:a,ORDER:i,_mod:s}=this;if(r){if(!r.includes(e.length)||e.length>n)throw new Error("Field.fromBytes: expected "+r+" bytes, got "+e.length);let l=new Uint8Array(n);l.set(e,a?0:l.length-e.length),e=l}if(e.length!==n)throw new Error("Field.fromBytes: expected "+n+" bytes, got "+e.length);let o=a?_jt(e):gjt(e);if(s&&(o=Iu(o,i)),!t&&!this.isValid(o))throw new Error("invalid field element: outside of range 0..ORDER");return o}invertBatch(e){return Cjt(this,e)}cmov(e,t,r){return r?t:e}};function Oee(e,t={}){return new tpa(e,t)}be(Oee,"Field");var kjt=class{static{be(this,"_HMAC")}oHash;iHash;blockLen;outputLen;finished=!1;destroyed=!1;constructor(e,t){if(pjt(e),f4(t,void 0,"key"),this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let r=this.blockLen,n=new Uint8Array(r);n.set(t.length>r?e.create().update(t).digest():t);for(let a=0;a<n.length;a++)n[a]^=54;this.iHash.update(n),this.oHash=e.create();for(let a=0;a<n.length;a++)n[a]^=106;this.oHash.update(n),mjt(n)}update(e){return BTe(this),this.iHash.update(e),this}digestInto(e){BTe(this),f4(e,this.outputLen,"output"),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||=Object.create(Object.getPrototypeOf(this),{});let{oHash:t,iHash:r,finished:n,destroyed:a,blockLen:i,outputLen:s}=this;return e=e,e.finished=n,e.destroyed=a,e.blockLen=i,e.outputLen=s,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}},rpa=be((e,t,r)=>new kjt(e,t).update(r).digest(),"hmac");rpa.create=(e,t)=>new kjt(e,t);var k3i=BigInt(0),N3i=BigInt(1),D3i=BigInt(2),$3i=BigInt(3),L3i=BigInt(4),Njt={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},j3i={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},HLt=BigInt(2);function Djt(e){let t=Njt.p,r=BigInt(3),n=BigInt(6),a=BigInt(11),i=BigInt(22),s=BigInt(23),o=BigInt(44),l=BigInt(88),u=e*e*e%t,d=u*u*e%t,c=E0(d,r,t)*d%t,h=E0(c,r,t)*d%t,p=E0(h,HLt,t)*u%t,m=E0(p,a,t)*p%t,b=E0(m,i,t)*m%t,v=E0(b,o,t)*b%t,_=E0(v,l,t)*v%t,w=E0(_,o,t)*b%t,S=E0(w,r,t)*d%t,A=E0(S,s,t)*m%t,W=E0(A,n,t)*u%t,B=E0(W,HLt,t);if(!zLt.eql(zLt.sqr(B),e))throw new Error("Cannot find square root");return B}be(Djt,"sqrtMod");var zLt=Oee(Njt.p,{sqrt:Djt});function $jt(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}be($jt,"isBytes2");function yA(e,t,r=""){let n=$jt(e),a=e?.length,i=t!==void 0;if(!n||i&&a!==t){let s=r&&`"${r}" `,o=i?` of length ${t}`:"",l=n?`length=${a}`:`type=${typeof e}`;throw new Error(s+"expected Uint8Array"+o+", got "+l)}return e}be(yA,"abytes2");function QTe(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}be(QTe,"u32");function bA(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}be(bA,"clean2");function Ljt(e){return e.byteOffset%4===0}be(Ljt,"isAligned32");function jjt(e){return Uint8Array.from(e)}be(jjt,"copyBytes2");var Qd=16,npa=283;function eAe(e){if(![16,24,32].includes(e.length))throw new Error('"aes key" expected Uint8Array of length 16/24/32, got length='+e.length)}be(eAe,"validateKeyLength");function Ree(e){return e<<1^npa&-(e>>7)}be(Ree,"mul2");function HTe(e,t){let r=0;for(;t>0;t>>=1)r^=e&-(t&1),e=Ree(e);return r}be(HTe,"mul");var apa=(()=>{let e=new Uint8Array(256);for(let r=0,n=1;r<256;r++,n^=Ree(n))e[r]=n;let t=new Uint8Array(256);t[0]=99;for(let r=0;r<255;r++){let n=e[255-r];n|=n<<8,t[e[r]]=(n^n>>4^n>>5^n>>6^n>>7^99)&255}return bA(e),t})(),ipa=be(e=>e<<24|e>>>8,"rotr32_8"),jTe=be(e=>e<<8|e>>>24,"rotl32_8");function Bjt(e,t){if(e.length!==256)throw new Error("Wrong sbox length");let r=new Uint32Array(256).map((u,d)=>t(e[d])),n=r.map(jTe),a=n.map(jTe),i=a.map(jTe),s=new Uint32Array(256*256),o=new Uint32Array(256*256),l=new Uint16Array(256*256);for(let u=0;u<256;u++)for(let d=0;d<256;d++){let c=u*256+d;s[c]=r[u]^n[d],o[c]=a[u]^i[d],l[c]=e[u]<<8|e[d]}return{sbox:e,sbox2:l,T0:r,T1:n,T2:a,T3:i,T01:s,T23:o}}be(Bjt,"genTtable");var Fjt=Bjt(apa,e=>HTe(e,3)<<24|e<<16|e<<8|HTe(e,2)),spa=(()=>{let e=new Uint8Array(16);for(let t=0,r=1;t<16;t++,r=Ree(r))e[t]=r;return e})();function Ujt(e){yA(e);let t=e.length;eAe(e);let{sbox2:r}=Fjt,n=[];Ljt(e)||n.push(e=jjt(e));let a=QTe(e),i=a.length,s=be(l=>i4(r,l,l,l,l),"subByte"),o=new Uint32Array(t+28);o.set(a);for(let l=i;l<o.length;l++){let u=o[l-1];l%i===0?u=s(ipa(u))^spa[l/i-1]:i>6&&l%i===4&&(u=s(u)),o[l]=o[l-i]^u}return bA(...n),o}be(Ujt,"expandKeyLE");function mA(e,t,r,n,a,i){return e[r<<8&65280|n>>>8&255]^t[a>>>8&65280|i>>>24&255]}be(mA,"apply0123");function i4(e,t,r,n,a){return e[t&255|r&65280]|e[n>>>16&255|a>>>16&65280]<<16}be(i4,"applySbox");function Vjt(e,t,r,n,a){let{sbox2:i,T01:s,T23:o}=Fjt,l=0;t^=e[l++],r^=e[l++],n^=e[l++],a^=e[l++];let u=e.length/4-2;for(let m=0;m<u;m++){let b=e[l++]^mA(s,o,t,r,n,a),v=e[l++]^mA(s,o,r,n,a,t),_=e[l++]^mA(s,o,n,a,t,r),w=e[l++]^mA(s,o,a,t,r,n);t=b,r=v,n=_,a=w}let d=e[l++]^i4(i,t,r,n,a),c=e[l++]^i4(i,r,n,a,t),h=e[l++]^i4(i,n,a,t,r),p=e[l++]^i4(i,a,t,r,n);return{s0:d,s1:c,s2:h,s3:p}}be(Vjt,"encrypt");function Hjt(e){return e instanceof Uint32Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint32Array"}be(Hjt,"isBytes32");function wee(e,t){if(yA(t,16,"block"),!Hjt(e))throw new Error("_encryptBlock accepts result of expandKeyLE");let r=QTe(t),{s0:n,s1:a,s2:i,s3:s}=Vjt(e,r[0],r[1],r[2],r[3]);return r[0]=n,r[1]=a,r[2]=i,r[3]=s,t}be(wee,"encryptBlock");function zTe(e){let t=0;for(let r=Qd-1;r>=0;r--){let n=(e[r]&128)>>>7;e[r]=e[r]<<1|t,t=n}return t&&(e[Qd-1]^=135),e}be(zTe,"dbl");function hA(e,t){if(e.length!==t.length)throw new Error("xorBlock: blocks must have same length");for(let r=0;r<e.length;r++)e[r]=e[r]^t[r];return e}be(hA,"xorBlock");var zjt=class{static{be(this,"_CMAC")}buffer;destroyed;k1;k2;xk;constructor(e){yA(e),eAe(e),this.xk=Ujt(e),this.buffer=new Uint8Array(0),this.destroyed=!1;let t=new Uint8Array(Qd);wee(this.xk,t),this.k1=zTe(t),this.k2=zTe(new Uint8Array(this.k1))}update(e){let{destroyed:t,buffer:r}=this;if(t)throw new Error("CMAC instance was destroyed");yA(e);let n=new Uint8Array(r.length+e.length);return n.set(r),n.set(e,r.length),this.buffer=n,this}digest(){if(this.destroyed)throw new Error("CMAC instance was destroyed");let{buffer:e}=this,t=e.length,r=Math.ceil(t/Qd),n;r===0?(r=1,n=!1):n=t%Qd===0;let a=(r-1)*Qd,i=e.subarray(a),s;if(n)s=hA(new Uint8Array(i),this.k1);else{let l=new Uint8Array(Qd);l.set(i),l[i.length]=128,s=hA(l,this.k2)}let o=new Uint8Array(Qd);for(let l=0;l<r-1;l++){let u=e.subarray(l*Qd,(l+1)*Qd);hA(o,u),wee(this.xk,o)}return hA(o,s),wee(this.xk,o),bA(s),o}destroy(){let{buffer:e,destroyed:t,xk:r,k1:n,k2:a}=this;t||(this.destroyed=!0,bA(e,r,n,a))}},opa=be((e,t)=>new zjt(e).update(t).digest(),"cmac");opa.create=e=>new zjt(e);var See;(function(e){e.RUST="rs",e.C="c",e.JS="js",e.API="api",e.PYTHON="py"})(See||(See={}));var WTe;(function(e){e.API="api"})(WTe||(WTe={}));var fpa={...See,...WTe},B3i=Object.values(fpa),F3i=Object.values(See),WLt;(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"})(WLt||(WLt={}));var GLt;(function(e){e.JSON="json",e.WASM="wasm",e.PLAIN_TXT="txt",e.JS="js",e.DTA="dta",e.PY="py",e.TAR="tar"})(GLt||(GLt={}));var KLt;(function(e){e.SYNC="sync",e.ASYNC="async"})(KLt||(KLt={}));var YLt;(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"})(YLt||(YLt={}));var ec;(function(e){e.FAILED="failed",e.SUCCEED="succeed",e.RUNNING="running"})(ec||(ec={}));var JLt;(function(e){e.ERROR="Error",e.SUCCESS="Success",e.RUNNING="Running"})(JLt||(JLt={}));var ZLt;(function(e){e.ERROR="Error",e.SUCCESS="Success",e.RUNNING="Running",e.INDETERMINATE="Indeterminate"})(ZLt||(ZLt={}));var XLt;(function(e){e.MINIO="minio",e.S3="s3"})(XLt||(XLt={}));var tAe=class{static{be(this,"AuthMethod")}tokens=[];authInputs;parse(e,t){let r=this.parseKeyValuePairs(t);if(e.length==0){this.authInputs=r;return}let n=Object.keys(r);if(e.every(a=>n.includes(a))){let a={};for(let i of e)a[i]=r[i];this.authInputs=a}else throw new Error(`Invalid authString: ${e} are required`)}parseKeyValuePairs(e){try{let t=e.split(","),r={};for(let n of t){let[a,i]=n.split(":");r[a.trim()]=i.trim()}return r}catch{throw new Error("Invalid auth string")}}},lpa=class extends tAe{static{be(this,"AwsSignature")}tokens=["accessKey","secretKey"];constructor(e){super(),this.parse(this.tokens,e)}authHeaders(e){return Wjt.default.sign(e,{accessKeyId:this.authInputs.accessKey,secretAccessKey:this.authInputs.secretKey}).headers||{}}},upa=class extends tAe{static{be(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}`)}`}}},dpa=class extends tAe{static{be(this,"CustomHeader")}tokens=[];constructor(e){super(),this.parse([],e)}authHeaders(e){return{...this.authInputs}}},s4;(function(e){e.AWS_SIGNATURE="aws-signature",e.BASIC_AUTH="basic-auth",e.CUSTOM_HEADER="custom-header"})(s4||(s4={}));var cpa=be((e,t)=>{switch(e){case s4.AWS_SIGNATURE:return new lpa(t);case s4.BASIC_AUTH:return new upa(t);case s4.CUSTOM_HEADER:return new dpa(t);default:throw new Error(`Invalid authentication method specified. Should be one of <${Object.values(s4)}>`)}},"createApiAuthParser"),QLt;(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.REQUEST_SLASH="request_slash",e.RETRY_SLASH="retry_slash",e.RETRY_DEREGISTER="retry_deregister",e.ENTITLEMENT="entitlement",e.HEALTH_CHECK="health_check",e.TASK_REQUEST_WALLET="task_request_wallet",e.TASK_REQUEST_API_KEY="task_request_api_key",e.TASK_REQUEST_BLOCKCHAIN="task_request_blockchain",e.GET_EXECUTION_STATUS="get_execution_status",e.CHECK_DUPLICATED_EXECUTION="check_duplicated_execution",e.CHECK_DUPLICATED_EXECUTION_RESPONSE="check_duplicated_execution_response",e.GET_INVOICES_COUNT="get_invoices_count",e.GET_INVOICES_COUNT_RESPONSE="get_invoices_count_response",e.GET_EXECUTION_TRANSCRIPT="get_execution_transcript",e.GET_EXECUTION_TRANSCRIPT_RESPONSE="get_execution_transcript_response",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",e.HTTP_GATEWAY_TASK_STATUS_RESPONSE="http_gateway_task_status_response",e.HTTP_GATEWAY_TASK_RESPONSE="http_gateway_task_response"})(QLt||(QLt={}));var af;(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.RETRY_SLASH="retry_slash",e.RETRY_DEREGISTER="retry_deregister",e.TASK_REQUEST_WALLET="task_request_wallet",e.TASK_REQUEST_BLOCKCHAIN="task_request_blockchain",e.TASK_REQUEST_API_KEY="task_request_api_key",e.GET_EXECUTION_STATUS="get_execution_status",e.TASK_RESPONSE_HTTP="task_response_http",e.TASK_RESPONSE_BLOCKCHAIN="task_response_blockchain",e.CHECK_DUPLICATED_EXECUTION="check_duplicated_execution",e.CHECK_DUPLICATED_EXECUTION_RESPONSE="check_duplicated_execution_response",e.GET_INVOICES_COUNT="get_invoices_count",e.GET_INVOICES_COUNT_RESPONSE="get_invoices_count_response",e.GET_EXECUTION_TRANSCRIPT="get_execution_transcript",e.GET_EXECUTION_TRANSCRIPT_RESPONSE="get_execution_transcript_response"})(af||(af={}));var ejt;(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"})(ejt||(ejt={}));var tjt;(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.RETRY_SLASH="retry_slash",e.RETRY_DEREGISTER="retry_deregister",e.TASK_REQUEST_WALLET="task_request_wallet",e.TASK_REQUEST_API_KEY="task_request_api_key",e.TASK_REQUEST_BLOCKCHAIN="task_request_blockchain",e.GET_EXECUTION_STATUS="get_execution_status",e.TASK_RESPONSE_HTTP="task_response_http",e.TASK_RESPONSE_BLOCKCHAIN="task_response_blockchain",e.CHECK_DUPLICATED_EXECUTION="check_duplicated_execution",e.CHECK_DUPLICATED_EXECUTION_RESPONSE="check_duplicated_execution_response",e.GET_INVOICES_COUNT="get_invoices_count",e.GET_INVOICES_COUNT_RESPONSE="get_invoices_count_response",e.GET_EXECUTION_TRANSCRIPT="get_execution_transcript",e.GET_EXECUTION_TRANSCRIPT_RESPONSE="get_execution_transcript_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"})(tjt||(tjt={}));var rjt;(function(e){e.VALIDATION_ERROR="validation_error"})(rjt||(rjt={}));var Tee;(function(e){e.GAME_PENDING="GamePending",e.READY_FOR_INVOICE="ReadyForInvoice",e.CONTROL_NODE_TIMEOUT="ControlNodeTimeout",e.ERROR="Error"})(Tee||(Tee={}));var njt;(function(e){e.HTTP_GATEWAY_TASK_RESPONSE="http_gateway_task_response",e.HTTP_GATEWAY_TASK_STATUS_RESPONSE="http_gateway_task_status_response"})(njt||(njt={}));var ajt;(function(e){let t;(function(n){n.Pay="pay",n.Charge="charge",n.Penalty="penalty"})(t=e.Operation||(e.Operation={}));let r;(function(n){n.IS_USER_REGISTER="isUserRegister"})(r=e.EntitlementOperation||(e.EntitlementOperation={}))})(ajt||(ajt={}));var ijt;(function(e){e.Pay="pay",e.Charge="charge",e.Penalty="penalty"})(ijt||(ijt={}));var W3i=[af.TASK_SOLVED,af.TASK_CREATED,af.API_TASK_CREATED,af.NODE_OUTCOME,af.SOLUTIONS_REVEALED,af.REVEAL_SOLUTIONS,af.API_OUTCOME,af.EXECUTION_COMPLETED,af.EXECUTION_METADATA,af.ADJUDICATION_OUTCOME],sjt;(function(e){e.EXECUTE_TRANSACTION="EXECUTE_TRANSACTION",e.GET_TRANSACTION="GET_TRANSACTION",e.GET_TRANSACTION_BY_HASH="GET_TRANSACTION_BY_HASH",e.GET_TRANSACTIONS_BY_STATUS="GET_TRANSACTIONS_BY_STATUS",e.REGISTER_USER="REGISTER_USER",e.AUTH_CHECK_WALLET="AUTH_CHECK_WALLET",e.AUTH_CHECK_API_KEY="AUTH_CHECK_API_KEY",e.AUTH_CHECK_BLOCKCHAIN="AUTH_CHECK_BLOCKCHAIN",e.RESOLVE_AUTHORIZATION="RESOLVE_AUTHORIZATION",e.FETCH_NODES="FETCH_NODES"})(sjt||(sjt={}));var ojt;(function(e){e.AUTHORIZATION_REGISTER="authorization.register",e.AUTHORIZATION_DEREGISTER="authorization.deregister",e.TASKREGISTRY_REGISTER_NAMESPACE="taskregistry.registerNamespace",e.TASKREGISTRY_REGISTER_TASK="taskregistry.registerTask",e.STAKING_SLASH="staking.slash",e.NODEREGISTRY_DEREGISTER="noderegistry.deregister",e.WATCHTOWER_CALLBACK="watchtower.callback"})(ojt||(ojt={}));function l1(){return function(e,t){(0,rAe.registerDecorator)({name:"IsUnixTimestamp",target:e.constructor,propertyName:t,validator:{validate(r){let n=r,a=new Date(n);return!isNaN(a.getTime())&&n>16725312e5}}})}}be(l1,"IsUnixTimestamp");function nAe(){return function(e,t){(0,rAe.registerDecorator)({name:"IsUnixTimestamp",target:e.constructor,propertyName:t,validator:{validate(r){let n=r,a=new Date(n);return!isNaN(a.getTime())&&n>1672531200}}})}}be(nAe,"IsUnixTimestampSeconds");var Qt=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},er=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},fjt;(function(e){e.FREE="free",e.DEV="dev",e.UNLIMITED="unlimited"})(fjt||(fjt={}));var o1=class{static{be(this,"EncryptedSolution")}iv;ephemPublicKey;ciphertext;mac;constructor(e,t,r,n){this.iv=e,this.ephemPublicKey=t,this.ciphertext=r,this.mac=n}};Qt([(0,De.IsNotEmpty)(),(0,De.IsString)(),er("design:type",String)],o1.prototype,"iv",void 0);Qt([(0,De.IsNotEmpty)(),(0,De.IsString)(),er("design:type",String)],o1.prototype,"ephemPublicKey",void 0);Qt([(0,De.IsNotEmpty)(),(0,De.IsString)(),er("design:type",String)],o1.prototype,"ciphertext",void 0);Qt([(0,De.IsNotEmpty)(),(0,De.IsString)(),er("design:type",String)],o1.prototype,"mac",void 0);var qn=class{static{be(this,"Signature")}v;r;s;constructor(e,t,r){this.v=e,this.r=t,this.s=r}};Qt([(0,De.IsNotEmpty)(),(0,De.IsNumber)(),er("design:type",Number)],qn.prototype,"v",void 0);Qt([(0,De.IsNotEmpty)(),(0,De.IsString)(),er("design:type",String)],qn.prototype,"r",void 0);Qt([(0,De.IsNotEmpty)(),(0,De.IsString)(),er("design:type",String)],qn.prototype,"s",void 0);var l4=class{static{be(this,"ExecutionOutputMeteringLast")}memoryGrowDelta;call;frame;steps;constructor(e,t,r,n){this.call=e,this.frame=t,this.steps=r,this.memoryGrowDelta=n}};Qt([(0,De.IsNumber)(),(0,De.IsOptional)(),er("design:type",Number)],l4.prototype,"memoryGrowDelta",void 0);Qt([(0,De.IsNumber)(),(0,De.IsNotEmpty)(),er("design:type",Number)],l4.prototype,"call",void 0);Qt([(0,De.IsNumber)(),(0,De.IsNotEmpty)(),er("design:type",Number)],l4.prototype,"frame",void 0);Qt([(0,De.IsNumber)(),(0,De.IsNotEmpty)(),er("design:type",Number)],l4.prototype,"steps",void 0);var u4=class{static{be(this,"ExecutionOutputMeteringLimits")}call;frame;gas;memory;constructor(e,t,r,n){this.call=e,this.frame=t,this.gas=r,this.memory=n}};Qt([(0,De.IsNumber)(),(0,De.IsNotEmpty)(),er("design:type",Number)],u4.prototype,"call",void 0);Qt([(0,De.IsNumber)(),(0,De.IsNotEmpty)(),er("design:type",Number)],u4.prototype,"frame",void 0);Qt([(0,De.IsNumber)(),(0,De.IsNotEmpty)(),er("design:type",Number)],u4.prototype,"gas",void 0);Qt([(0,De.IsNumber)(),(0,De.IsNotEmpty)(),er("design:type",Number)],u4.prototype,"memory",void 0);var vA=class{static{be(this,"ExecutionOutputMeteringPeak")}call;frame;memory;constructor(e,t,r){this.call=e,this.frame=t,this.memory=r}};Qt([(0,De.IsNumber)(),(0,De.IsNotEmpty)(),er("design:type",Number)],vA.prototype,"call",void 0);Qt([(0,De.IsNumber)(),(0,De.IsNotEmpty)(),er("design:type",Number)],vA.prototype,"frame",void 0);Qt([(0,De.IsNumber)(),(0,De.IsNotEmpty)(),er("design:type",Number)],vA.prototype,"memory",void 0);var GTe=class{static{be(this,"ExecutionOutputMeteringVersions")}protocol;constructor(e){this.protocol=e}};Qt([(0,De.IsString)(),(0,De.IsNotEmpty)(),er("design:type",String)],GTe.prototype,"protocol",void 0);var f1=class{static{be(this,"ExecutionOutputMetering")}last;limits;peak;versions;constructor(e,t,r,n){this.last=e,this.limits=t,this.peak=r,this.versions=n}};Qt([(0,De.ValidateNested)(),(0,u1.Type)(()=>l4),er("design:type",l4)],f1.prototype,"last",void 0);Qt([(0,De.ValidateNested)(),(0,u1.Type)(()=>u4),er("design:type",u4)],f1.prototype,"limits",void 0);Qt([(0,De.ValidateNested)(),(0,u1.Type)(()=>vA),er("design:type",vA)],f1.prototype,"peak",void 0);Qt([(0,De.IsOptional)(),(0,De.ValidateNested)(),(0,u1.Type)(()=>GTe),er("design:type",GTe)],f1.prototype,"versions",void 0);var d4=class{static{be(this,"ClearTextSolution")}senderAddress;status;output;metering;constructor(e,t,r,n){this.senderAddress=e,this.status=t,this.output=r,this.metering=n}};Qt([(0,De.IsNotEmpty)(),(0,De.IsEthereumAddress)(),er("design:type",String)],d4.prototype,"senderAddress",void 0);Qt([(0,De.IsNotEmpty)(),(0,De.IsEnum)(ec),er("design:type",String)],d4.prototype,"status",void 0);Qt([(0,De.IsOptional)(),(0,De.IsString)(),er("design:type",String)],d4.prototype,"output",void 0);Qt([(0,De.IsOptional)(),(0,De.ValidateNested)(),(0,u1.Type)(()=>f1),er("design:type",f1)],d4.prototype,"metering",void 0);var aAe=class{static{be(this,"ClearTextSolutionSigned")}signature;clearTextSolution;constructor(e,t){this.signature=e,this.clearTextSolution=t}};Qt([(0,De.ValidateNested)(),(0,u1.Type)(()=>qn),er("design:type",qn)],aAe.prototype,"signature",void 0);Qt([(0,De.ValidateNested)(),(0,u1.Type)(()=>d4),er("design:type",d4)],aAe.prototype,"clearTextSolution",void 0);var hm=class{static{be(this,"WorkersParams")}blockNumber;selectionStrategy;setNodes;constructor(e,t,r){this.blockNumber=e,this.selectionStrategy=t,this.setNodes=r}};Qt([(0,De.IsNotEmpty)(),(0,De.Min)(0),er("design:type",Number)],hm.prototype,"blockNumber",void 0);Qt([(0,De.IsNotEmpty)(),(0,De.IsString)(),er("design:type",String)],hm.prototype,"selectionStrategy",void 0);Qt([(0,De.ArrayNotEmpty)(),(0,De.IsNotEmpty)({each:!0}),(0,De.IsEthereumAddress)({each:!0}),er("design:type",Array)],hm.prototype,"setNodes",void 0);var tc=class{static{be(this,"TaskExecutionLimitsParams")}gas;call;frame;memory;constructor(e,t,r,n){this.gas=e,this.call=t,this.frame=r,this.memory=n}};Qt([(0,De.IsNotEmpty)(),(0,De.IsString)(),er("design:type",String)],tc.prototype,"gas",void 0);Qt([(0,De.IsNotEmpty)(),(0,De.IsString)(),er("design:type",String)],tc.prototype,"call",void 0);Qt([(0,De.IsNotEmpty)(),(0,De.IsString)(),er("design:type",String)],tc.prototype,"frame",void 0);Qt([(0,De.IsNotEmpty)(),(0,De.IsString)(),er("design:type",String)],tc.prototype,"memory",void 0);var rc=class{static{be(this,"EconParams")}reward;requiredSolutions;totalSolutions;executionTimeout;constructor(e,t,r,n){this.reward=e,this.requiredSolutions=t,this.totalSolutions=r,this.executionTimeout=n}};Qt([(0,De.IsNotEmpty)(),(0,De.IsString)(),er("design:type",String)],rc.prototype,"reward",void 0);Qt([(0,De.Min)(1),(0,De.IsNotEmpty)(),(0,De.IsNumber)(),er("design:type",Number)],rc.prototype,"requiredSolutions",void 0);Qt([(0,De.Min)(1),(0,De.IsNotEmpty)(),(0,De.IsNumber)(),er("design:type",Number)],rc.prototype,"totalSolutions",void 0);Qt([(0,De.Min)(1),(0,De.IsNotEmpty)(),(0,De.IsNumber)(),er("design:type",Number)],rc.prototype,"executionTimeout",void 0);var Aee=class{static{be(this,"TotalTransferredBytes")}request;response;constructor(e,t){this.request=e,this.response=t}};Qt([(0,De.IsNotEmpty)(),(0,De.IsNumber)(),er("design:type",Number)],Aee.prototype,"request",void 0);Qt([(0,De.IsNotEmpty)(),(0,De.IsNumber)(),er("design:type",Number)],Aee.prototype,"response",void 0);var ljt;(function(e){e.MINIO="minio",e.S3="s3"})(ljt||(ljt={}));var c4=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},p4=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},m4=class{static{be(this,"BaseMessage")}msgType;messageId;payload;msgTimestamp=Date.now();constructor(e,t){this.msgType=this.constructor.name,this.messageId=t||ppa(),this.payload=e}};c4([(0,Vo.IsNotEmpty)(),(0,Vo.IsString)(),p4("design:type",String)],m4.prototype,"msgType",void 0);c4([(0,Vo.IsOptional)(),(0,Vo.IsUUID)(),p4("design:type",String)],m4.prototype,"messageId",void 0);c4([(0,Vo.ValidateNested)(),p4("design:type",Object)],m4.prototype,"payload",void 0);c4([l1(),p4("design:type",Number)],m4.prototype,"msgTimestamp",void 0);var mpa=class extends m4{static{be(this,"FailedMessage")}error;constructor(e,t,r){super(t,r),this.error=e}};c4([(0,Vo.IsNotEmpty)(),(0,Vo.IsString)(),p4("design:type",String)],mpa.prototype,"error",void 0);var hpa=class extends m4{static{be(this,"InvalidMessage")}error;constructor(e,t,r){super(t,r),this.error=e}};c4([(0,Vo.IsNotEmpty)(),(0,Vo.IsString)(),p4("design:type",String)],hpa.prototype,"error",void 0);var qee;(function(e){e.EVM="evm",e.AVALANCHE="avalanche"})(qee||(qee={}));var xt=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Et=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},nc;(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"})(nc||(nc={}));var Ou=class{static{be(this,"BaseTranscriptRecord")}type;executionId;message;msgHash;signature;sequencerAddress;timestamp;constructor(e,t,r,n,a,i,s){this.type=e,this.executionId=t,this.message=n,this.msgHash=r,this.signature=a,this.timestamp=s,this.sequencerAddress=i}};xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsEnum)(nc),Et("design:type",String)],Ou.prototype,"type",void 0);xt([(0,Ie.IsUUID)(),(0,Ie.IsNotEmpty)(),Et("design:type",String)],Ou.prototype,"executionId",void 0);xt([(0,Ie.ValidateNested)(),Et("design:type",Object)],Ou.prototype,"message",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsHash)("sha256"),Et("design:type",String)],Ou.prototype,"msgHash",void 0);xt([(0,Ie.ValidateNested)(),(0,ac.Type)(()=>qn),Et("design:type",qn)],Ou.prototype,"signature",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsEthereumAddress)(),Et("design:type",String)],Ou.prototype,"sequencerAddress",void 0);xt([l1(),(0,Ie.IsNotEmpty)(),Et("design:type",Number)],Ou.prototype,"timestamp",void 0);var ia=class{static{be(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,r,n,a,i,s,o,l,u,d,c,h,p,m,b,v,_,w,S,A,W){this.taskId=e,this.executionId=t,this.msgHash=r,this.signature=n,this.limits=a,this.econParams=i,this.workers=s,this.dispatcherTimestamp=o,this.taskRequesterTimestamp=l,this.ledgerName=u,this.blockHash=d,this.blockNumber=c,this.chainId=h,this.nodeRegistryContractAddress=p,this.taskRegistryContractAddress=m,this.taskAuthorizationContractAddress=b,this.taskRequesterAddress=v,this.taskPath=_,this.taskVersion=w,this.signedRequestBody=W,this.senderAddress=S,this.input=A}};xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsString)(),Et("design:type",String)],ia.prototype,"taskId",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsUUID)(),Et("design:type",String)],ia.prototype,"executionId",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsHash)("sha256"),Et("design:type",String)],ia.prototype,"msgHash",void 0);xt([(0,Ie.ValidateNested)(),(0,ac.Type)(()=>qn),Et("design:type",qn)],ia.prototype,"signature",void 0);xt([(0,Ie.ValidateNested)(),(0,ac.Type)(()=>tc),Et("design:type",tc)],ia.prototype,"limits",void 0);xt([(0,Ie.ValidateNested)(),(0,ac.Type)(()=>rc),Et("design:type",rc)],ia.prototype,"econParams",void 0);xt([(0,Ie.ValidateNested)(),(0,ac.Type)(()=>hm),Et("design:type",hm)],ia.prototype,"workers",void 0);xt([(0,Ie.IsNotEmpty)(),nAe(),Et("design:type",Number)],ia.prototype,"dispatcherTimestamp",void 0);xt([(0,Ie.IsNotEmpty)(),nAe(),Et("design:type",Number)],ia.prototype,"taskRequesterTimestamp",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsEnum)(qee),Et("design:type",String)],ia.prototype,"ledgerName",void 0);xt([(0,Ie.IsNotEmpty)(),Et("design:type",String)],ia.prototype,"blockHash",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.Min)(0),Et("design:type",Number)],ia.prototype,"blockNumber",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsString)(),Et("design:type",String)],ia.prototype,"chainId",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsEthereumAddress)(),Et("design:type",String)],ia.prototype,"nodeRegistryContractAddress",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsEthereumAddress)(),Et("design:type",String)],ia.prototype,"taskRegistryContractAddress",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsEthereumAddress)(),Et("design:type",String)],ia.prototype,"taskAuthorizationContractAddress",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsEthereumAddress)(),Et("design:type",String)],ia.prototype,"taskRequesterAddress",void 0);xt([(0,Ie.IsOptional)(),Et("design:type",String)],ia.prototype,"taskPath",void 0);xt([(0,Ie.IsOptional)(),(0,Ie.Min)(0),Et("design:type",Number)],ia.prototype,"taskVersion",void 0);xt([(0,Ie.IsOptional)(),Et("design:type",Object)],ia.prototype,"signedRequestBody",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsEthereumAddress)(),Et("design:type",String)],ia.prototype,"senderAddress",void 0);xt([(0,Ie.IsOptional)(),(0,Ie.Allow)(),Et("design:type",String)],ia.prototype,"input",void 0);var Pi=class{static{be(this,"APITaskCreatedMessageParams")}type="dispatch_task";taskId;executionId;msgHash;signature;ledgerName;blockHash;blockNumber;chainId;taskRegistryContractAddress;taskAuthorizationContractAddress;taskRequesterAddress;taskPath;taskVersion;senderAddress;executionTimeout;input;constructor(e,t,r,n,a,i,s,o,l,u,d,c,h,p,m,b){this.taskId=e,this.executionId=t,this.msgHash=r,this.signature=n,this.executionTimeout=m,this.ledgerName=i,this.blockHash=s,this.blockNumber=o,this.chainId=l,this.taskRegistryContractAddress=u,this.taskAuthorizationContractAddress=d,this.taskRequesterAddress=c,this.taskPath=h,this.taskVersion=p,this.senderAddress=a,this.input=b}};xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsString)(),Et("design:type",String)],Pi.prototype,"taskId",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsUUID)(),Et("design:type",String)],Pi.prototype,"executionId",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsHash)("sha256"),Et("design:type",String)],Pi.prototype,"msgHash",void 0);xt([(0,Ie.ValidateNested)(),(0,ac.Type)(()=>qn),Et("design:type",qn)],Pi.prototype,"signature",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsEnum)(qee),Et("design:type",String)],Pi.prototype,"ledgerName",void 0);xt([(0,Ie.IsNotEmpty)(),Et("design:type",String)],Pi.prototype,"blockHash",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.Min)(0),Et("design:type",Number)],Pi.prototype,"blockNumber",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsString)(),Et("design:type",String)],Pi.prototype,"chainId",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsEthereumAddress)(),Et("design:type",String)],Pi.prototype,"taskRegistryContractAddress",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsEthereumAddress)(),Et("design:type",String)],Pi.prototype,"taskAuthorizationContractAddress",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsEthereumAddress)(),Et("design:type",String)],Pi.prototype,"taskRequesterAddress",void 0);xt([(0,Ie.IsOptional)(),Et("design:type",String)],Pi.prototype,"taskPath",void 0);xt([(0,Ie.IsOptional)(),(0,Ie.Min)(0),Et("design:type",Number)],Pi.prototype,"taskVersion",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsEthereumAddress)(),Et("design:type",String)],Pi.prototype,"senderAddress",void 0);xt([(0,Ie.IsNumber)(),Et("design:type",Number)],Pi.prototype,"executionTimeout",void 0);xt([(0,Ie.IsOptional)(),(0,Ie.Allow)(),Et("design:type",String)],Pi.prototype,"input",void 0);var jy=class{static{be(this,"NodeOutcomeMessageParams")}executionId;senderAddress;encryptedSolution;msgHash;signature;constructor(e,t,r,n,a){this.executionId=e,this.signature=a,this.encryptedSolution=r,this.senderAddress=t,this.msgHash=n}};xt([(0,Ie.IsUUID)(),(0,Ie.IsNotEmpty)(),Et("design:type",String)],jy.prototype,"executionId",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsEthereumAddress)(),Et("design:type",String)],jy.prototype,"senderAddress",void 0);xt([(0,Ie.ValidateNested)(),(0,ac.Type)(()=>o1),Et("design:type",o1)],jy.prototype,"encryptedSolution",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsHash)("sha256"),Et("design:type",String)],jy.prototype,"msgHash",void 0);xt([(0,Ie.ValidateNested)(),(0,ac.Type)(()=>qn),Et("design:type",qn)],jy.prototype,"signature",void 0);var By=class{static{be(this,"ApiOutcomeMessageParams")}executionId;senderAddress;bodyResponse;tlsHandshakeHash;status;totalTransferredBytes;constructor(e,t,r,n,a,i){this.executionId=e,this.bodyResponse=r,this.tlsHandshakeHash=n,this.senderAddress=t,this.status=a,this.totalTransferredBytes=i}};xt([(0,Ie.IsUUID)(),(0,Ie.IsNotEmpty)(),Et("design:type",String)],By.prototype,"executionId",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsEthereumAddress)(),Et("design:type",String)],By.prototype,"senderAddress",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsString)(),Et("design:type",String)],By.prototype,"tlsHandshakeHash",void 0);xt([(0,Ie.IsNotEmpty)(),(0,Ie.IsString)(),Et("design:type",String)],By.prototype,"status",void 0);xt([(0,Ie.ValidateNested)(),(0,ac.Type)(()=>Aee),Et("design:type",Aee)],By.prototype,"totalTransferredBytes",void 0);var Mt=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},kt=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},d1=class{static{be(this,"DispatchTaskPayload")}executionId;msgHash;signature;limits;econParams;workers;senderAddress;input;constructor(e,t,r,n,a,i,s,o){this.executionId=e,this.msgHash=t,this.signature=r,this.limits=n,this.econParams=a,this.workers=i,this.senderAddress=s,this.input=o}};Mt([(0,Ve.IsUUID)(),(0,Ve.IsNotEmpty)(),kt("design:type",String)],d1.prototype,"executionId",void 0);Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsHash)("sha256"),kt("design:type",String)],d1.prototype,"msgHash",void 0);Mt([(0,Ve.ValidateNested)(),(0,vi.Type)(()=>qn),kt("design:type",qn)],d1.prototype,"signature",void 0);Mt([(0,Ve.ValidateNested)(),(0,vi.Type)(()=>tc),kt("design:type",tc)],d1.prototype,"limits",void 0);Mt([(0,Ve.ValidateNested)(),(0,vi.Type)(()=>rc),kt("design:type",rc)],d1.prototype,"econParams",void 0);Mt([(0,Ve.ValidateNested)(),(0,vi.Type)(()=>hm),kt("design:type",hm)],d1.prototype,"workers",void 0);Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsString)(),kt("design:type",String)],d1.prototype,"senderAddress",void 0);Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsString)(),kt("design:type",String)],d1.prototype,"input",void 0);var Pee=class{static{be(this,"UnsignedDispatchTaskPayload")}executionId;limits;econParams;workers;input;constructor(e,t,r,n,a){this.executionId=e,this.limits=t,this.econParams=r,this.workers=n,this.input=a}};Mt([(0,Ve.IsUUID)(),(0,Ve.IsNotEmpty)(),kt("design:type",String)],Pee.prototype,"executionId",void 0);Mt([(0,Ve.ValidateNested)(),(0,vi.Type)(()=>tc),kt("design:type",tc)],Pee.prototype,"limits",void 0);Mt([(0,Ve.ValidateNested)(),(0,vi.Type)(()=>rc),kt("design:type",rc)],Pee.prototype,"econParams",void 0);Mt([(0,Ve.ValidateNested)(),(0,vi.Type)(()=>hm),kt("design:type",hm)],Pee.prototype,"workers",void 0);var ypa=class extends Ou{static{be(this,"NodeOutcomePayload")}message;constructor(e,t,r,n,a,i){super(nc.NODE_OUTCOME,e,t,r,n,a,i),this.message=r,this.executionId=e,this.msgHash=t,this.signature=n,this.timestamp=i,this.sequencerAddress=a,this.message=r}};Mt([(0,Ve.ValidateNested)(),(0,vi.Type)(()=>jy),kt("design:type",jy)],ypa.prototype,"message",void 0);var bpa=class extends Ou{static{be(this,"ApiOutcomePayload")}message;constructor(e,t,r,n,a,i){super(nc.API_OUTCOME,e,t,r,n,a,i),this.message=r,this.executionId=e,this.msgHash=t,this.signature=n,this.timestamp=i,this.sequencerAddress=a}};Mt([(0,Ve.ValidateNested)(),(0,vi.Type)(()=>By),kt("design:type",By)],bpa.prototype,"message",void 0);var Fy=class{static{be(this,"ExecutionCompletedPayload")}type;executionId;transcriptHash;status;signature;signerAddress;timestamp;constructor(e,t,r,n,a,i){this.type=nc.EXECUTION_COMPLETED,this.executionId=e,this.transcriptHash=t,this.status=r,this.signature=n,this.signerAddress=a,this.timestamp=i}};Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsString)(),kt("design:type",String)],Fy.prototype,"type",void 0);Mt([(0,Ve.IsUUID)(),(0,Ve.IsNotEmpty)(),kt("design:type",String)],Fy.prototype,"executionId",void 0);Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsHash)("sha256"),kt("design:type",String)],Fy.prototype,"transcriptHash",void 0);Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsEnum)(Tee),kt("design:type",String)],Fy.prototype,"status",void 0);Mt([(0,Ve.ValidateNested)(),(0,vi.Type)(()=>qn),kt("design:type",qn)],Fy.prototype,"signature",void 0);Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsString)(),kt("design:type",String)],Fy.prototype,"signerAddress",void 0);Mt([l1(),(0,Ve.IsNotEmpty)(),kt("design:type",Number)],Fy.prototype,"timestamp",void 0);var ym=class{static{be(this,"AdjudicationOutcomePayload")}type;executionId;status;signature;senderAddress;timestamp;output;metering;error;constructor(e,t,r,n,a,i,s,o){this.type=nc.ADJUDICATION_OUTCOME,this.executionId=e,this.status=t,this.signature=r,this.senderAddress=n,this.output=i,this.metering=s,this.timestamp=a,this.error=o}};Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsString)(),kt("design:type",String)],ym.prototype,"type",void 0);Mt([(0,Ve.IsUUID)(),(0,Ve.IsNotEmpty)(),kt("design:type",String)],ym.prototype,"executionId",void 0);Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsEnum)(Tee),kt("design:type",String)],ym.prototype,"status",void 0);Mt([(0,Ve.ValidateNested)(),(0,vi.Type)(()=>qn),kt("design:type",qn)],ym.prototype,"signature",void 0);Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsString)(),kt("design:type",String)],ym.prototype,"senderAddress",void 0);Mt([l1(),(0,Ve.IsNotEmpty)(),kt("design:type",Number)],ym.prototype,"timestamp",void 0);Mt([(0,Ve.IsOptional)(),(0,Ve.IsString)(),kt("design:type",String)],ym.prototype,"output",void 0);Mt([(0,Ve.IsOptional)(),(0,Ve.ValidateNested)(),(0,vi.Type)(()=>f1),kt("design:type",f1)],ym.prototype,"metering",void 0);Mt([(0,Ve.IsOptional)(),(0,Ve.IsString)(),kt("design:type",String)],ym.prototype,"error",void 0);var h4=class{static{be(this,"SolutionsRevealedPayload")}type;executionId;signature;clearTextSolutions;sequencerAddress;msgHash;timestamp;constructor(e,t,r,n,a,i){this.type=nc.SOLUTIONS_REVEALED,this.executionId=e,this.signature=t,this.clearTextSolutions=r,this.sequencerAddress=n,this.msgHash=a,this.timestamp=i}};Mt([(0,Ve.IsUUID)(),(0,Ve.IsNotEmpty)(),kt("design:type",String)],h4.prototype,"executionId",void 0);Mt([(0,Ve.ValidateNested)(),(0,vi.Type)(()=>qn),kt("design:type",qn)],h4.prototype,"signature",void 0);Mt([(0,Ve.ValidateNested)({each:!0}),(0,vi.Type)(()=>aAe),kt("design:type",Array)],h4.prototype,"clearTextSolutions",void 0);Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsEthereumAddress)(),kt("design:type",String)],h4.prototype,"sequencerAddress",void 0);Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsHash)("sha256"),kt("design:type",String)],h4.prototype,"msgHash",void 0);Mt([l1(),(0,Ve.IsNotEmpty)(),kt("design:type",Number)],h4.prototype,"timestamp",void 0);var Uy=class extends Ou{static{be(this,"TaskCreatedPayload")}executionId;msgHash;message;signature;publicKey;sequencerAddress;timestamp;constructor(e,t,r,n,a,i,s){super(nc.TASK_CREATED,e,t,r,n,i,s),this.message=r,this.executionId=e,this.msgHash=t,this.signature=n,this.timestamp=s,this.sequencerAddress=i,this.publicKey=a,this.message=r}};Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsUUID)(),kt("design:type",String)],Uy.prototype,"executionId",void 0);Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsHash)("sha256"),kt("design:type",String)],Uy.prototype,"msgHash",void 0);Mt([(0,Ve.ValidateNested)(),(0,vi.Type)(()=>ia),kt("design:type",ia)],Uy.prototype,"message",void 0);Mt([(0,Ve.ValidateNested)(),(0,vi.Type)(()=>qn),kt("design:type",qn)],Uy.prototype,"signature",void 0);Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsString)(),kt("design:type",String)],Uy.prototype,"publicKey",void 0);Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsEthereumAddress)(),kt("design:type",String)],Uy.prototype,"sequencerAddress",void 0);Mt([l1(),(0,Ve.IsNotEmpty)(),kt("design:type",Number)],Uy.prototype,"timestamp",void 0);var Vy=class extends Ou{static{be(this,"APITaskCreatedPayload")}executionId;msgHash;message;signature;publicKey;sequencerAddress;timestamp;constructor(e,t,r,n,a,i,s){super(nc.API_TASK_CREATED,e,t,r,n,i,s),this.message=r,this.executionId=e,this.msgHash=t,this.signature=n,this.timestamp=s,this.sequencerAddress=i,this.publicKey=a,this.message=r}};Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsUUID)(),kt("design:type",String)],Vy.prototype,"executionId",void 0);Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsHash)("sha256"),kt("design:type",String)],Vy.prototype,"msgHash",void 0);Mt([(0,Ve.ValidateNested)(),(0,vi.Type)(()=>Pi),kt("design:type",Pi)],Vy.prototype,"message",void 0);Mt([(0,Ve.ValidateNested)(),(0,vi.Type)(()=>qn),kt("design:type",qn)],Vy.prototype,"signature",void 0);Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsString)(),kt("design:type",String)],Vy.prototype,"publicKey",void 0);Mt([(0,Ve.IsNotEmpty)(),(0,Ve.IsEthereumAddress)(),kt("design:type",String)],Vy.prototype,"sequencerAddress",void 0);Mt([l1(),(0,Ve.IsNotEmpty)(),kt("design:type",Number)],Vy.prototype,"timestamp",void 0);var gA=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},_A=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},xA=class{static{be(this,"ComputedOutcomePayload")}executionId;msgHash;signature;senderAddress;encryptedSolution;constructor(e,t,r,n,a){this.executionId=e,this.msgHash=t,this.signature=r,this.senderAddress=n,this.encryptedSolution=a}};gA([(0,w0.IsUUID)(),(0,w0.IsNotEmpty)(),_A("design:type",String)],xA.prototype,"executionId",void 0);gA([(0,w0.IsNotEmpty)(),(0,w0.IsHash)("sha256"),_A("design:type",String)],xA.prototype,"msgHash",void 0);gA([(0,w0.ValidateNested)(),(0,iAe.Type)(()=>qn),_A("design:type",qn)],xA.prototype,"signature",void 0);gA([(0,w0.IsNotEmpty)(),(0,w0.IsEthereumAddress)(),_A("design:type",String)],xA.prototype,"senderAddress",void 0);gA([(0,w0.ValidateNested)(),(0,iAe.Type)(()=>o1),_A("design:type",o1)],xA.prototype,"encryptedSolution",void 0);var Fr=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Ur=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},vpa=class{static{be(this,"PushTaskPayload")}taskId;constructor(e){this.taskId=e}};Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],vpa.prototype,"taskId",void 0);var gpa=class{static{be(this,"PullTaskPayload")}taskId;constructor(e){this.taskId=e}};Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],gpa.prototype,"taskId",void 0);var sAe=class{static{be(this,"CheckpointTaskPayload")}input;checkpoint;taskId;constructor(e,t,r){this.taskId=e,this.checkpoint=t,this.input=r}};Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],sAe.prototype,"input",void 0);Fr([(0,st.IsNotEmpty)(),Ur("design:type",Object)],sAe.prototype,"checkpoint",void 0);Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],sAe.prototype,"taskId",void 0);var Gjt=class{static{be(this,"ListTaskCheckpointPayload")}input;taskId;constructor(e,t){this.taskId=e,this.input=t}};Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],Gjt.prototype,"input",void 0);Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],Gjt.prototype,"taskId",void 0);var oAe=class{static{be(this,"ExecuteTaskPayload")}executionId;input;taskId;constructor(e,t,r){this.taskId=e,this.executionId=t,this.input=r}};Fr([(0,st.IsNotEmpty)(),(0,st.IsUUID)(),Ur("design:type",String)],oAe.prototype,"executionId",void 0);Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],oAe.prototype,"input",void 0);Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],oAe.prototype,"taskId",void 0);var Kjt=class{static{be(this,"InstrumentTaskPayload")}instrumentationId;taskId;constructor(e,t){this.taskId=e,this.instrumentationId=t}};Fr([(0,st.IsNotEmpty)(),(0,st.IsUUID)(),Ur("design:type",String)],Kjt.prototype,"instrumentationId",void 0);Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],Kjt.prototype,"taskId",void 0);var _pa=class{static{be(this,"TaskPushedPayload")}taskId;constructor(e){this.taskId=e}};Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],_pa.prototype,"taskId",void 0);var xpa=class{static{be(this,"TaskPulledPayload")}taskId;constructor(e){this.taskId=e}};Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],xpa.prototype,"taskId",void 0);var Epa=class{static{be(this,"TaskPulledFailedPayload")}taskId;constructor(e){this.taskId=e}};Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],Epa.prototype,"taskId",void 0);var Yjt=class{static{be(this,"TaskCheckpointedPayload")}checkpointHash;taskId;constructor(e,t){this.taskId=e,this.checkpointHash=t}};Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],Yjt.prototype,"checkpointHash",void 0);Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],Yjt.prototype,"taskId",void 0);var wpa=class{static{be(this,"TaskCheckpointedFailedPayload")}taskId;constructor(e){this.taskId=e}};Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],wpa.prototype,"taskId",void 0);var Jjt=class{static{be(this,"TaskCheckpointsListedPayload")}checkpointCount;taskId;constructor(e,t){this.taskId=e,this.checkpointCount=t}};Fr([(0,st.IsNotEmpty)(),(0,st.IsNumber)(),Ur("design:type",Number)],Jjt.prototype,"checkpointCount",void 0);Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],Jjt.prototype,"taskId",void 0);var Spa=class{static{be(this,"TaskCheckpointsListFailedPayload")}taskId;constructor(e,t){this.taskId=t}};Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],Spa.prototype,"taskId",void 0);var fAe=class{static{be(this,"TaskExecutedPayload")}executionId;output;taskId;constructor(e,t,r){this.taskId=e,this.executionId=t,this.output=r}};Fr([(0,st.IsNotEmpty)(),(0,st.IsUUID)(),Ur("design:type",String)],fAe.prototype,"executionId",void 0);Fr([(0,st.IsOptional)(),(0,st.IsString)(),Ur("design:type",String)],fAe.prototype,"output",void 0);Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],fAe.prototype,"taskId",void 0);var Zjt=class{static{be(this,"TaskExecutionFailedPayload")}executionId;taskId;constructor(e,t,r){this.taskId=t,this.executionId=r}};Fr([(0,st.IsNotEmpty)(),(0,st.IsUUID)(),Ur("design:type",String)],Zjt.prototype,"executionId",void 0);Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],Zjt.prototype,"taskId",void 0);var Cee=class{static{be(this,"TaskInstrumentedPayload")}instrumentationId;output;taskId;instrumentedTaskId;constructor(e,t,r,n){this.taskId=e,this.instrumentationId=t,this.output=n,this.instrumentedTaskId=r}};Fr([(0,st.IsNotEmpty)(),(0,st.IsUUID)(),Ur("design:type",String)],Cee.prototype,"instrumentationId",void 0);Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],Cee.prototype,"output",void 0);Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],Cee.prototype,"taskId",void 0);Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],Cee.prototype,"instrumentedTaskId",void 0);var Xjt=class{static{be(this,"TaskInstrumentedFailedPayload")}instrumentationId;taskId;constructor(e,t,r){this.taskId=t,this.instrumentationId=r}};Fr([(0,st.IsNotEmpty)(),(0,st.IsUUID)(),Ur("design:type",String)],Xjt.prototype,"instrumentationId",void 0);Fr([(0,st.IsNotEmpty)(),(0,st.IsString)(),Ur("design:type",String)],Xjt.prototype,"taskId",void 0);var ujt;(function(e){e.ACTIVE="active",e.INACTIVE="inactive"})(ujt||(ujt={}));async function lAe(e,t,r,n,a,i,s){let o={},l=0,u=0,d=LTe.create({headers:{Connection:"keep-alive"},httpsAgent:new Yca.Agent({keepAlive:!0}).on("keylog",(c,h)=>{let p=h.getSession(),m=Buffer.from(p).toString("hex").toUpperCase();o={tlsCert:Uue(h.getPeerCertificate(!0)),localCertificate:Uue(h.getCertificate()),ephemeral:h.getEphemeralKeyInfo(),cipher:h.getCipher(),session:m,ticket:h.getTLSTicket(),localAddress:h.localAddress,sharedSigAlgs:h.getSharedSigalgs(),remoteAddress:h.remoteAddress,protocol:h.getProtocol()}}),maxContentLength:1/0,maxBodyLength:1/0});d.interceptors.request.use(c=>{let h=c.data?JSON.stringify(c.data):"";return l=(c.url?.length||0)+(h.length||0)+JSON.stringify(c.headers).length,c}),d.interceptors.response.use(c=>(u=JSON.stringify(c.data).length+JSON.stringify(c.headers).length,c));try{let c;if(e=="cli"||Qjt(t.url))switch(t.method.toLowerCase()){case"get":c=await d.get(t.url,{headers:t.headers,timeout:r});break;case"patch":c=await d.patch(t.url,t.body,{headers:t.headers,timeout:r});break;case"post":c=await d.post(t.url,t.body,{headers:t.headers,timeout:r});break;case"put":c=await d.put(t.url,t.body,{headers:t.headers,timeout:r});break;case"delete":c=await d.delete(t.url,{headers:t.headers,timeout:r});break;default:throw new Error("Unsupported HTTP method")}else{let h=new djt.default;h.append("taskId",e),s&&h.append("executionId",s),n&&h.append("namespace",n),a&&h.append("taskname",a),h.append("url",t.url),h.append("method",t.method.toLowerCase()),h.append("headers",JSON.stringify(t.headers)),h.append("body",typeof t.body=="object"?JSON.stringify(t.body):t.body??void 0),h.append("timeout",r.toString()),i&&h.append("manifest",Buffer.from(i),{filename:"manifest.json",contentType:"application/json"}),c=await LTe.post(`${process.env.NITRO_URL}/callAPI`,h,{timeout:24e4,headers:{...h.getHeaders()}})}return[c.data,JSON.stringify(o),ec.SUCCEED,l,u]}catch(c){let h,p;return c.response?.data?p=JSON.stringify(c.response.data):p=c.message,LTe.isAxiosError(c)?h=c.response||{data:p,status:500,statusText:"",headers:{},config:{headers:{}}}:h={data:p,status:500,statusText:"",headers:{},config:{headers:{}}},[h.data,JSON.stringify(o),ec.FAILED,l,u]}}be(lAe,"handleAxiosCall");function Qjt(e){let t=new Set(["localhost","127.0.0.1","hardhat-node","n8n-node","dispatcher"]),r=!!process.env.ENABLE_AXIOS_LOCAL_CALL;try{let n=new URL(e).hostname;return t.has(n)&&r}catch{return!1}}be(Qjt,"isAxiosLocalCall");function rBt(e){let t=e.split(".").map(Number);return t.length!==4||t.some(r=>Number.isNaN(r)||r<0||r>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}be(rBt,"isPrivateIP");function nBt(e){if(["local","testnet","staging"].includes(process.env.TRUEBIT_ENV))return[!0,""];try{let t=new URL(e),r=t.hostname;if(!["http:","https:"].includes(t.protocol))return[!1,"Only HTTP and HTTPS protocols are allowed"];if(Tpa(r)){if(rBt(r))return[!1,"Internal IP addresses are not allowed"]}else{let n=[".local",".internal",".cluster.local","localhost","kubernetes","kubernetes.default","kubernetes.default.svc","kubernetes.default.svc.cluster.local"],a=r.toLowerCase();for(let i of n)if(a===i||a.endsWith(i))return[!1,"Internal domains are not allowed"]}return[!0,""]}catch{return[!1,"Invalid URL format"]}}be(nBt,"validateExternalUrl");function uAe(e){let t=e.servers;if(t&&t.length>0){let r=t[0],n=r.url;return r.variables&&Object.keys(r.variables).forEach(a=>{let i=r.variables[a],s=i.default||i.enum?.[0];if(s===void 0)throw new Error(`No default value found for variable ${a}`);n=n.replace(`{${a}}`,s)}),n}else throw new Error("No servers defined in OpenAPI document")}be(uAe,"getBaseURLFromOpenAPI");function aBt(e,t,r){let n=e.paths?.[t];if(!n)return null;let a=n[r.toLowerCase()];return a&&a.operationId||null}be(aBt,"findOperationId");function iBt(e,t,r){let n=t;r&&Object.entries(r).forEach(([s,o])=>{n=n.replace(`{${s}}`,encodeURIComponent(String(o)))});let a=e.endsWith("/")?e.slice(0,-1):e,i=n.startsWith("/")?n:`/${n}`;return`${a}${i}`}be(iBt,"buildUrlWithPathParams");function Mee(e,t,r){let n=new Map,a=e.paths?.[t];if(!a)return n;let i=a.parameters||[],s=a[r.toLowerCase()]?.parameters||[],o=[...i,...s];for(let u of o)"name"in u&&"in"in u&&n.set(u.name,u.in);let l=t.match(/\{([^}]+)\}/g);return l&&l.forEach(u=>{let d=u.slice(1,-1);n.has(d)||n.set(d,"path")}),n}be(Mee,"categorizeParameters");function sBt(e,t,r,n){if(!n||Object.keys(n).length===0)return"";let a=Mee(e,t,r),i=Object.entries(n).filter(([s])=>{let o=a.get(s);return o==="query"||!o}).map(([s,o])=>Array.isArray(o)?o.map(l=>`${encodeURIComponent(s)}=${encodeURIComponent(String(l))}`).join("&"):`${encodeURIComponent(s)}=${encodeURIComponent(String(o))}`).join("&");return i?`?${i}`:""}be(sBt,"buildQueryString");function oBt(e,t,r,n){let a={};if(!n||Object.keys(n).length===0)return a;let i=Mee(e,t,r);for(let[s,o]of Object.entries(n))i.get(s)==="header"&&(a[s]=String(o));return a}be(oBt,"extractHeaderParams");function fBt(e,t,r,n){if(!n||Object.keys(n).length===0)return null;let a=Mee(e,t,r),i=[];for(let[s,o]of Object.entries(n))a.get(s)==="cookie"&&i.push(`${encodeURIComponent(s)}=${encodeURIComponent(String(o))}`);return i.length>0?i.join("; "):null}be(fBt,"extractCookieParams");async function kee(e,t){let r=await eBt(e),n=aBt(r,t.path,t.method);if(n){let a=t.body;if(typeof t.body=="string"&&t.body.includes("=")){let u=new URLSearchParams(t.body);a=Object.fromEntries(u.entries())}let i={spec:r,operationId:n,parameters:t.params||{},requestBody:a,securities:t.securities,server:t.server,serverVariables:t.serverVariables,responseContentType:t.responseContentType};t.requestContentType&&(i.requestContentType=t.requestContentType);let s=tBt.default.buildRequest(i),o=new Set(Object.keys(t.headers||{}).map(u=>u.toLowerCase())),l={...Object.fromEntries(Object.entries(s.headers).filter(([u])=>!o.has(u.toLowerCase()))),...t.headers};return{url:s.url,method:s.method.toUpperCase(),headers:l,body:s.body}}else{let a=uAe(r),i=iBt(a,t.path,t.params),s=sBt(r,t.path,t.method,t.params),o=oBt(r,t.path,t.method,t.params),l=fBt(r,t.path,t.method,t.params),u=t.requestContentType||"application/json",d={...o,...t.headers};l&&(d.Cookie=d.Cookie?`${d.Cookie}; ${l}`:l);let c;return t.body&&(typeof t.body=="string"?c=t.body:u==="application/x-www-form-urlencoded"?c=new URLSearchParams(t.body).toString():c=JSON.stringify(t.body)),{url:`${i}${s}`,method:t.method.toUpperCase(),headers:d,body:c}}}be(kee,"createRequest");async function dAe(e,t){try{let r=await eBt(e),n=uAe(r),[a,i]=nBt(n);return a?(await kee(e,t),[n,"",ec.SUCCEED]):(console.warn(`Manifest-based call blocked: ${i} - baseURL: ${n}`),["",`Security: ${i}`,ec.FAILED])}catch(r){return console.log(r),["",r,ec.FAILED]}}be(dAe,"handleEnforcerManifestCheck");async function cAe(e){try{let t=JSON.parse(e);return[{path:t.path.toString(),method:t.method.toString(),body:t.body,params:t.params,headers:t.headers||{}},"",ec.SUCCEED]}catch(t){return console.error("Invalid JSON format:",t),[null,"Api_Adapter create request input format",ec.FAILED]}}be(cAe,"createRequestInput");var lBt=be((e,t,r)=>cpa(e,t).authHeaders(r),"handleGetAuthHeaders");import Ru from"chalk";var pAe=async(e,t,r,n)=>{let a="",i=uBt.readFileSync(t,"utf8"),s=JSON.parse(i).input,o=JSON.parse(i).executionTimeout,[l,u,d]=await cAe(JSON.stringify(s));if(a+=`${Ru.cyanBright(`
490
490
  Input request :
491
491
  `)}`,a+=JSON.stringify(l,null,2)+`
492
492
  `,l===null)throw a+=`Invalid message input - ${Ru.red("FAIL")}
@@ -501,7 +501,7 @@ ${r.data.payload.instrumentedTaskId}`);else throw"Malformed instrumentation serv
501
501
  `+Nn.cyan("=".repeat(60))),console.log(Nn.cyan.bold(" Quota Status")),console.log(Nn.cyan("=".repeat(60))+`
502
502
  `),console.log(Nn.white("Wallet Address: ")+Nn.yellow(t)),console.log(Nn.white("Subscription Tier: ")+Nn.green(s.userSubscription.toUpperCase())),s.maxSolutions!==void 0&&console.log(Nn.white("Max Solutions: ")+Nn.green(`${s.maxSolutions}`)),s.quotaMax===0)console.log(Nn.white("Monthly Quota: ")+Nn.green("UNLIMITED")),s.currentUsage!==void 0&&console.log(Nn.white("Current Usage: ")+Nn.yellow(`${s.currentUsage} executions`));else{if(console.log(Nn.white("Monthly Quota: ")+Nn.green(`${s.quotaMax} executions`)),s.currentUsage!==void 0&&(console.log(Nn.white("Current Usage: ")+Nn.yellow(`${s.currentUsage} executions`)),s.remaining!==void 0)){let d=s.remaining===0?Nn.red:s.remaining<s.quotaMax*.2?Nn.yellow:Nn.green;console.log(Nn.white("Remaining: ")+d(`${s.remaining} executions`))}console.log(Nn.white("Quota Resets On: ")+Nn.yellow(u))}console.log(`
503
503
  `+Nn.cyan("=".repeat(60))+`
504
- `)}catch(e){throw e instanceof Error?console.error(Nn.red("Error fetching quota status: ")+e.message):console.error(Nn.red("Error fetching quota status: ")+String(e)),e}}yAe();i0();async function RBt(e){try{console.log("Fetching execution status...");let r=await(await fd()).get(`api/execution/${e}`).catch(B0);if(r.data.message)throw r.data.message;console.log("Task execution status: ",r.data.status),r.data.output&&console.log("Task execution output: ",r.data.output)}catch(t){console.error(`Couldn't fetch execution status for executionId ${e}: ${t}`)}}import MBt from"chalk";import{ethers as kpa}from"ethers";i0();import*as Lee from"crypto";import Ppa from"axios";import bAe from"chalk";function PBt(e){if(Ppa.isAxiosError(e)&&e.response?.data){let t=e.response.data;return console.log(bAe.red(t.message)),typeof t=="string"?t:t.message||JSON.stringify(t)}return e instanceof Error?e.message:String(e)}async function Cpa(e,t){try{let r=F0({namespace:t});return(await e.post("getkey",r)).data}catch(r){return PBt(r),console.error(bAe.red("Failed to retrieve encryption key from Hub-TEE-KMS. Please try again")),null}}function Mpa(e,t){try{let r=Buffer.from(t,"base64"),n=Lee.randomBytes(16),a=Lee.createCipheriv("aes-256-cbc",r,n),i=Buffer.concat([a.update(e,"utf8"),a.final()]);return r.fill(0),{encrypted_authString:i.toString("base64"),iv:n.toString("base64")}}catch{return null}}async function CBt(e,t,r){try{let n=await Cpa(e,r);if(!n)return null;let a=Mpa(t,n.plaintext_key);return a?{encrypted_authString:a.encrypted_authString,encrypted_data_key:n.encryption_key,iv:a.iv}:null}catch(n){return PBt(n),console.error(bAe.red("Failed to encrypt credentials. Please try again.")),null}}async function kBt(e,t,r,n,a,i,s){console.log("Deploying the API Authentication Credentials");try{if(!cBt(i))throw"Invalid private key provided";if(!kpa.isAddress(s))throw"Invalid address provided";if(mie(n,a),!y4(e))throw"Invalid taskId";let o=await TJe();console.log("Encrypting credentials...");let l=await CBt(o,a,t);if(!l)return;let u=F0({taskId:e,namespace:t,taskName:r,method:n,encrypted_authString:l.encrypted_authString,encrypted_data_key:l.encrypted_data_key,iv:l.iv});await o.post("credentials",u).catch(B0),console.log("The encrypted credentials were deployed "+MBt.green("Successfully"))}catch(o){let l=o instanceof Error?o.message:String(o);console.error(MBt.red(l));return}}import{inspect as w6a}from"util";import Ts from"ora";import{v4 as S6a}from"uuid";import{ethers as Xee}from"ethers";var NBt={name:"@truebit/cli",version:"1.120.0-beta.292",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 logs","prebuild:dev":"rimraf build logs","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.13.6",chalk:"5.6.2",colors:"1.4.0",commander:"14.0.3",ethers:"6.16.0",figlet:"1.11.0","form-data":"4.0.5","openapi-enforcer":"1.23.0",ora:"9.3.0","public-ip":"8.0.0","ts-retry":"6.0.0",uuid:"13.0.0"},bin:{truebit:"build/index.mjs"},files:["build"],devDependencies:{"@types/figlet":"1.7.0","@vitest/coverage-v8":"4.1.0",esbuild:"0.27.4",typescript:"5.9.3",vitest:"4.1.0"},engines:{node:">=22.13.0"}};Us();i0();Fc();Us();import{createInterface as Fpa}from"node:readline/promises";import bm from"chalk";i0();import EA from"axios";import{ethers as b4}from"ethers";import{randomBytes as Dpa}from"crypto";import{v4 as $pa}from"uuid";Us();import{ethers as jee}from"ethers";async function DBt(e){Hy(e);let t=_n(ss(),Tt.AVAX),r=jee.keccak256(jee.toUtf8Bytes(e));return await t.authorization.registerAuthorization(r),r}async function vAe(e,t,r=Vr("address")){Hy(e);let n=_n(ss(),Tt.AVAX),a=await n.authorization.getEIP712Domain(),i=await n.authorization.nonces(r),s=Math.floor(Date.now()/1e3)+3600,o={RegisterMeta:[{name:"user",type:"address"},{name:"apiKeyHash",type:"string"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"}]},l=jee.keccak256(jee.toUtf8Bytes(e)),u={user:r,apiKeyHash:l,nonce:Number(i),deadline:s};if(!n.utils)throw new Error("Private key is required for signing operations");let d=await n.utils.signMeta(a,o,u);return(await mBt(r,l,s,d,t)).status==201?l:null}Us();Fc();import{isTooManyTries as $Bt,retryAsync as LBt}from"ts-retry";var jBt="0x0000000000000000000000000000000000000000";async function BBt(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 Lpa(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 zy(e){return e==="Y"||e==="N"}function FBt(e){return!b4.isAddress(e)||e.length!==42||!e.startsWith("0x")}async function UBt(){let e=ss(),t=_n(e,Tt.AVAX),r=Vr("address"),n=await Bpa(),a=await jpa();Hy(a);let i=b4.keccak256(b4.toUtf8Bytes(a)),s=Math.floor(Date.now()/1e3)+3600,o=await t.taskRegistry.getEIP712Domain(),l=await t.authorization.getEIP712Domain(),u={RegisterTaskNamespaceMeta:[{name:"user",type:"address"},{name:"namespace",type:"string"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"}]},d={RegisterMeta:[{name:"user",type:"address"},{name:"apiKeyHash",type:"string"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"}]},c=BigInt(await t.taskRegistry.nonces(r)),h=await t.authorization.nonces(r),p={user:b4.getAddress(r),namespace:n,nonce:c,deadline:s},m={user:r,apiKeyHash:i,nonce:Number(h),deadline:s};if(!t.utils)throw new Error("Private key is required for signing operations");let b=await t.utils.signMeta(o,u,p),v=await t.utils.signMeta(l,d,m),_={user:r,namespace:n,apiKeyHash:i,namespaceSignature:b,apiKeySignature:v,namespaceDeadline:s,apiKeyDeadline:s};try{let w=await hBt(_);if(w.status!==201)throw new Error("Registration failed with unexpected status");if(!w.data.namespaceRegistration.success)throw new Error("Namespace registration failed");if(!w.data.apiKeyRegistration.success)throw new Error("API key registration failed");return{namespace:n,apiKey:a,hashedApiKey:i}}catch(w){let S=w.message;throw new Error(`Combined registration failed: ${S}`)}}async function Lpa(e){let t=await Bs();try{return(await t.get(`userexistence/${e}`)).data===!0}catch(r){if(EA.isAxiosError(r)&&r.response?.status===404&&typeof r.response?.data?.message=="string"&&r.response.data.message.includes("User not found"))return!1;throw r}}async function Bee(e,t){try{let r={message:"I am a Truebit User"};if(!t)throw Error("Secret.json does not exists");let n=t.privateKey,a=t.address,i=Xo.createSignedBody(r,n,a);return(await(await Bs()).get(`user/${e}`,{headers:{"truebit-auth":JSON.stringify(i)}})).data}catch(r){if(EA.isAxiosError(r)&&r.response?.status===401&&r.response?.data.message.includes("Entitlement Validation Error")||EA.isAxiosError(r)&&r.response?.status==404&&r.response?.data.message&&r.response?.data.message.includes("User not found"))return null;throw EA.isAxiosError(r)?r.response?Error(`The server responding with an error -> ${r.response.data.message||r.response.status+" - "+r.response.statusText}`):r.request?Error(`The server is not responding -> ${r.message}`):Error(`There was an error in the communication with the server -> ${r.message}`):Error(typeof r=="string"?`There was an error in the communication with the server -> ${r}`:"There was an error in the communication with the server.")}}async function VBt(e){try{return await(await Bs()).post("user/register",e)}catch(t){throw EA.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 jpa(){let e=ss(),t=_n(e,Tt.AVAX),r="";try{await LBt(async()=>{r=$pa();let n=b4.keccak256(b4.toUtf8Bytes(r));return await t.authorization.getPayerAddress(n)===jBt},{delay:500,maxTry:5,until:n=>n===!0})}catch(n){throw $Bt(n)?Error("Attempts to generate unique Api Key for the user exhausted."):n}return r}async function Bpa(){let e=ss(),t=_n(e,Tt.AVAX),r="";try{await LBt(async()=>(r=Dpa(4).toString("hex"),await t.taskRegistry.getNamespaceOwner(r)===jBt),{delay:500,maxTry:5,until:n=>n===!0})}catch(n){throw $Bt(n)?Error("Attempts to generate unique namespace for the user exhausted."):n}return r}function HBt(e){e.fullNameAnswer="",e.emailAddressAnswer="",e.companyNameAnswer="",e.jobPositionAnswer="",e.eulaAnswer="",e.confirmRegistration=""}Fc();a6();import Upa from"ora";import*as Fee from"os";async function zBt(e,t,r){let n=Fs(),a=n!==null,i=0,s,o=Fpa({input:process.stdin,output:process.stdout,terminal:!0});switch(a&&(FBt(n.address)?i=1:(s=await Bee(n.address,n),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(On.SETUP_STEP1_SCENARIO1_P2(s));break;case 3:{console.log(On.SETUP_STEP2_SCENARIO3_P1),console.log();let l={user_ip:e,date_time:Ia(),os_version:Fee.type+"_"+Fee.release,node_version:process.version,cli_version:t};await r.sendEventToMixpanel("user_registration_begin",l);let u={confirmRegistration:"",fullNameAnswer:"",emailAddressAnswer:"",companyNameAnswer:"",jobPositionAnswer:"",eulaAnswer:""};try{for(;u.confirmRegistration!="Y";){for(u.fullNameAnswer=(await o.question(bm.bold(" 1. Full Name: "))).trim();u.fullNameAnswer==="";)console.log("Your full name is required. Please provide your first and last name to proceed."),u.fullNameAnswer=(await o.question(bm.bold(" 1. Full Name: "))).trim();for(u.emailAddressAnswer=(await o.question(bm.bold(" 2. Email Address: "))).trim();!await BBt(u.emailAddressAnswer);)u.emailAddressAnswer=(await o.question(bm.bold(" 2. Email Address: "))).trim();for(u.companyNameAnswer=(await o.question(bm.bold(" 3. Company Name: "))).trim(),u.jobPositionAnswer=(await o.question(bm.bold(" 4. Job Position: "))).trim();!zy(u.eulaAnswer);)u.eulaAnswer=(await o.question(bm.bold(` 5. Accept EULA? [Y|N] (${On.EULA_TERMS_LINK}): `))).toUpperCase();if(u.eulaAnswer=="N"){console.log(On.EULA_REGISTRATION_NO_ACCEPTED);break}for(;!zy(u.confirmRegistration);)console.log(`
504
+ `)}catch(e){throw e instanceof Error?console.error(Nn.red("Error fetching quota status: ")+e.message):console.error(Nn.red("Error fetching quota status: ")+String(e)),e}}yAe();i0();async function RBt(e){try{console.log("Fetching execution status...");let r=await(await fd()).get(`api/execution/${e}`).catch(B0);if(r.data.message)throw r.data.message;console.log("Task execution status: ",r.data.status),r.data.output&&console.log("Task execution output: ",r.data.output)}catch(t){console.error(`Couldn't fetch execution status for executionId ${e}: ${t}`)}}import MBt from"chalk";import{ethers as kpa}from"ethers";i0();import*as Lee from"crypto";import Ppa from"axios";import bAe from"chalk";function PBt(e){if(Ppa.isAxiosError(e)&&e.response?.data){let t=e.response.data;return console.log(bAe.red(t.message)),typeof t=="string"?t:t.message||JSON.stringify(t)}return e instanceof Error?e.message:String(e)}async function Cpa(e,t){try{let r=F0({namespace:t});return(await e.post("getkey",r)).data}catch(r){return PBt(r),console.error(bAe.red("Failed to retrieve encryption key from Hub-TEE-KMS. Please try again")),null}}function Mpa(e,t){try{let r=Buffer.from(t,"base64"),n=Lee.randomBytes(16),a=Lee.createCipheriv("aes-256-cbc",r,n),i=Buffer.concat([a.update(e,"utf8"),a.final()]);return r.fill(0),{encrypted_authString:i.toString("base64"),iv:n.toString("base64")}}catch{return null}}async function CBt(e,t,r){try{let n=await Cpa(e,r);if(!n)return null;let a=Mpa(t,n.plaintext_key);return a?{encrypted_authString:a.encrypted_authString,encrypted_data_key:n.encryption_key,iv:a.iv}:null}catch(n){return PBt(n),console.error(bAe.red("Failed to encrypt credentials. Please try again.")),null}}async function kBt(e,t,r,n,a,i,s){console.log("Deploying the API Authentication Credentials");try{if(!cBt(i))throw"Invalid private key provided";if(!kpa.isAddress(s))throw"Invalid address provided";if(mie(n,a),!y4(e))throw"Invalid taskId";let o=await TJe();console.log("Encrypting credentials...");let l=await CBt(o,a,t);if(!l)return;let u=F0({taskId:e,namespace:t,taskName:r,method:n,encrypted_authString:l.encrypted_authString,encrypted_data_key:l.encrypted_data_key,iv:l.iv});await o.post("credentials",u).catch(B0),console.log("The encrypted credentials were deployed "+MBt.green("Successfully"))}catch(o){let l=o instanceof Error?o.message:String(o);console.error(MBt.red(l));return}}import{inspect as w6a}from"util";import Ts from"ora";import{v4 as S6a}from"uuid";import{ethers as Xee}from"ethers";var NBt={name:"@truebit/cli",version:"1.120.0-beta.293",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 logs","prebuild:dev":"rimraf build logs","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.13.6",chalk:"5.6.2",colors:"1.4.0",commander:"14.0.3",ethers:"6.16.0",figlet:"1.11.0","form-data":"4.0.5","openapi-enforcer":"1.23.0",ora:"9.3.0","public-ip":"8.0.0","ts-retry":"6.0.0",uuid:"13.0.0"},bin:{truebit:"build/index.mjs"},files:["build"],devDependencies:{"@types/figlet":"1.7.0","@vitest/coverage-v8":"4.1.0",esbuild:"0.27.4",typescript:"5.9.3",vitest:"4.1.0"},engines:{node:">=22.13.0"}};Us();i0();Fc();Us();import{createInterface as Fpa}from"node:readline/promises";import bm from"chalk";i0();import EA from"axios";import{ethers as b4}from"ethers";import{randomBytes as Dpa}from"crypto";import{v4 as $pa}from"uuid";Us();import{ethers as jee}from"ethers";async function DBt(e){Hy(e);let t=_n(ss(),Tt.AVAX),r=jee.keccak256(jee.toUtf8Bytes(e));return await t.authorization.registerAuthorization(r),r}async function vAe(e,t,r=Vr("address")){Hy(e);let n=_n(ss(),Tt.AVAX),a=await n.authorization.getEIP712Domain(),i=await n.authorization.nonces(r),s=Math.floor(Date.now()/1e3)+3600,o={RegisterMeta:[{name:"user",type:"address"},{name:"apiKeyHash",type:"string"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"}]},l=jee.keccak256(jee.toUtf8Bytes(e)),u={user:r,apiKeyHash:l,nonce:Number(i),deadline:s};if(!n.utils)throw new Error("Private key is required for signing operations");let d=await n.utils.signMeta(a,o,u);return(await mBt(r,l,s,d,t)).status==201?l:null}Us();Fc();import{isTooManyTries as $Bt,retryAsync as LBt}from"ts-retry";var jBt="0x0000000000000000000000000000000000000000";async function BBt(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 Lpa(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 zy(e){return e==="Y"||e==="N"}function FBt(e){return!b4.isAddress(e)||e.length!==42||!e.startsWith("0x")}async function UBt(){let e=ss(),t=_n(e,Tt.AVAX),r=Vr("address"),n=await Bpa(),a=await jpa();Hy(a);let i=b4.keccak256(b4.toUtf8Bytes(a)),s=Math.floor(Date.now()/1e3)+3600,o=await t.taskRegistry.getEIP712Domain(),l=await t.authorization.getEIP712Domain(),u={RegisterTaskNamespaceMeta:[{name:"user",type:"address"},{name:"namespace",type:"string"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"}]},d={RegisterMeta:[{name:"user",type:"address"},{name:"apiKeyHash",type:"string"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"}]},c=BigInt(await t.taskRegistry.nonces(r)),h=await t.authorization.nonces(r),p={user:b4.getAddress(r),namespace:n,nonce:c,deadline:s},m={user:r,apiKeyHash:i,nonce:Number(h),deadline:s};if(!t.utils)throw new Error("Private key is required for signing operations");let b=await t.utils.signMeta(o,u,p),v=await t.utils.signMeta(l,d,m),_={user:r,namespace:n,apiKeyHash:i,namespaceSignature:b,apiKeySignature:v,namespaceDeadline:s,apiKeyDeadline:s};try{let w=await hBt(_);if(w.status!==201)throw new Error("Registration failed with unexpected status");if(!w.data.namespaceRegistration.success)throw new Error("Namespace registration failed");if(!w.data.apiKeyRegistration.success)throw new Error("API key registration failed");return{namespace:n,apiKey:a,hashedApiKey:i}}catch(w){let S=w.message;throw new Error(`Combined registration failed: ${S}`)}}async function Lpa(e){let t=await Bs();try{return(await t.get(`userexistence/${e}`)).data===!0}catch(r){if(EA.isAxiosError(r)&&r.response?.status===404&&typeof r.response?.data?.message=="string"&&r.response.data.message.includes("User not found"))return!1;throw r}}async function Bee(e,t){try{let r={message:"I am a Truebit User"};if(!t)throw Error("Secret.json does not exists");let n=t.privateKey,a=t.address,i=Xo.createSignedBody(r,n,a);return(await(await Bs()).get(`user/${e}`,{headers:{"truebit-auth":JSON.stringify(i)}})).data}catch(r){if(EA.isAxiosError(r)&&r.response?.status===401&&r.response?.data.message.includes("Entitlement Validation Error")||EA.isAxiosError(r)&&r.response?.status==404&&r.response?.data.message&&r.response?.data.message.includes("User not found"))return null;throw EA.isAxiosError(r)?r.response?Error(`The server responding with an error -> ${r.response.data.message||r.response.status+" - "+r.response.statusText}`):r.request?Error(`The server is not responding -> ${r.message}`):Error(`There was an error in the communication with the server -> ${r.message}`):Error(typeof r=="string"?`There was an error in the communication with the server -> ${r}`:"There was an error in the communication with the server.")}}async function VBt(e){try{return await(await Bs()).post("user/register",e)}catch(t){throw EA.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 jpa(){let e=ss(),t=_n(e,Tt.AVAX),r="";try{await LBt(async()=>{r=$pa();let n=b4.keccak256(b4.toUtf8Bytes(r));return await t.authorization.getPayerAddress(n)===jBt},{delay:500,maxTry:5,until:n=>n===!0})}catch(n){throw $Bt(n)?Error("Attempts to generate unique Api Key for the user exhausted."):n}return r}async function Bpa(){let e=ss(),t=_n(e,Tt.AVAX),r="";try{await LBt(async()=>(r=Dpa(4).toString("hex"),await t.taskRegistry.getNamespaceOwner(r)===jBt),{delay:500,maxTry:5,until:n=>n===!0})}catch(n){throw $Bt(n)?Error("Attempts to generate unique namespace for the user exhausted."):n}return r}function HBt(e){e.fullNameAnswer="",e.emailAddressAnswer="",e.companyNameAnswer="",e.jobPositionAnswer="",e.eulaAnswer="",e.confirmRegistration=""}Fc();a6();import Upa from"ora";import*as Fee from"os";async function zBt(e,t,r){let n=Fs(),a=n!==null,i=0,s,o=Fpa({input:process.stdin,output:process.stdout,terminal:!0});switch(a&&(FBt(n.address)?i=1:(s=await Bee(n.address,n),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(On.SETUP_STEP1_SCENARIO1_P2(s));break;case 3:{console.log(On.SETUP_STEP2_SCENARIO3_P1),console.log();let l={user_ip:e,date_time:Ia(),os_version:Fee.type+"_"+Fee.release,node_version:process.version,cli_version:t};await r.sendEventToMixpanel("user_registration_begin",l);let u={confirmRegistration:"",fullNameAnswer:"",emailAddressAnswer:"",companyNameAnswer:"",jobPositionAnswer:"",eulaAnswer:""};try{for(;u.confirmRegistration!="Y";){for(u.fullNameAnswer=(await o.question(bm.bold(" 1. Full Name: "))).trim();u.fullNameAnswer==="";)console.log("Your full name is required. Please provide your first and last name to proceed."),u.fullNameAnswer=(await o.question(bm.bold(" 1. Full Name: "))).trim();for(u.emailAddressAnswer=(await o.question(bm.bold(" 2. Email Address: "))).trim();!await BBt(u.emailAddressAnswer);)u.emailAddressAnswer=(await o.question(bm.bold(" 2. Email Address: "))).trim();for(u.companyNameAnswer=(await o.question(bm.bold(" 3. Company Name: "))).trim(),u.jobPositionAnswer=(await o.question(bm.bold(" 4. Job Position: "))).trim();!zy(u.eulaAnswer);)u.eulaAnswer=(await o.question(bm.bold(` 5. Accept EULA? [Y|N] (${On.EULA_TERMS_LINK}): `))).toUpperCase();if(u.eulaAnswer=="N"){console.log(On.EULA_REGISTRATION_NO_ACCEPTED);break}for(;!zy(u.confirmRegistration);)console.log(`
505
505
  Is the information provided above correct?`),u.confirmRegistration=(await o.question(bm.bold("Press [Y] to confirm or [N] to edit: "))).toUpperCase();u.confirmRegistration=="N"&&(console.log(`
506
506
  Please provide the following information:`),HBt(u))}}catch(h){if(h.name==="AbortError"||h.message.includes("Ctrl+C")){let p=h.message,m=l;m.error_details=p,m.date_time=Ia();let b={fullname:u.fullNameAnswer,email:u.emailAddressAnswer,company:u.companyNameAnswer,role:u.jobPositionAnswer};m.user_info=JSON.stringify(b),await r.sendEventToMixpanel("user_registration_failed",m),process.exit(0)}}if(u.eulaAnswer=="N")break;let d=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 c=Upa({text:bm.bold("... registering your account."),stream:process.stdout}).start();try{let{namespace:h,apiKey:p}=await UBt(),m={name:u.fullNameAnswer,email:u.emailAddressAnswer,walletAddress:n?.address,company:u.companyNameAnswer,jobDescription:u.jobPositionAnswer,EULA:Xo.createSignedBody({ip:await GP(),date:new Date().toISOString()},n.privateKey),defaultNamespace:h,defaultApiKey:p};await VBt(m),c.stop(),console.log(On.SETUP_STEP2_SCENARIO3_P2(u,n.address,h,p)),d.distinct_id=m.walletAddress,d.date_time=Ia(),d.fullname=m.name,d.email=m.email,d.company=m.company,d.role=m.jobDescription,d.namespace=m.defaultNamespace,d.api_key=p,d.wallet_address=m.walletAddress,await r.sendEventToMixpanel("user_registration_success",d),await r.registerUserMixpanel(d.wallet_address,Vpa(d))}catch(h){c.stop();let p=h.message,m=l;m.error_details=p,m.date_time=Ia();let b={fullname:u.fullNameAnswer,email:u.emailAddressAnswer,company:u.companyNameAnswer,role:u.jobPositionAnswer};m.user_info=JSON.stringify(b),await r.sendEventToMixpanel("user_registration_failed",m);let v=p?p.match(/CreateUserValidation - (.*?.*)/)?.[1]:null;if(v)throw Error(v);if(p.includes("Sender doesn't have enough funds to send tx"))throw Error("We are currently experiencing technical difficulties. Please try again later.");console.error(On.SETUP_STEP2_UNHANDLED_ERROR),process.exit(1)}finally{c.clear()}break}default:throw Error("An unexpected error occurred.")}o.close()}function Vpa(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 T6a}from"node:net";import Hpa from"chalk";Us();a6();import{createInterface as zpa}from"node:readline/promises";import*as Uee from"os";async function WBt(e,t,r){let n=Fs(),a=n!==null,i;switch(a?a&&!n.eula?i=2:i=3:i=1,i){case 1:case 2:{let s=zpa({input:process.stdin,output:process.stdout,terminal:!0}),o="",l={user_ip:e,date_time:Ia(),os_version:Uee.type+"_"+Uee.release,node_version:process.version,cli_version:t};for(console.log(On.EULA_INSTALLATION);!zy(o);)o=(await s.question(Hpa.bold(`
507
507
  Have you read, and do you accept the Terms of Use? [Y|N]: `))).toUpperCase(),await r.sendEventToMixpanel("TOS_shown",l);if(o=="N")throw l.date_time=Ia(),await r.sendEventToMixpanel("TOS_rejected",l),On.EULA_INSTALLATION_NO_ACCEPTED;l.date_time=Ia(),await r.sendEventToMixpanel("TOS_accepted",l);let u=Math.round(new Date().getTime()).toString();if(i===1){let d={...Bue(),eula:u};OJe(d)}else i===2&&zE({eula:u});s.close()}break;default:break}}Us();a6();async function sf(e=!1){let t=Fs(),r=t!==null,n=null,a;switch(r?r&&(!t.privateKey||!t.address)?a=2:(n=await Bee(t.address,t),n?a=4:a=3):a=1,a){case 1:case 2:case 3:console.log(On.USER_NO_REGISTERED),process.exit(1);break;case 4:e&&console.log(`You are logged in as: ${n?.name} - ${n?.email}`);break}}import{createInterface as Wpa}from"node:readline/promises";a6();Us();import Gpa from"chalk";async function GBt(){console.log(Gpa.bold(`