@unlock-protocol/paywall
Advanced tools
Comparing version 0.6.8 to 0.7.1
import Postmate from 'postmate'; | ||
import { NetworkConfigs, PaywallConfig } from '@unlock-protocol/types'; | ||
import { NetworkConfigs } from '@unlock-protocol/types'; | ||
export { NetworkConfigs } from '@unlock-protocol/types'; | ||
import { PaywallConfigType } from '@unlock-protocol/core'; | ||
@@ -34,3 +35,3 @@ /** | ||
networkConfigs: NetworkConfigs; | ||
paywallConfig: PaywallConfig; | ||
paywallConfig: PaywallConfigType; | ||
userAccountAddress?: string; | ||
@@ -59,5 +60,5 @@ iframe?: Element; | ||
*/ | ||
loadCheckoutModal: (config?: PaywallConfig, unlockUrl?: string) => Promise<void>; | ||
setPaywallConfig: (config: PaywallConfig) => void; | ||
shakeHands: (unlockAppUrl: string) => Promise<void>; | ||
loadCheckoutModal: (config?: PaywallConfigType, unlockUrl?: string) => Promise<unknown>; | ||
setPaywallConfig: (config: PaywallConfigType) => void; | ||
shakeHands: (unlockAppUrl: string, eventHandler?: ((name: string, data?: any) => void) | undefined) => Promise<void>; | ||
sendOrBuffer: (method: string, args: any) => void; | ||
@@ -64,0 +65,0 @@ handleTransactionInfoEvent: ({ hash, lock, ...rest }: TransactionInfo) => Promise<void>; |
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".unlock-protocol-checkout{display:none;position:fixed;top:0;left:0;width:100%;height:100vh;border:0;z-index:-2147483647}.unlock-protocol-checkout.show{display:block;z-index:2147483647}")),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})(); | ||
(function(d,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("postmate")):typeof define=="function"&&define.amd?define(["exports","postmate"],f):(d=typeof globalThis<"u"?globalThis:d||self,f(d["@unlock-protocol/paywall"]={},d.Postmate))})(this,function(d,f){"use strict";const Ge="",u=(e,t)=>{let s;e===h.status&&u("unlockProtocol",t.state);try{s=new window.CustomEvent(e,{detail:t})}catch{s=window.document.createEvent("customevent"),s.initCustomEvent(e,!0,!0,t)}window.dispatchEvent(s)},h={status:"unlockProtocol.status",authenticated:"unlockProtocol.authenticated",transactionSent:"unlockProtocol.transactionSent",metadata:"unlockProtocol.metadata",closeModal:"unlockProtocol.closeModal"},te=e=>{const t={},s={writable:!1,configurable:!1,enumerable:!1},o=Object.keys(e).map(r=>({[r]:{value:e[r],...s}}));Object.defineProperties(t,Object.assign({},...o)),(Object.freeze||Object)(t);try{Object.defineProperties(window,{unlockProtocol:{value:t,...s}})}catch{console.warn("WARNING: unlockProtocol already defined, cannot re-define it")}},v=(e,t)=>{const s={...e};return s.autoconnect&&(s.useDelegatedProvider=!!t),s.useDelegatedProvider||(s.useDelegatedProvider=!!t),s};function _(){let e;try{e=window.localStorage;const t="__storage_test__";return e.setItem(t,t),e.removeItem(t),!0}catch(t){return t instanceof DOMException&&(t.code===22||t.code===1014||t.name==="QuotaExceededError"||t.name==="NS_ERROR_DOM_QUOTA_REACHED")&&e&&e.length!==0}}function se(e,t){_()&&localStorage.setItem(e,JSON.stringify(t))}function oe(e){if(_()){const t=localStorage.getItem(e)||!1;return t?JSON.parse(t):void 0}}const ae=async(e,t,s)=>{const o={method:"eth_call",params:[{to:t,data:`0x6d8ea5b4000000000000000000000000${s.substring(2)}`},"latest"],id:31337,jsonrpc:"2.0"};try{const a=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)});if(!a)return 0;const{result:r}=await a.json();return parseInt(r,16)===1}catch(a){return console.error(`Error fetching hasValidKey for ${s} on ${t}: ${a}`),!1}},re=async(e,t,s)=>{const o=[];return t?.locks?(await Promise.all(Object.entries(t.locks).map(async([a])=>{const r=t.locks[a].network||t.network,{provider:n}=s[r];await ae(n,a,e)&&o.push(a)})),o):[]};function ne(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var g={exports:{}},m=typeof Reflect=="object"?Reflect:null,L=m&&typeof m.apply=="function"?m.apply:function(t,s,o){return Function.prototype.apply.call(t,s,o)},C;m&&typeof m.ownKeys=="function"?C=m.ownKeys:Object.getOwnPropertySymbols?C=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:C=function(t){return Object.getOwnPropertyNames(t)};function ie(e){console&&console.warn&&console.warn(e)}var S=Number.isNaN||function(t){return t!==t};function i(){i.init.call(this)}g.exports=i,g.exports.once=pe,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var I=10;function A(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return I},set:function(e){if(typeof e!="number"||e<0||S(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");I=e}}),i.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||S(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function H(e){return e._maxListeners===void 0?i.defaultMaxListeners:e._maxListeners}i.prototype.getMaxListeners=function(){return H(this)},i.prototype.emit=function(t){for(var s=[],o=1;o<arguments.length;o++)s.push(arguments[o]);var a=t==="error",r=this._events;if(r!==void 0)a=a&&r.error===void 0;else if(!a)return!1;if(a){var n;if(s.length>0&&(n=s[0]),n instanceof Error)throw n;var c=new Error("Unhandled error."+(n?" ("+n.message+")":""));throw c.context=n,c}var b=r[t];if(b===void 0)return!1;if(typeof b=="function")L(b,this,s);else for(var ee=b.length,je=R(b,ee),o=0;o<ee;++o)L(je[o],this,s);return!0};function U(e,t,s,o){var a,r,n;if(A(s),r=e._events,r===void 0?(r=e._events=Object.create(null),e._eventsCount=0):(r.newListener!==void 0&&(e.emit("newListener",t,s.listener?s.listener:s),r=e._events),n=r[t]),n===void 0)n=r[t]=s,++e._eventsCount;else if(typeof n=="function"?n=r[t]=o?[s,n]:[n,s]:o?n.unshift(s):n.push(s),a=H(e),a>0&&n.length>a&&!n.warned){n.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+n.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=n.length,ie(c)}return e}i.prototype.addListener=function(t,s){return U(this,t,s,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(t,s){return U(this,t,s,!0)};function ce(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function M(e,t,s){var o={fired:!1,wrapFn:void 0,target:e,type:t,listener:s},a=ce.bind(o);return a.listener=s,o.wrapFn=a,a}i.prototype.once=function(t,s){return A(s),this.on(t,M(this,t,s)),this},i.prototype.prependOnceListener=function(t,s){return A(s),this.prependListener(t,M(this,t,s)),this},i.prototype.removeListener=function(t,s){var o,a,r,n,c;if(A(s),a=this._events,a===void 0)return this;if(o=a[t],o===void 0)return this;if(o===s||o.listener===s)--this._eventsCount===0?this._events=Object.create(null):(delete a[t],a.removeListener&&this.emit("removeListener",t,o.listener||s));else if(typeof o!="function"){for(r=-1,n=o.length-1;n>=0;n--)if(o[n]===s||o[n].listener===s){c=o[n].listener,r=n;break}if(r<0)return this;r===0?o.shift():de(o,r),o.length===1&&(a[t]=o[0]),a.removeListener!==void 0&&this.emit("removeListener",t,c||s)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(t){var s,o,a;if(o=this._events,o===void 0)return this;if(o.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):o[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete o[t]),this;if(arguments.length===0){var r=Object.keys(o),n;for(a=0;a<r.length;++a)n=r[a],n!=="removeListener"&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(s=o[t],typeof s=="function")this.removeListener(t,s);else if(s!==void 0)for(a=s.length-1;a>=0;a--)this.removeListener(t,s[a]);return this};function $(e,t,s){var o=e._events;if(o===void 0)return[];var a=o[t];return a===void 0?[]:typeof a=="function"?s?[a.listener||a]:[a]:s?le(a):R(a,a.length)}i.prototype.listeners=function(t){return $(this,t,!0)},i.prototype.rawListeners=function(t){return $(this,t,!1)},i.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):N.call(e,t)},i.prototype.listenerCount=N;function N(e){var t=this._events;if(t!==void 0){var s=t[e];if(typeof s=="function")return 1;if(s!==void 0)return s.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?C(this._events):[]};function R(e,t){for(var s=new Array(t),o=0;o<t;++o)s[o]=e[o];return s}function de(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function le(e){for(var t=new Array(e.length),s=0;s<t.length;++s)t[s]=e[s].listener||e[s];return t}function pe(e,t){return new Promise(function(s,o){function a(n){e.removeListener(t,r),o(n)}function r(){typeof e.removeListener=="function"&&e.removeListener("error",a),s([].slice.call(arguments))}W(e,t,r,{once:!0}),t!=="error"&&ue(e,a,{once:!0})})}function ue(e,t,s){typeof e.on=="function"&&W(e,"error",t,s)}function W(e,t,s,o){if(typeof e.on=="function")o.once?e.once(t,s):e.on(t,s);else if(typeof e.addEventListener=="function")e.addEventListener(t,function a(r){o.once&&e.removeEventListener(t,a),s(r)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var he=g.exports;const me=ne(he),fe=()=>{if(typeof window<"u"){const e=window;if(e&&e.ethereum)return e.ethereum;if(e&&e.web3)return e.web3.currentProvider}},be=async e=>{if(!e)throw new Error("Fatal: no web3 provider found.");return e.enable?await e.enable():null},V={resolveMethodCall:"handleMethodCallEvent",resolveOnEvent:"handleOnEventCallEvent"};class Ce extends me.EventEmitter{constructor(t,s,o){super(),this.isMetamask=!0,this.#e={},this.#t={},this.paywall=t,this.unlockUrl=s,this.config=o}#e;#t;async connect(){this.paywall.iframe?this.paywall.showIframe():await this.paywall.shakeHands(this.unlockUrl),this.paywall.sendOrBuffer("authenticate",this.config),this.paywall.child.on(D.resolveOnEventCall,t=>this.#t?.[t]?.()),this.paywall.child.on(D.resolveMethodCall,t=>{const{id:s}=t,o=this.#e[s];o&&(delete this.#e[s],o(t.error,t.response))})}async#s(t){return new Promise((s,o)=>{this.#e[t.id]=(a,r)=>{a?o(a):s(r)},this.paywall.sendOrBuffer(V.resolveMethodCall,t)})}async request(t){return t.id||(t.id=window.crypto.randomUUID()),t.method==="eth_requestAccounts"?(await this.connect(),this.#s(t)):await this.#s(t)}on(t,s){return this.#t[t]=s,this.paywall.sendOrBuffer(V.resolveOnEvent,{event:t}),this}}let j="https://paywall.unlock-protocol.com";const Ae=e=>{try{return new URL(e)}catch{return null}};if(typeof window<"u"){const e=document?.currentScript?.getAttribute("src");if(e){const t=Ae(e);t&&["paywall.unlock-protocol.com","staging-paywall.unlock-protocol.com"].includes(t.hostname)&&(j=t.toString())}}const ye=new URL(j);function ke(e){let t;return e.match("staging-paywall.unlock-protocol.com")?t="https://staging-app.unlock-protocol.com":e.match("paywall.unlock-protocol.com")?t="https://app.unlock-protocol.com":t="http://localhost:3000",{unlockAppUrl:t}}const{unlockAppUrl:Ee}=ke(ye.toString()),G="unlock-protocol-checkout";var D=(e=>(e.userInfo="checkout.userInfo",e.closeModal="checkout.closeModal",e.transactionInfo="checkout.transactionInfo",e.metadata="checkout.metadata",e.methodCall="checkout.methodCall",e.onEvent="checkout.onEvent",e.enable="checkout.enable",e.resolveMethodCall="checkout.resolveMethodCall",e.resolveOnEventCall="checkout.resolveOnEventCall",e))(D||{});let x;class K{constructor(t){this.childCallBuffer=[],this.connect=async s=>{this.provider=s||fe()},this.getProvider=(s="https://app.unlock-protocol.com",o={clientId:window.location.origin.toString()})=>(this.provider=new Ce(this,s,o),this.provider),this.loadCheckoutModal=async(s,o)=>{this.iframe?this.showIframe():await this.shakeHands(o||Ee),this.setPaywallConfig(s||this.paywallConfig)},this.setPaywallConfig=s=>{this.provider&&!this.provider.isPaywallProvider&&(s.autoconnect=!0),this.paywallConfig=v(s,this.provider),this.loadCache(),this.paywallConfig=v(s,this.provider),this.checkKeysAndLock(),this.sendOrBuffer("setConfig",v(s||this.paywallConfig,this.provider))},this.shakeHands=async s=>{x||(x=await new f({url:`${s}/checkout`,classListArray:[G]})),this.child=x,this.iframe=document.getElementsByClassName(G)[0],this.showIframe(),this.child.on("checkout.closeModal",this.hideIframe),this.child.on("checkout.userInfo",this.handleUserInfoEvent),this.child.on("checkout.methodCall",this.handleMethodCallEvent),this.child.on("checkout.onEvent",this.handleOnEventEvent),this.child.on("checkout.enable",this.handleEnable),this.child.on("checkout.metadata",this.handleMetadataEvent),this.child.on("checkout.transactionInfo",this.handleTransactionInfoEvent),this.childCallBuffer.forEach(o=>this.child.call(...o))},this.sendOrBuffer=(s,o)=>{this.child?this.child.call(s,o):this.childCallBuffer.push([s,o])},this.handleTransactionInfoEvent=async({hash:s,lock:o,...a})=>{u(h.transactionSent,{hash:s,lock:o,...a}),!this.paywallConfig?.pessimistic&&s&&o&&this.unlockPage([o])},this.handleUserInfoEvent=async s=>{this.userAccountAddress=s.address,u(h.authenticated,s),this.cacheUserInfo(s),this.checkKeysAndLock()},this.handleMethodCallEvent=async({method:s,params:o,id:a})=>{const r=this.provider;if(r.request)return r.request({method:s,params:o,id:a}).then(n=>{this.child.call("resolveMethodCall",{id:a,error:null,response:n})}).catch(n=>{this.child.call("resolveMethodCall",{id:a,error:n,response:null})});r.sendAsync?r.sendAsync({method:s,params:o,id:a},(n,c)=>{this.child.call("resolveMethodCall",{id:a,error:n,response:c})}):console.error("unknown method to call provider! Please make sure you use and EIP1193 provider!")},this.handleOnEventEvent=async s=>{this.provider.on(s,()=>{this.child.call("resolveOnEvent",s)})},this.handleEnable=async()=>{const s=await be(this.provider);this.child.call("resolveOnEnable",s)},this.showIframe=()=>{this.iframe.classList.add("show")},this.hideIframe=()=>{u(h.closeModal,{}),this.iframe.classList.remove("show")},this.getUserAccountAddress=()=>this.userAccountAddress,this.getState=()=>this.lockStatus,this.cacheUserInfo=async s=>{se("userInfo",s)},this.loadCache=async()=>{const s=oe("userInfo");if(!s)return this.lockPage();this.userAccountAddress=s.address,this.checkKeysAndLock()},this.lockPage=()=>{this.lockStatus="locked",u(h.status,{state:this.lockStatus})},this.unlockPage=(s=[])=>{this.lockStatus="unlocked",u(h.status,{locks:s,state:this.lockStatus})},this.networkConfigs=t}async handleMetadataEvent(t){u(h.metadata,t)}async checkKeysAndLock(){if(!this.userAccountAddress)return;this.lockStatus=void 0;const t=await re(this.userAccountAddress,this.paywallConfig,this.networkConfigs);return t.length?this.unlockPage(t):this.lockPage()}}var ve=Object.create,B=Object.defineProperty,ge=Object.getOwnPropertyDescriptor,q=Object.getOwnPropertyNames,De=Object.getPrototypeOf,xe=Object.prototype.hasOwnProperty,z=(e,t)=>function(){return t||(0,e[q(e)[0]])((t={exports:{}}).exports,t),t.exports},Be=(e,t)=>{for(var s in t)B(e,s,{get:t[s],enumerable:!0})},Fe=(e,t,s,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of q(t))!xe.call(e,a)&&a!==s&&B(e,a,{get:()=>t[a],enumerable:!(o=ge(t,a))||o.enumerable});return e},l=(e,t,s)=>(s=e!=null?ve(De(e)):{},Fe(t||!e||!e.__esModule?B(s,"default",{value:e,enumerable:!0}):s,e)),we=z({"../types/dist/types/unlockTypes.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.KeyStatus=e.HooksName=e.HookType=e.TransactionStatus=e.TransactionType=void 0,function(t){t.LOCK_CREATION="LOCK_CREATION",t.KEY_PURCHASE="KEY_PURCHASE",t.WITHDRAWAL="WITHDRAWAL",t.UPDATE_KEY_PRICE="UPDATE_KEY_PRICE"}(e.TransactionType||(e.TransactionType={})),function(t){t.SUBMITTED="submitted",t.PENDING="pending",t.MINED="mined",t.STALE="stale",t.FAILED="failed",t.NONE=""}(e.TransactionStatus||(e.TransactionStatus={})),function(t){t.CUSTOM_CONTRACT="CUSTOM_CONTRACT",t.PASSWORD="PASSWORD",t.PROMOCODE="PROMOCODE",t.CAPTCHA="CAPTCHA",t.GUILD="GUILD"}(e.HookType||(e.HookType={})),e.HooksName=["onKeyPurchaseHook","onKeyCancelHook","onValidKeyHook","onTokenURIHook","onKeyTransferHook","onKeyExtendHook","onKeyGrantHook"],function(t){t.NONE="none",t.CONFIRMING="confirming",t.CONFIRMED="confirmed",t.EXPIRED="expired",t.VALID="valid",t.SUBMITTED="submitted",t.PENDING="pending",t.FAILED="failed"}(e.KeyStatus||(e.KeyStatus={}))}}),p=z({"../types/dist/index.js"(e){var t=e&&e.__createBinding||(Object.create?function(o,a,r,n){n===void 0&&(n=r);var c=Object.getOwnPropertyDescriptor(a,r);(!c||("get"in c?!a.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return a[r]}}),Object.defineProperty(o,n,c)}:function(o,a,r,n){n===void 0&&(n=r),o[n]=a[r]}),s=e&&e.__exportStar||function(o,a){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(a,r)&&t(a,o,r)};Object.defineProperty(e,"__esModule",{value:!0}),s(we(),e)}}),F={};Be(F,{arbitrum:()=>Me,avalanche:()=>Ne,base:()=>Ve,baseGoerli:()=>We,bsc:()=>Le,celo:()=>Ue,gnosis:()=>Oe,goerli:()=>He,localhost:()=>Pe,mainnet:()=>Te,mumbai:()=>Ie,optimism:()=>Se,palm:()=>Re,polygon:()=>_e});var Pe={publicLockVersionToDeploy:13,id:31337,name:"localhost",chain:"localhost",provider:"http://127.0.0.1:8545",publicProvider:"http://127.0.0.1:8545",subgraph:{endpoint:"http://localhost:8000/subgraphs/name/unlock-protocol/unlock",endpointV2:"http://localhost:8000/subgraphs/name/testgraph"},nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18,coingecko:"ethereum"},serializerAddress:"0x959922bE3CAee4b8Cd9a407cc3ac1C251C2007B1",description:"Localhost network.",isTestNetwork:!0,fullySubsidizedGas:!0},w=l(p()),Te={publicLockVersionToDeploy:13,featured:!0,id:1,publicProvider:"https://cloudflare-eth.com/v1/mainnet",provider:"https://rpc.unlock-protocol.com/1",unlockAddress:"0xe79B93f8E22676774F2A8dAd469175ebd00029FA",previousDeploys:[{unlockAddress:"0x3d5409CcE1d45233dE1D4eBDEe74b8E004abDD13",startBlock:7120795}],multisig:"0x9168EABE624e9515f3836bA1716EC1DDd4C461D4",keyManagerAddress:"0x9A1f43090307034DBFBE2ba20320Ce815ff046D4",name:"Ethereum",chain:"ethereum",subgraph:{endpoint:"https://api.thegraph.com/subgraphs/name/unlock-protocol/unlock",endpointV2:"https://api.thegraph.com/subgraphs/name/unlock-protocol/mainnet-v2"},explorer:{name:"Etherscan",urls:{base:"https://etherscan.io/",address:e=>`https://etherscan.io/address/${e}`,transaction:e=>`https://etherscan.io/tx/${e}`,token:(e,t)=>`https://etherscan.com/token/${e}?a=${t}`}},opensea:{tokenUrl:(e,t)=>`https://opensea.io/assets/${e}/${t}`,collectionUrl:e=>`https://opensea.io/assets/${e}`,profileUrl:e=>`https://opensea.io/${e}`},blockScan:{url:e=>`https://blockscan.com/address/${e}`},nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18,coingecko:"ethereum"},startBlock:16989e3,description:"The original and most secure EVM network. Gas fees are expensive on this network.",url:"https://ethereum.org/en/",isTestNetwork:!1,maxFreeClaimCost:1,uniswapV2:{oracle:"0xE118d797E1c44F2e2A2823191a51D8b46a4A1D51"},uniswapV3:{subgraph:"https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v3",factoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",quoterAddress:"0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6",oracle:"0x951A807b523cF6e178e0ab80fBd2C9B035521931",universalRouterAddress:"0xEf1c6E67703c7BD7107eed8303Fbe6EC2554BF6B"},swapPurchaser:"0x02415541c7F4c976722493181cFdb0b46E1c94fb",wrappedNativeCurrency:{name:"Wrapped Ether",symbol:"WETH",decimals:18,address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"},tokens:[{name:"Wrapped Ether",address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",symbol:"WETH",decimals:18},{name:"Dai Stablecoin",address:"0x6B175474E89094C44Da98b954EedeAC495271d0F",symbol:"DAI",decimals:18},{name:"USD Coin",address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",symbol:"USDC",decimals:6},{address:"0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0",name:"Polygon",symbol:"MATIC",decimals:18},{name:"Tether USD",address:"0xdAC17F958D2ee523a2206206994597C13D831ec7",symbol:"USDT",decimals:6},{name:"Wrapped BTC",address:"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",symbol:"WBTC",decimals:8},{address:"0x0D8775F648430679A709E98d2b0Cb6250d2887EF",name:"Basic Attention Token",symbol:"BAT",decimals:18}],hooks:{onKeyPurchaseHook:[{id:w.HookType.PASSWORD,name:"Password required",address:"0x936Ed3E71b5990bC9A94074835D08C6ca7bbFad0"},{id:w.HookType.CAPTCHA,name:"Captcha",address:"0xaF96721f8ffc136e4C170446E68Dc6744B6Ee4f4"},{id:w.HookType.GUILD,name:"Guild",address:"0x1d8DD27432cC0aCB93B93c4486F46b67E2208359"}]}},P=l(p()),Oe={publicLockVersionToDeploy:13,featured:!0,publicProvider:"https://rpc.gnosischain.com",provider:"https://rpc.unlock-protocol.com/100",unlockAddress:"0x1bc53f4303c711cc693F6Ec3477B83703DcB317f",serializerAddress:"0x646E373EAf8a4AEc31Bf62B7Fd6fB59296d6CdA9",multisig:"0xfAC611a5b5a578628C28F77cEBDDB8C6159Ae79D",keyManagerAddress:"0xBa81C9379AC1221BF8C100800dD0B0b0b048ba14",id:100,name:"Gnosis Chain",chain:"xdai",subgraph:{endpoint:"https://api.thegraph.com/subgraphs/name/unlock-protocol/xdai",endpointV2:"https://api.thegraph.com/subgraphs/name/unlock-protocol/gnosis-v2"},explorer:{name:"Blockscout",urls:{base:"https://gnosisscan.io/",address:e=>`https://gnosisscan.io/address/${e}/transactions`,transaction:e=>`https://gnosisscan.io/tx/${e}`,token:(e,t)=>`https://gnosisscan.io/token/${e}/token-holders#holders`}},opensea:{tokenUrl:(e,t)=>null},nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18,coingecko:"xdai",coinbase:"DAI"},startBlock:19338700,previousDeploys:[{unlockAddress:"0x14bb3586Ce2946E71B95Fe00Fc73dd30ed830863",startBlock:14521200}],description:"Gnosis Chain is one of the first Ethereum sidechains and has stayed true to its values.",url:"https://www.gnosis.io/",faucet:"https://gnosisfaucet.com/",isTestNetwork:!1,maxFreeClaimCost:100,tokens:[{name:"USD Coin",symbol:"USDC",decimals:6,address:"0xddafbb505ad214d7b80b1f830fccc89b60fb7a83"},{name:"Tether USD",decimals:6,address:"0x4ecaba5870353805a9f068101a40e0f32ed605c6",symbol:"USDT"}],hooks:{onKeyPurchaseHook:[{id:P.HookType.PASSWORD,name:"Password required",address:"0x927D68eAE936Ec0111f01Fc4Ddd9cC57DB3f0Af2"},{id:P.HookType.CAPTCHA,name:"Captcha",address:"0xFb0657eAE55A4dd3E2317C9eCB311bA5Ecc62C9C"},{id:P.HookType.GUILD,name:"Guild",address:"0xe20738d9798B5B5801aEEFDB81d80Fcce3a3Aa95"}]}},y=l(p()),_e={publicLockVersionToDeploy:13,featured:!0,publicProvider:"https://polygon-rpc.com/",provider:"https://rpc.unlock-protocol.com/137",unlockAddress:"0xE8E5cd156f89F7bdB267EabD5C43Af3d5AF2A78f",multisig:"0x479f3830fbd715342868BA95E438609BCe443DFB",serializerAddress:"0x646e373eaf8a4aec31bf62b7fd6fb59296d6cda9",keyManagerAddress:"0x7111a1aDfbED501beaAd556Bba7cB6dCa3296aa9",universalCard:{cardPurchaserAddress:"0xAB355a589CFbBA7a21b91E5B6063bF822dCc0016",stripeDestinationNetwork:"polygon",stripeDestinationCurrency:"usdc"},id:137,name:"Polygon",chain:"polygon",subgraph:{endpoint:"https://api.thegraph.com/subgraphs/name/unlock-protocol/polygon",endpointV2:"https://api.thegraph.com/subgraphs/name/unlock-protocol/polygon-v2",networkName:"matic"},url:"https://polygon.technology/",explorer:{name:"Polygonscan",urls:{base:"https://polygonscan.com/",address:e=>`https://polygonscan.com/address/${e}`,transaction:e=>`https://polygonscan.com/tx/${e}`,token:(e,t)=>`https://polygonscan.com/token/${e}?a=${t}`}},opensea:{tokenUrl:(e,t)=>`https://opensea.io/assets/matic/${e}/${t}`,collectionUrl:e=>`https://opensea.io/assets/matic/${e}`},nativeCurrency:{name:"Matic",symbol:"MATIC",decimals:18,coingecko:"matic-network"},startBlock:21986688,previousDeploys:[{unlockAddress:"0x14bb3586Ce2946E71B95Fe00Fc73dd30ed830863",startBlock:15714206}],description:"Polygon is a side-chain to build and scale your projects on Ethereum, the world's largest blockchain ecosystem.",isTestNetwork:!1,maxFreeClaimCost:100,uniswapV2:{oracle:"0xE20ef269CE3ac2Af8107E706FC2Ec6E1831e3125"},uniswapV3:{factoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",quoterAddress:"0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6",oracle:"0xE77c7F14e8EB9925ca418bF80c0a81a5B9C87683",universalRouterAddress:"0x4C60051384bd2d3C01bfc845Cf5F4b44bcbE9de5"},swapPurchaser:"0x33aC9CAE1Cd9CBB191116607f564F7381d81BAD9",wrappedNativeCurrency:{name:"Wrapped MATIC",symbol:"WMATIC",decimals:18,address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270"},tokens:[{name:"Wrapped Ether",address:"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619",symbol:"WETH",decimals:18},{name:"Dai Stablecoin",address:"0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",symbol:"DAI",decimals:18},{name:"Tether USD",address:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F",symbol:"USDT",decimals:6},{name:"USD Coin",address:"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",symbol:"USDC",decimals:6},{name:"Wrapped BTC",address:"0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6",symbol:"WBTC",decimals:8}],hooks:{onKeyPurchaseHook:[{id:y.HookType.PASSWORD,name:"Password required",address:"0x9F4AE507d7E91Ab37CF35f792940fE079bd4E24d"},{id:y.HookType.CAPTCHA,name:"Captcha",address:"0x64bDe27046F915e2BAb6339Ce4f737E34474344d"},{id:y.HookType.GUILD,name:"Guild",address:"0xBfF080aB4600554c1e8c390d2e070CF423767B64"},{id:y.HookType.PROMOCODE,name:"Discount code",address:"0x93E160838c529873cB7565106bBb79a3226FE07A"}]}},T=l(p()),Le={publicLockVersionToDeploy:13,publicProvider:"https://bsc-dataseed.binance.org/",provider:"https://rpc.unlock-protocol.com/56",unlockAddress:"0xeC83410DbC48C7797D2f2AFe624881674c65c856",keyManagerAddress:"0x34EbEc0AE80A2d078DE5489f0f5cAa4d3aaEA355",id:56,name:"BNB Chain",chain:"bsc",multisig:"0x373D7cbc4F2700719DEa237500c7a154310B0F9B",subgraph:{endpoint:"https://api.thegraph.com/subgraphs/name/unlock-protocol/bsc",endpointV2:"https://api.thegraph.com/subgraphs/name/unlock-protocol/bsc-v2"},explorer:{name:"BscScan",urls:{base:"https://bscscan.com/",address:e=>`https://bscscan.com/address/${e}`,transaction:e=>`https://bscscan.com/tx/${e}`,token:(e,t)=>`https://bscscan.com/token/${e}?a=${t}`}},opensea:{tokenUrl:(e,t)=>null},nativeCurrency:{name:"BNB",symbol:"BNB",decimals:18,coingecko:"binancecoin"},uniswapV3:{universalRouterAddress:"0x4648a43B2C14Da09FdF82B161150d3F634f40491"},startBlock:13079e3,previousDeploys:[{unlockAddress:"0x99b1348a9129ac49c6de7F11245773dE2f51fB0c",startBlock:12396e3}],description:"The best-performing EVM compatible layer 1. Fully compatible tooling for EVM with up to 35 times of capacity.",url:"https://www.bnbchain.org/en",isTestNetwork:!1,maxFreeClaimCost:1,swapPurchaser:"0x5Ad19758103D474bdF5E8764D97cB02b83c3c844",tokens:[{name:"Ethereum",symbol:"ETH",decimals:18,address:"0x2170ed0880ac9a755fd29b2688956bd959f933f8"},{name:"USD Coin",symbol:"USDC",decimals:18,address:"0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d"},{name:"Tether",symbol:"USDT",decimals:18,address:"0x55d398326f99059ff775485246999027b3197955"},{name:"Dai",symbol:"DAI",decimals:18,address:"0x1af3f329e8be154074d8769d1ffa4ee058b1dbc3"}],hooks:{onKeyPurchaseHook:[{id:T.HookType.PASSWORD,name:"Password required",address:"0x338b1f296217485bf4df6CE9f93ab4C73F72b57D"},{id:T.HookType.CAPTCHA,name:"Captcha",address:"0x80E085D7591C61153D876b5171dc25756a7A3254"},{id:T.HookType.GUILD,name:"Guild",address:"0xF6963D3c395A7914De77f771C2fC44b47B8379AC"}]}},k=l(p()),Se={publicLockVersionToDeploy:13,featured:!0,publicProvider:"https://mainnet.optimism.io",provider:"https://rpc.unlock-protocol.com/10",unlockAddress:"0x99b1348a9129ac49c6de7F11245773dE2f51fB0c",multisig:"0x6E78b4447e34e751EC181DCBed63633aA753e145",keyManagerAddress:"0x8c5D54B2CAA4C2D08B0DDF82a1e6D2641779B8EC",id:10,name:"Optimism",chain:"optimism",subgraph:{endpoint:"https://api.thegraph.com/subgraphs/name/unlock-protocol/optimism",endpointV2:"https://api.thegraph.com/subgraphs/name/unlock-protocol/optimism-v2"},explorer:{name:"Etherscan",urls:{base:"https://optimistic.etherscan.io/",address:e=>`https://optimistic.etherscan.io/address/${e}`,transaction:e=>`https://optimistic.etherscan.io/tx/${e}`,token:(e,t)=>`https://optimistic.etherscan.io/token/${e}?a=${t}`}},opensea:{tokenUrl:(e,t)=>`https://opensea.io/assets/optimism/${e}/${t}`,collectionUrl:e=>`https://opensea.io/assets/optimism/${e}`},nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18,coingecko:"ethereum"},description:"Optimism is a Layer 2 Optimistic Rollup network designed to utilize the strong security guarantees of Ethereum while reducing its cost and latency.",url:"https://www.optimism.io/",isTestNetwork:!1,maxFreeClaimCost:10,uniswapV3:{factoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",quoterAddress:"0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6",oracle:"0x1FF7e338d5E582138C46044dc238543Ce555C963",universalRouterAddress:"0xb555edF5dcF85f42cEeF1f3630a52A108E55A654"},swapPurchaser:"0x72381052e4F7765A00a403891420BF75876c75bB",wrappedNativeCurrency:{name:"Wrapped Ether",symbol:"WETH",decimals:18,address:"0x4200000000000000000000000000000000000006"},tokens:[{name:"Ethereum",symbol:"ETH",decimals:18,address:"0x0000000000000000000000000000000000000000"},{name:"USD Coin",symbol:"USDC",decimals:6,address:"0x7f5c764cbc14f9669b88837ca1490cca17c31607"},{name:"Tether",symbol:"USDT",decimals:6,address:"0x94b008aa00579c1307b0ef2c499ad98a8ce58e58"},{name:"Dai",symbol:"DAI",decimals:18,address:"0xda10009cbd5d07dd0cecc66161fc93d7c9000da1"}],hooks:{onKeyPurchaseHook:[{id:k.HookType.PASSWORD,name:"Password required",address:"0x34EbEc0AE80A2d078DE5489f0f5cAa4d3aaEA355"},{id:k.HookType.CAPTCHA,name:"Captcha",address:"0xF6a9138b4ebEd2AcF651Cbd40B45584B4c625e87"},{id:k.HookType.GUILD,name:"Guild",address:"0x1402D55BF0D6566ca8F569041000a8015b608632"},{id:k.HookType.PROMOCODE,name:"Discount code",address:"0x8e0B46ec3B95c81355175693dA0083b00fCc1326"}]}},J=l(p()),Ie={publicLockVersionToDeploy:13,publicProvider:"https://matic-mumbai.chainstacklabs.com",provider:"https://rpc.unlock-protocol.com/80001",unlockAddress:"0x1FF7e338d5E582138C46044dc238543Ce555C963",multisig:"0x12E37A8880801E1e5290c815a894d322ac591607",keyManagerAddress:"0x8c5D54B2CAA4C2D08B0DDF82a1e6D2641779B8EC",id:80001,name:"Mumbai (Polygon)",chain:"mumbai",subgraph:{endpoint:"https://api.thegraph.com/subgraphs/name/unlock-protocol/mumbai",endpointV2:"https://api.thegraph.com/subgraphs/name/unlock-protocol/mumbai-v2"},explorer:{name:"PolygonScan (Mumbai)",urls:{base:"https://mumbai.polygonscan.com/",address:e=>`https://mumbai.polygonscan.com/address/${e}`,transaction:e=>`https://mumbai.polygonscan.com/tx/${e}`,token:(e,t)=>`https://mumbai.polygonscan.com/token/${e}?a=${t}`}},opensea:{tokenUrl:(e,t)=>null},nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18,coingecko:"matic-network"},startBlock:26584912,previousDeploys:[],description:"Polygon test network. Do not use for production.",url:"https://mumbai.polygonscan.com/",faucet:"https://faucet.polygon.technology/",isTestNetwork:!0,fullySubsidizedGas:!0,maxFreeClaimCost:500,uniswapV3:{factoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",quoterAddress:"0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6",oracle:"0x5108412Dd50A6ea79d2F13D5d1A23FDD9bF532db",universalRouterAddress:"0x4648a43B2C14Da09FdF82B161150d3F634f40491"},swapPurchaser:"0x302E9D970A657B42c1C124C69f3a1c1575CB4AD3",unlockOwner:"0xdc230F9A08918FaA5ae48B8E13647789A8B6dD46",wrappedNativeCurrency:{name:"Wrapped MATIC",symbol:"WMATIC",decimals:18,address:"0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889"},tokens:[{name:"USD Coin",address:"0x0FA8781a83E46826621b3BC094Ea2A0212e71B23",symbol:"USDC",decimals:6,mainnetAddress:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"},{name:"Wrapped Ether",address:"0xA6FA4fB5f76172d178d61B04b0ecd319C5d1C0aa",symbol:"WETH",decimals:18,mainnetAddress:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"},{name:"Wrapped Matic",address:"0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889",symbol:"WMATIC",decimals:18,mainnetAddress:"0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0"},{name:"Dai Stablecoin",address:"0xcB1e72786A6eb3b44C2a2429e317c8a2462CFeb1",symbol:"DAI",decimals:18,mainnetAddress:"0x6B175474E89094C44Da98b954EedeAC495271d0F"}],bridge:{domainId:9991,connext:"0x2334937846Ab2A3FCE747b32587e1A1A2f6EEC5a"},hooks:{onKeyPurchaseHook:[{id:J.HookType.PASSWORD,name:"Password required",address:"0x34EbEc0AE80A2d078DE5489f0f5cAa4d3aaEA355"},{id:J.HookType.CAPTCHA,name:"Captcha",address:"0xdd753E08BB09F22593537f29100F0eD98AfA57FA"}]}},E=l(p()),He={publicLockVersionToDeploy:13,universalCard:{cardPurchaserAddress:"0x061Bfda0446c5f71Da760BC31371CB95808f5d82",stripeDestinationNetwork:"ethereum",stripeDestinationCurrency:"usdc"},featured:!0,publicProvider:"https://goerli.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161",provider:"https://rpc.unlock-protocol.com/5",unlockAddress:"0x627118a4fB747016911e5cDA82e2E77C531e8206",multisig:"0x95C06469e557d8645966077891B4aeDe8D55A755",keyManagerAddress:"0xc328aE7fc36f975BE120aaa99f2d96C3E732e5b6",id:5,name:"Goerli (Testnet)",chain:"goerli",subgraph:{endpoint:"https://api.thegraph.com/subgraphs/name/unlock-protocol/goerli",endpointV2:"https://api.thegraph.com/subgraphs/name/unlock-protocol/goerli-v2"},explorer:{name:"Goerli (Testnet)",urls:{base:"https://goerli.etherscan.io/",address:e=>`https://goerli.etherscan.io/address/${e}`,transaction:e=>`https://goerli.etherscan.io/tx/${e}`,token:(e,t)=>`https://goerli.etherscan.io/token/${e}?a=${t}`}},opensea:{tokenUrl:(e,t)=>`https://testnets.opensea.io/assets/goerli/${e}/${t}`,collectionUrl:e=>`https://testnets.opensea.io/assets/goerli/${e}`},description:"Main Ethereum test network. Do not use for production.",faucet:"https://goerlifaucet.com/",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18,coingecko:"ethereum"},startBlock:7179039,previousDeploys:[],isTestNetwork:!0,fullySubsidizedGas:!0,maxFreeClaimCost:1e5,uniswapV3:{factoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",oracle:"0x25197CaCDE16500032EF4B35d60c6f7aEd4a38a5",universalRouterAddress:"0x4648a43B2C14Da09FdF82B161150d3F634f40491"},swapPurchaser:"0x49aD0039B30De002d4C27A6E8Fc026c7e23d083C",unlockOwner:"0x6E74DC46EbF2cDB75B72Ab1dCAe3C98c7E9d28a1",wrappedNativeCurrency:{name:"Wrapped Ether",symbol:"WETH",decimals:18,address:"0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6"},tokens:[{name:"USD Coin",symbol:"USDC",address:"0x07865c6E87B9F70255377e024ace6630C1Eaa37F",decimals:6,mainnetAddress:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"},{name:"Wrapped Ether",address:"0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6",symbol:"WETH",decimals:18,mainnetAddress:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"},{name:"Uniswap",address:"0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984",symbol:"UNI",decimals:18,mainnetAddress:"0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984"}],bridge:{domainId:1735353714,connext:"0xFCa08024A6D4bCc87275b1E4A1E22B71fAD7f649"},hooks:{onKeyPurchaseHook:[{id:E.HookType.PASSWORD,name:"Password required",address:"0xCa837900f7DaB40787b608b6738d1B730f1d2759"},{id:E.HookType.CAPTCHA,name:"Captcha",address:"0x0e646EF3F880eB9C5C97f0D6c113c40b2f442dbe"},{id:E.HookType.GUILD,name:"Guild",address:"0x1AC9271D271b8E50537CAd54b330424C52A84822"},{id:E.HookType.PROMOCODE,name:"Discount code",address:"0x850c015A6A88756a59Dc025fca988494fF90DBB7"}]},defenderRelay:{apiKey:"ABoZPmooUbZNrMxjLfK5ZjAc3ojNtS9L"}},Y=l(p()),Ue={publicLockVersionToDeploy:13,publicProvider:"https://forno.celo.org",provider:"https://rpc.unlock-protocol.com/42220",unlockAddress:"0x1FF7e338d5E582138C46044dc238543Ce555C963",multisig:"0xc293E2da9E558bD8B1DFfC4a7b174729fAb2e4E8",keyManagerAddress:"0xF6963D3c395A7914De77f771C2fC44b47B8379AC",id:42220,name:"Celo",chain:"celo",description:"Celo is the carbon-negative, mobile-first, EVM-compatible blockchain ecosystem leading a thriving new digital economy for all.",url:"https://celo.org",subgraph:{endpoint:"https://api.thegraph.com/subgraphs/name/unlock-protocol/celo",endpointV2:"https://api.thegraph.com/subgraphs/name/unlock-protocol/celo-v2"},explorer:{name:"Celoscan",urls:{base:"https://celoscan.io/",address:e=>`https://celoscan.io/address/${e}`,transaction:e=>`https://celoscan.io/tx/${e}`,token:(e,t)=>`https://celoscan.io/token/${e}?a=${t}`}},opensea:{tokenUrl:(e,t)=>null},nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18,coingecko:"celo"},startBlock:7179039,previousDeploys:[],isTestNetwork:!1,maxFreeClaimCost:1,uniswapV3:{factoryAddress:"0xAfE208a311B21f13EF87E33A90049fC17A7acDEc",quoterAddress:"0x82825d0554fA07f7FC52Ab63c961F330fdEFa8E8",oracle:"0x5108412Dd50A6ea79d2F13D5d1A23FDD9bF532db",universalRouterAddress:"0xC73d61d192FB994157168Fb56730FdEc64C9Cb8F"},swapPurchaser:"0x42F5c7839Bf00FAea6ca09517E96E82e7364384D",wrappedNativeCurrency:{name:"Celo native asset",symbol:"CELO",decimals:18,address:"0x471ece3750da237f93b8e339c536989b8978a438"},tokens:[{name:"USD Coin",symbol:"USDC",decimals:6,address:"0xef4229c8c3250c675f21bcefa42f58efbff6002a",mainnetAddress:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"},{name:"Dai Stablecoin",address:"0xE4fE50cdD716522A56204352f00AA110F731932d",symbol:"DAI",decimals:18,mainnetAddress:"0x6B175474E89094C44Da98b954EedeAC495271d0F"}],hooks:{onKeyPurchaseHook:[{id:Y.HookType.CAPTCHA,name:"Captcha",address:"0x1Bc951F8ed90F6c135F01Fe62CA348F4c3F43D00"},{id:Y.HookType.GUILD,name:"Guild",address:"0xdd753E08BB09F22593537f29100F0eD98AfA57FA"}]}},O=l(p()),Me={publicLockVersionToDeploy:13,featured:!0,publicProvider:"https://arb1.arbitrum.io/rpc",provider:"https://rpc.unlock-protocol.com/42161",unlockAddress:"0x1FF7e338d5E582138C46044dc238543Ce555C963",multisig:"0x310e9f9E3918a71dB8230cFCF32a083c7D9536d0",keyManagerAddress:"0x520294E736167303efa038205D4391b58261BC9c",id:42161,name:"Arbitrum",chain:"arbitrum",subgraph:{endpoint:"https://api.thegraph.com/subgraphs/name/unlock-protocol/arbitrum",networkName:"arbitrum-one",endpointV2:"https://api.thegraph.com/subgraphs/name/unlock-protocol/arbitrum-v2"},explorer:{name:"Arbitrum",urls:{base:"https://arbiscan.io/",address:e=>`https://arbiscan.io/address/${e}`,transaction:e=>`https://arbiscan.io/tx/${e}`,token:(e,t)=>`https://arbiscan.io/token/${e}?a=${t}`}},opensea:{tokenUrl:(e,t)=>`https://opensea.io/assets/arbitrum/${e}/${t}`,collectionUrl:e=>`https://opensea.io/assets/arbitrum/${e}`},nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18,coingecko:"ethereum"},startBlock:17429533,previousDeploys:[],isTestNetwork:!1,maxFreeClaimCost:100,description:"Arbitrum One is a Layer 2 (L2) chain running on top of Ethereum Mainnet that enables high-throughput, low cost smart contracts operations.",url:"https://arbitrum.io/",uniswapV3:{factoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",quoterAddress:"0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6",oracle:"0x821d830a7b9902F83359Bf3Ac727B04b10FD461d",universalRouterAddress:"0x4C60051384bd2d3C01bfc845Cf5F4b44bcbE9de5"},swapPurchaser:"0x0C33884Ab3eE799E7628FA3fCF20B81997745a72",wrappedNativeCurrency:{name:"Wrapped Ether",symbol:"WETH",decimals:18,address:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"},tokens:[{name:"Ethereum",symbol:"WETH",decimals:18,address:"0x82af49447d8a07e3bd95bd0d56f35241523fbab1"},{name:"USD Coin",symbol:"USDC",decimals:6,address:"0xff970a61a04b1ca14834a43f5de4533ebddb5cc8"},{name:"Tether",symbol:"USDT",decimals:6,address:"0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9"},{name:"Dai",symbol:"DAI",decimals:18,address:"0xda10009cbd5d07dd0cecc66161fc93d7c9000da1"},{name:"Wrapped Bitcoin",symbol:"WBTC",decimals:8,address:"0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f"}],hooks:{onKeyPurchaseHook:[{id:O.HookType.PASSWORD,name:"Password required",address:"0xd0b14797b9D08493392865647384974470202A78"},{id:O.HookType.CAPTCHA,name:"Captcha",address:"0xD925Ac2887Ba4372849F0fd64217A6749552bb21"},{id:O.HookType.GUILD,name:"Guild",address:"0x06538095ae3B5123e440D9991377B85C3BC6E6FF"}]}},$e=l(p()),Ne={publicLockVersionToDeploy:13,publicProvider:"https://api.avax.network/ext/bc/C/rpc",provider:"https://rpc.unlock-protocol.com/43114",unlockAddress:"0x70cBE5F72dD85aA634d07d2227a421144Af734b3",multisig:"0xEc7777C51327917fd2170c62873272ea168120Cb",keyManagerAddress:"0x8e0B46ec3B95c81355175693dA0083b00fCc1326",id:43114,name:"Avalanche (C-Chain)",chain:"avax",subgraph:{endpoint:"https://api.thegraph.com/subgraphs/name/unlock-protocol/avalanche",endpointV2:"https://api.thegraph.com/subgraphs/name/unlock-protocol/avalanche-v2"},explorer:{name:"Snowtrace (Avalanche)",urls:{base:"https://snowtrace.io/",address:e=>`https://snowtrace.io/address/${e}`,transaction:e=>`https://snowtrace.io/tx/${e}`,token:(e,t)=>`https://snowtrace.io/token/${e}?a=${t}`}},opensea:{tokenUrl:(e,t)=>null},nativeCurrency:{name:"AVAX",symbol:"AVAX",decimals:18,coingecko:"avalanche-2"},startBlock:17188332,previousDeploys:[],isTestNetwork:!1,maxFreeClaimCost:1,description:"Avalanche is an open, programmable smart contracts platform for decentralized applications.",url:"https://www.avalabs.org/",tokens:[{name:"Ethereum",symbol:"WETH",decimals:18,address:"0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab"},{name:"USD Coin",symbol:"USDC",decimals:6,address:"0xa7d7079b0fead91f3e65f86e8915cb59c1a4c664"},{name:"Tether",symbol:"USDT",decimals:6,address:"0xc7198437980c041c805a1edcba50c1ce5db95118"},{name:"Dai",symbol:"DAI",decimals:18,address:"0xd586e7f844cea2f87f50152665bcbc2c279d8d70"},{name:"Wrapped Bitcoin",symbol:"WBTC",decimals:8,address:"0x50b7545627a5162f82a992c33b87adc75187b218"}],hooks:{onKeyPurchaseHook:[{id:$e.HookType.CAPTCHA,name:"Captcha",address:"0x2499D94880B30fA505543550ac8a1e24cfFeFe78"}]}},Re={publicLockVersionToDeploy:13,fullySubsidizedGas:!0,publicProvider:"https://palm-mainnet.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161",provider:"https://rpc.unlock-protocol.com/11297108109",unlockAddress:"0x0314E34345C2327aC753C5Bf0D0751Cf6C1BfdE2",multisig:"0xABEAf8F93bEA2a2E65866CccC3060626eEc7d304",id:11297108109,name:"Palm",chain:"palm",keyManagerAddress:"0x70cBE5F72dD85aA634d07d2227a421144Af734b3",subgraph:{endpoint:"https://graph.palm.io/subgraphs/name/unlock-protocol/Palm-mainnet",networkName:"palm-mainnet",endpointV2:"https://graph.palm.io/subgraphs/name/unlock-protocol/Palm-mainnet"},explorer:{name:"Palm Explorer",urls:{base:"https://explorer.palm.io/",address:e=>`https://explorer.palm.io/address/${e}`,transaction:e=>`https://explorer.palm.io/tx/${e}`,token:(e,t)=>`https://explorer.palm.io/token/${e}?a=${t}`}},opensea:{tokenUrl:(e,t)=>null},erc20:null,nativeCurrency:{name:"PALM",symbol:"PALM",decimals:18,coingecko:"palm"},startBlock:9856400,previousDeploys:[],isTestNetwork:!1,maxFreeClaimCost:1,description:"The Palm network is an Ethereum-compatible sidechain, built to serve as the foundation of a new scalable and sustainable ecosystem for NFTs. It is designed by, and for, Ethereum developers and features low gas costs and fast transaction finality.",uniswapV3:{factoryAddress:"0x",quoterAddress:"0x",oracle:"0x"},wrappedNativeCurrency:{name:"Wrapped PALM",symbol:"WPALM",decimals:18,address:"0xF98cABF0a963452C5536330408B2590567611a71"},tokens:[{name:"Wrapped ETH",symbol:"WETH",decimals:18,address:"0x726138359C17F1E56bA8c4F737a7CAf724F6010b"},{name:"Dai",symbol:"DAI",decimals:18,address:"0x4C1f6fCBd233241bF2f4D02811E3bF8429BC27B8"}]},We={publicLockVersionToDeploy:13,publicProvider:"https://goerli.base.org",provider:"https://rpc.unlock-protocol.com/84531",unlockAddress:"0x51A1ceB83B83F1985a81C295d1fF28Afef186E02",multisig:"",keyManagerAddress:"0x70cBE5F72dD85aA634d07d2227a421144Af734b3",id:84531,name:"Base Goerli (Testnet)",chain:"base-goerli",subgraph:{networkName:"base-testnet",endpoint:"https://api.studio.thegraph.com/query/44190/unlock-protocol-base-goerli/0.0.2",endpointV2:"https://api.studio.thegraph.com/query/44190/unlock-protocol-base-goerli/0.0.2"},explorer:{name:"Base Goerli",urls:{base:"https://goerli.basescan.org/",address:e=>`https://goerli.basescan.org/address/${e}`,transaction:e=>`https://goerli.basescan.org/tx/${e}`,token:(e,t)=>`https://goerli.basescan.org/token/${e}?a=${t}`}},opensea:{tokenUrl:(e,t)=>`https://testnets.opensea.io/assets/goerli/${e}/${t}`,collectionUrl:e=>`https://testnets.opensea.io/assets/goerli/${e}`},description:"Main Ethereum test network. Do not use for production.",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18,coingecko:"ethereum"},startBlock:2247300,isTestNetwork:!0,fullySubsidizedGas:!0,maxFreeClaimCost:1e4},Ve={publicLockVersionToDeploy:13,publicProvider:"https://developer-access-mainnet.base.org",provider:"https://rpc.unlock-protocol.com/8453",unlockAddress:"0xd0b14797b9D08493392865647384974470202A78",multisig:"0x8149FeaFa41DD1ee3CA62299b9c67e9ac12FA340",keyManagerAddress:"0xD26c05a33349a6DeD02DD9360e1ef303d1246fb6",id:8453,name:"Base",chain:"base",subgraph:{networkName:"base",endpoint:"https://api.studio.thegraph.com/query/44190/unlock-protocol-base/v0.0.1",endpointV2:"https://api.studio.thegraph.com/query/44190/unlock-protocol-base/v0.0.1"},explorer:{name:"Basescan",urls:{base:"https://basescan.org/",address:e=>`https://basescan.org/address/${e}`,transaction:e=>`https://basescan.org/tx/${e}`,token:(e,t)=>`https://basescan.org/token/${e}?a=${t}`}},description:"Base is a secure, low-cost, builder-friendly Ethereum L2 built to bring the next billion users onchain. ",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18,coingecko:"ethereum"},startBlock:175e4,isTestNetwork:!1,fullySubsidizedGas:!1,maxFreeClaimCost:10},X={};Object.keys(F).forEach(e=>{const t=F[e];X[t.id]=t});var Z=X;const Q={};Object.keys(Z).map(Number).forEach(e=>{const{provider:t,publicProvider:s,name:o,id:a,subgraph:r}=Z[e];Q[e]={id:a,name:o,publicProvider:s,provider:t,subgraph:r}}),d.Paywall=K,d.default=K,d.networkConfigs=Q,d.setupUnlockProtocolVariable=te,Object.defineProperties(d,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}); | ||
(function(u,b){typeof exports=="object"&&typeof module<"u"?b(exports,require("postmate")):typeof define=="function"&&define.amd?define(["exports","postmate"],b):(u=typeof globalThis<"u"?globalThis:u||self,b(u["@unlock-protocol/paywall"]={},u.Postmate))})(this,function(u,b){"use strict";const m=(e,s)=>{let t;e===f.status&&m("unlockProtocol",s.state);try{t=new window.CustomEvent(e,{detail:s})}catch{t=window.document.createEvent("customevent"),t.initCustomEvent(e,!0,!0,s)}window.dispatchEvent(t)},f={status:"unlockProtocol.status",authenticated:"unlockProtocol.authenticated",transactionSent:"unlockProtocol.transactionSent",metadata:"unlockProtocol.metadata",closeModal:"unlockProtocol.closeModal"},re=e=>{const s={},t={writable:!1,configurable:!1,enumerable:!1},o=Object.keys(e).map(r=>({[r]:{value:e[r],...t}}));Object.defineProperties(s,Object.assign({},...o)),(Object.freeze||Object)(s);try{Object.defineProperties(window,{unlockProtocol:{value:s,...t}})}catch{console.warn("WARNING: unlockProtocol already defined, cannot re-define it")}},w=(e,s)=>{const t={...e};return t.autoconnect&&(t.useDelegatedProvider=!!s),t.useDelegatedProvider||(t.useDelegatedProvider=!!s),t};function H(){let e;try{e=window.localStorage;const s="__storage_test__";return e.setItem(s,s),e.removeItem(s),!0}catch(s){return s instanceof DOMException&&(s.code===22||s.code===1014||s.name==="QuotaExceededError"||s.name==="NS_ERROR_DOM_QUOTA_REACHED")&&e&&e.length!==0}}function ne(e,s){H()&&localStorage.setItem(e,JSON.stringify(s))}function ce(e){if(H()){const s=localStorage.getItem(e)||!1;return s?JSON.parse(s):void 0}}const ie=async(e,s,t)=>{const o={method:"eth_call",params:[{to:s,data:`0x6d8ea5b4000000000000000000000000${t.substring(2)}`},"latest"],id:31337,jsonrpc:"2.0"};try{const a=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)});if(!a)return 0;const{result:r}=await a.json();return parseInt(r,16)===1}catch(a){return console.error(`Error fetching hasValidKey for ${t} on ${s}: ${a}`),!1}},de=async(e,s,t)=>{const o=[];return s?.locks?(await Promise.all(Object.entries(s.locks).map(async([a])=>{const r=s.locks[a].network||s.network,{provider:n}=t[r];await ie(n,a,e)&&o.push(a)})),o):[]};function le(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var P={exports:{}},h=typeof Reflect=="object"?Reflect:null,$=h&&typeof h.apply=="function"?h.apply:function(s,t,o){return Function.prototype.apply.call(s,t,o)},k;h&&typeof h.ownKeys=="function"?k=h.ownKeys:Object.getOwnPropertySymbols?k=function(s){return Object.getOwnPropertyNames(s).concat(Object.getOwnPropertySymbols(s))}:k=function(s){return Object.getOwnPropertyNames(s)};function ue(e){console&&console.warn&&console.warn(e)}var I=Number.isNaN||function(s){return s!==s};function c(){c.init.call(this)}P.exports=c,P.exports.once=he,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var N=10;function B(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(c,"defaultMaxListeners",{enumerable:!0,get:function(){return N},set:function(e){if(typeof e!="number"||e<0||I(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");N=e}}),c.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},c.prototype.setMaxListeners=function(s){if(typeof s!="number"||s<0||I(s))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+s+".");return this._maxListeners=s,this};function R(e){return e._maxListeners===void 0?c.defaultMaxListeners:e._maxListeners}c.prototype.getMaxListeners=function(){return R(this)},c.prototype.emit=function(s){for(var t=[],o=1;o<arguments.length;o++)t.push(arguments[o]);var a=s==="error",r=this._events;if(r!==void 0)a=a&&r.error===void 0;else if(!a)return!1;if(a){var n;if(t.length>0&&(n=t[0]),n instanceof Error)throw n;var i=new Error("Unhandled error."+(n?" ("+n.message+")":""));throw i.context=n,i}var p=r[s];if(p===void 0)return!1;if(typeof p=="function")$(p,this,t);else for(var ae=p.length,Je=q(p,ae),o=0;o<ae;++o)$(Je[o],this,t);return!0};function W(e,s,t,o){var a,r,n;if(B(t),r=e._events,r===void 0?(r=e._events=Object.create(null),e._eventsCount=0):(r.newListener!==void 0&&(e.emit("newListener",s,t.listener?t.listener:t),r=e._events),n=r[s]),n===void 0)n=r[s]=t,++e._eventsCount;else if(typeof n=="function"?n=r[s]=o?[t,n]:[n,t]:o?n.unshift(t):n.push(t),a=R(e),a>0&&n.length>a&&!n.warned){n.warned=!0;var i=new Error("Possible EventEmitter memory leak detected. "+n.length+" "+String(s)+" listeners added. Use emitter.setMaxListeners() to increase limit");i.name="MaxListenersExceededWarning",i.emitter=e,i.type=s,i.count=n.length,ue(i)}return e}c.prototype.addListener=function(s,t){return W(this,s,t,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(s,t){return W(this,s,t,!0)};function pe(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function V(e,s,t){var o={fired:!1,wrapFn:void 0,target:e,type:s,listener:t},a=pe.bind(o);return a.listener=t,o.wrapFn=a,a}c.prototype.once=function(s,t){return B(t),this.on(s,V(this,s,t)),this},c.prototype.prependOnceListener=function(s,t){return B(t),this.prependListener(s,V(this,s,t)),this},c.prototype.removeListener=function(s,t){var o,a,r,n,i;if(B(t),a=this._events,a===void 0)return this;if(o=a[s],o===void 0)return this;if(o===t||o.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete a[s],a.removeListener&&this.emit("removeListener",s,o.listener||t));else if(typeof o!="function"){for(r=-1,n=o.length-1;n>=0;n--)if(o[n]===t||o[n].listener===t){i=o[n].listener,r=n;break}if(r<0)return this;r===0?o.shift():me(o,r),o.length===1&&(a[s]=o[0]),a.removeListener!==void 0&&this.emit("removeListener",s,i||t)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(s){var t,o,a;if(o=this._events,o===void 0)return this;if(o.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):o[s]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete o[s]),this;if(arguments.length===0){var r=Object.keys(o),n;for(a=0;a<r.length;++a)n=r[a],n!=="removeListener"&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=o[s],typeof t=="function")this.removeListener(s,t);else if(t!==void 0)for(a=t.length-1;a>=0;a--)this.removeListener(s,t[a]);return this};function j(e,s,t){var o=e._events;if(o===void 0)return[];var a=o[s];return a===void 0?[]:typeof a=="function"?t?[a.listener||a]:[a]:t?fe(a):q(a,a.length)}c.prototype.listeners=function(s){return j(this,s,!0)},c.prototype.rawListeners=function(s){return j(this,s,!1)},c.listenerCount=function(e,s){return typeof e.listenerCount=="function"?e.listenerCount(s):z.call(e,s)},c.prototype.listenerCount=z;function z(e){var s=this._events;if(s!==void 0){var t=s[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}c.prototype.eventNames=function(){return this._eventsCount>0?k(this._events):[]};function q(e,s){for(var t=new Array(s),o=0;o<s;++o)t[o]=e[o];return t}function me(e,s){for(;s+1<e.length;s++)e[s]=e[s+1];e.pop()}function fe(e){for(var s=new Array(e.length),t=0;t<s.length;++t)s[t]=e[t].listener||e[t];return s}function he(e,s){return new Promise(function(t,o){function a(n){e.removeListener(s,r),o(n)}function r(){typeof e.removeListener=="function"&&e.removeListener("error",a),t([].slice.call(arguments))}G(e,s,r,{once:!0}),s!=="error"&&be(e,a,{once:!0})})}function be(e,s,t){typeof e.on=="function"&&G(e,"error",s,t)}function G(e,s,t,o){if(typeof e.on=="function")o.once?e.once(s,t):e.on(s,t);else if(typeof e.addEventListener=="function")e.addEventListener(s,function a(r){o.once&&e.removeEventListener(s,a),t(r)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var Ce=P.exports;const De=le(Ce),Ae=()=>{if(typeof window<"u"){const e=window;if(e&&e.ethereum)return e.ethereum;if(e&&e.web3)return e.web3.currentProvider}},Ee=async e=>{if(!e)throw new Error("Fatal: no web3 provider found.");return e.enable?await e.enable():null},K={resolveMethodCall:"handleMethodCallEvent",resolveOnEvent:"handleOnEventCallEvent"};class ye extends De.EventEmitter{constructor(s,t,o){super(),this.isMetamask=!0,this.#e={},this.#s={},this.paywall=s,this.unlockUrl=t,this.config=o}#e;#s;async connect(){this.paywall.iframe?this.paywall.showIframe():await this.paywall.shakeHands(this.unlockUrl),this.paywall.sendOrBuffer("authenticate",this.config),this.paywall.child.on(T.resolveOnEventCall,s=>this.#s?.[s]?.()),this.paywall.child.on(T.resolveMethodCall,s=>{const{id:t}=s,o=this.#e[t];o&&(delete this.#e[t],o(s.error,s.response))})}async#t(s){return new Promise((t,o)=>{this.#e[s.id]=(a,r)=>{a?o(a):t(r)},this.paywall.sendOrBuffer(K.resolveMethodCall,s)})}async request(s){return s.id||(s.id=window.crypto.randomUUID()),s.method==="eth_requestAccounts"?(await this.connect(),this.#t(s)):await this.#t(s)}on(s,t){return this.#s[s]=t,this.paywall.sendOrBuffer(K.resolveOnEvent,{event:s}),this}}let X="https://paywall.unlock-protocol.com";const ke=e=>{try{return new URL(e)}catch{return null}};if(typeof window<"u"){const e=document?.currentScript?.getAttribute("src");if(e){const s=ke(e);s&&["paywall.unlock-protocol.com","staging-paywall.unlock-protocol.com"].includes(s.hostname)&&(X=s.toString())}}const Be=new URL(X);function Fe(e){let s;return e.match("staging-paywall.unlock-protocol.com")?s="https://staging-app.unlock-protocol.com":e.match("paywall.unlock-protocol.com")?s="https://app.unlock-protocol.com":s="http://localhost:3000",{unlockAppUrl:s}}const{unlockAppUrl:ve}=Fe(Be.toString()),J="unlock-protocol-checkout";var T=(e=>(e.userInfo="checkout.userInfo",e.closeModal="checkout.closeModal",e.transactionInfo="checkout.transactionInfo",e.metadata="checkout.metadata",e.methodCall="checkout.methodCall",e.onEvent="checkout.onEvent",e.enable="checkout.enable",e.resolveMethodCall="checkout.resolveMethodCall",e.resolveOnEventCall="checkout.resolveOnEventCall",e))(T||{});let O;class Y{constructor(s){this.childCallBuffer=[],this.connect=async t=>{this.provider=t||Ae()},this.getProvider=(t="https://app.unlock-protocol.com",o={clientId:window.location.origin.toString()})=>(this.provider||(this.provider=new ye(this,t,o)),this.provider),this.loadCheckoutModal=async(t,o)=>new Promise(async a=>{const r={},n=(i,p)=>{if(i=="checkout.userInfo"&&(r.userAddress=p.address),i=="checkout.transactionInfo"&&(r.transactionInfo=p),i==="checkout.closeModal")return a(r)};this.iframe?this.showIframe():await this.shakeHands(o||ve,n),this.setPaywallConfig(t||this.paywallConfig)}),this.setPaywallConfig=t=>{this.provider&&!this.provider.isPaywallProvider&&(t.autoconnect=!0),this.paywallConfig=w(t,this.provider),this.loadCache(),this.paywallConfig=w(t,this.provider),this.checkKeysAndLock(),this.sendOrBuffer("setConfig",w(t||this.paywallConfig,this.provider))},this.shakeHands=async(t,o)=>{O||(O=await new b({url:`${t}/checkout`,classListArray:[J]})),this.child=O,this.iframe=document.getElementsByClassName(J)[0],this.showIframe(),this.child.on("checkout.closeModal",()=>{this.hideIframe(),typeof o=="function"&&o("checkout.closeModal")}),this.child.on("checkout.userInfo",a=>{this.handleUserInfoEvent(a),typeof o=="function"&&o("checkout.userInfo",a)}),this.child.on("checkout.methodCall",a=>{this.handleMethodCallEvent(a),typeof o=="function"&&o("checkout.methodCall",a)}),this.child.on("checkout.onEvent",a=>{this.handleOnEventEvent(a),typeof o=="function"&&o("checkout.onEvent",a)}),this.child.on("checkout.enable",a=>{this.handleEnable(),typeof o=="function"&&o("checkout.enable",a)}),this.child.on("checkout.metadata",a=>{this.handleMetadataEvent(a),typeof o=="function"&&o("checkout.metadata",a)}),this.child.on("checkout.transactionInfo",a=>{this.handleTransactionInfoEvent(a),typeof o=="function"&&o("checkout.transactionInfo",a)}),this.childCallBuffer.forEach(a=>this.child.call(...a))},this.sendOrBuffer=(t,o)=>{this.child?this.child.call(t,o):this.childCallBuffer.push([t,o])},this.handleTransactionInfoEvent=async({hash:t,lock:o,...a})=>{m(f.transactionSent,{hash:t,lock:o,...a}),!this.paywallConfig?.pessimistic&&t&&o&&this.unlockPage([o])},this.handleUserInfoEvent=async t=>{this.userAccountAddress=t.address,m(f.authenticated,t),this.cacheUserInfo(t),this.checkKeysAndLock()},this.handleMethodCallEvent=async({method:t,params:o,id:a})=>{const r=this.provider;if(r.request)return r.request({method:t,params:o,id:a}).then(n=>{this.child.call("resolveMethodCall",{id:a,error:null,response:n})}).catch(n=>{this.child.call("resolveMethodCall",{id:a,error:n,response:null})});r.sendAsync?r.sendAsync({method:t,params:o,id:a},(n,i)=>{this.child.call("resolveMethodCall",{id:a,error:n,response:i})}):console.error("unknown method to call provider! Please make sure you use and EIP1193 provider!",{provider:r})},this.handleOnEventEvent=async t=>{this.provider.on(t,()=>{this.child.call("resolveOnEvent",t)})},this.handleEnable=async()=>{const t=await Ee(this.provider);this.child.call("resolveOnEnable",t)},this.showIframe=()=>{this.iframe.classList.add("show")},this.hideIframe=()=>{m(f.closeModal,{}),this.iframe.classList.remove("show")},this.getUserAccountAddress=()=>this.userAccountAddress,this.getState=()=>this.lockStatus,this.cacheUserInfo=async t=>{ne("userInfo",t)},this.loadCache=async()=>{const t=ce("userInfo");if(!t)return this.lockPage();this.userAccountAddress=t.address,this.checkKeysAndLock()},this.lockPage=()=>{this.lockStatus="locked",m(f.status,{state:this.lockStatus})},this.unlockPage=(t=[])=>{this.lockStatus="unlocked",m(f.status,{locks:t,state:this.lockStatus})},this.networkConfigs=s}async handleMetadataEvent(s){m(f.metadata,s)}async checkKeysAndLock(){if(!this.userAccountAddress)return;this.lockStatus=void 0;const s=await de(this.userAccountAddress,this.paywallConfig,this.networkConfigs);return s.length?this.unlockPage(s):this.lockPage()}}var xe=Object.create,S=Object.defineProperty,ge=Object.getOwnPropertyDescriptor,Q=Object.getOwnPropertyNames,we=Object.getPrototypeOf,Pe=Object.prototype.hasOwnProperty,Z=(e,s)=>function(){return s||(0,e[Q(e)[0]])((s={exports:{}}).exports,s),s.exports},Te=(e,s)=>{for(var t in s)S(e,t,{get:s[t],enumerable:!0})},Oe=(e,s,t,o)=>{if(s&&typeof s=="object"||typeof s=="function")for(let a of Q(s))!Pe.call(e,a)&&a!==t&&S(e,a,{get:()=>s[a],enumerable:!(o=ge(s,a))||o.enumerable});return e},d=(e,s,t)=>(t=e!=null?xe(we(e)):{},Oe(s||!e||!e.__esModule?S(t,"default",{value:e,enumerable:!0}):t,e)),Se=Z({"../types/dist/types/unlockTypes.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.KeyStatus=e.HooksName=e.HookType=e.TransactionStatus=e.TransactionType=void 0;var s;(function(r){r.LOCK_CREATION="LOCK_CREATION",r.KEY_PURCHASE="KEY_PURCHASE",r.WITHDRAWAL="WITHDRAWAL",r.UPDATE_KEY_PRICE="UPDATE_KEY_PRICE"})(s||(e.TransactionType=s={}));var t;(function(r){r.SUBMITTED="submitted",r.PENDING="pending",r.MINED="mined",r.STALE="stale",r.FAILED="failed",r.NONE=""})(t||(e.TransactionStatus=t={}));var o;(function(r){r.CUSTOM_CONTRACT="CUSTOM_CONTRACT",r.PASSWORD="PASSWORD",r.PROMOCODE="PROMOCODE",r.PROMO_CODE_CAPPED="PROMO_CODE_CAPPED",r.CAPTCHA="CAPTCHA",r.GUILD="GUILD"})(o||(e.HookType=o={})),e.HooksName=["onKeyPurchaseHook","onKeyCancelHook","onValidKeyHook","onTokenURIHook","onKeyTransferHook","onKeyExtendHook","onKeyGrantHook"];var a;(function(r){r.NONE="none",r.CONFIRMING="confirming",r.CONFIRMED="confirmed",r.EXPIRED="expired",r.VALID="valid",r.SUBMITTED="submitted",r.PENDING="pending",r.FAILED="failed"})(a||(e.KeyStatus=a={}))}}),l=Z({"../types/dist/index.js"(e){var s=e&&e.__createBinding||(Object.create?function(o,a,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(a,r);(!i||("get"in i?!a.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return a[r]}}),Object.defineProperty(o,n,i)}:function(o,a,r,n){n===void 0&&(n=r),o[n]=a[r]}),t=e&&e.__exportStar||function(o,a){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(a,r)&&s(a,o,r)};Object.defineProperty(e,"__esModule",{value:!0}),t(Se(),e)}}),_={};Te(_,{arbitrum:()=>We,avalanche:()=>Ve,base:()=>je,bsc:()=>He,celo:()=>Re,gnosis:()=>Me,goerli:()=>Ne,linea:()=>ze,localhost:()=>_e,mainnet:()=>Ue,mumbai:()=>Ie,optimism:()=>$e,polygon:()=>Le,scroll:()=>Ke,sepolia:()=>qe,zkevm:()=>Ge,zksync:()=>Xe});var _e={chain:"localhost",description:"Localhost network.",featured:!1,fullySubsidizedGas:!0,id:31337,isTestNetwork:!0,name:"localhost",nativeCurrency:{coingecko:"ethereum",decimals:18,name:"ETH",symbol:"ETH"},provider:"http://127.0.0.1:8545",publicLockVersionToDeploy:13,publicProvider:"http://127.0.0.1:8545",subgraph:{endpoint:"http://localhost:8000/subgraphs/name/unlock-protocol/unlock"}},U=d(l()),Ue={blockScan:{url:e=>`https://blockscan.com/address/${e}`},chain:"ethereum",description:"The original and most secure EVM network. Gas fees are expensive on this network.",explorer:{name:"Etherscan",urls:{address:e=>`https://etherscan.io/address/${e}`,base:"https://etherscan.io/",token:(e,s)=>`https://etherscan.com/token/${e}?a=${s}`,transaction:e=>`https://etherscan.io/tx/${e}`}},featured:!0,governanceBridge:{connext:"0x8898B472C54c31894e3B9bb83cEA802a5d0e63C6",domainId:6648936},hooks:{onKeyPurchaseHook:[{address:"0x936Ed3E71b5990bC9A94074835D08C6ca7bbFad0",id:U.HookType.PASSWORD,name:"Password required"},{address:"0xaF96721f8ffc136e4C170446E68Dc6744B6Ee4f4",id:U.HookType.CAPTCHA,name:"Captcha"},{address:"0x1d8DD27432cC0aCB93B93c4486F46b67E2208359",id:U.HookType.GUILD,name:"Guild"}]},id:1,isTestNetwork:!1,keyManagerAddress:"0x9A1f43090307034DBFBE2ba20320Ce815ff046D4",maxFreeClaimCost:1,multisig:"0x9168EABE624e9515f3836bA1716EC1DDd4C461D4",name:"Ethereum",nativeCurrency:{coingecko:"ethereum",decimals:18,name:"Ether",symbol:"ETH",wrapped:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"},opensea:{collectionUrl:e=>`https://opensea.io/assets/${e}`,profileUrl:e=>`https://opensea.io/${e}`,tokenUrl:(e,s)=>`https://opensea.io/assets/${e}/${s}`},previousDeploys:[{startBlock:7120795,unlockAddress:"0x3d5409CcE1d45233dE1D4eBDEe74b8E004abDD13"}],provider:"https://rpc.unlock-protocol.com/1",publicLockVersionToDeploy:13,publicProvider:"https://cloudflare-eth.com/v1/mainnet",startBlock:16989e3,subgraph:{endpoint:"https://api.studio.thegraph.com/query/65299/unlock-protocol-mainnet/version/latest",studioName:"unlock-protocol-mainnet"},swapPurchaser:"0x02415541c7F4c976722493181cFdb0b46E1c94fb",tokens:[{address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",decimals:18,featured:!0,name:"Wrapped Ether",symbol:"WETH"},{address:"0x6B175474E89094C44Da98b954EedeAC495271d0F",decimals:18,featured:!0,name:"Dai Stablecoin",symbol:"DAI"},{address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",decimals:6,featured:!0,name:"USD Coin",symbol:"USDC"},{address:"0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0",decimals:18,name:"Matic Token",symbol:"MATIC"},{address:"0xdAC17F958D2ee523a2206206994597C13D831ec7",decimals:6,name:"Tether USD",symbol:"USDT"},{address:"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",decimals:8,featured:!0,name:"Wrapped BTC",symbol:"WBTC"},{address:"0x0D8775F648430679A709E98d2b0Cb6250d2887EF",decimals:18,name:"Basic Attention Token",symbol:"BAT"},{address:"0xd7C1EB0fe4A30d3B2a846C04aa6300888f087A5F",decimals:18,name:"POINTS",symbol:"POINTS"},{address:"0x58b6A8A3302369DAEc383334672404Ee733aB239",decimals:18,name:"Livepeer Token",symbol:"LPT"},{address:"0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE",decimals:18,name:"SHIBA INU",symbol:"SHIB"},{address:"0x514910771AF9Ca656af840dff83E8264EcF986CA",decimals:18,name:"ChainLink Token",symbol:"LINK"},{address:"0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984",decimals:18,name:"Uniswap",symbol:"UNI"},{address:"0xB8c77482e45F1F44dE1745F52C74426C631bDD52",decimals:18,name:"BNB",symbol:"BNB"}],uniswapV3:{factoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",oracle:"0x951A807b523cF6e178e0ab80fBd2C9B035521931",positionManager:"0xC36442b4a4522E871399CD717aBDD847Ab11FE88",quoterAddress:"0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6",subgraph:"https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v3",universalRouterAddress:"0xEf1c6E67703c7BD7107eed8303Fbe6EC2554BF6B"},unlockAddress:"0xe79B93f8E22676774F2A8dAd469175ebd00029FA",unlockDaoToken:{address:"0x90DE74265a416e1393A450752175AED98fe11517"},url:"https://ethereum.org/en/"},F=d(l()),Me={blockScan:{url:e=>`https://blockscan.com/address/${e}`},chain:"xdai",description:"Gnosis Chain is one of the first Ethereum sidechains and has stayed true to its values.",explorer:{name:"Blockscout",urls:{address:e=>`https://gnosisscan.io/address/${e}/transactions`,base:"https://gnosisscan.io/",token:(e,s)=>`https://gnosisscan.io/token/${e}?a=${s}`,transaction:e=>`https://gnosisscan.io/tx/${e}`}},faucet:"https://gnosisfaucet.com/",featured:!0,governanceBridge:{connext:"0x5bB83e95f63217CDa6aE3D181BA580Ef377D2109",domainId:6778479,modules:{connextMod:"0xdFB9328cF62e3525D355581dE88AeAa330879D12",delayMod:"0x6E74DC46EbF2cDB75B72Ab1dCAe3C98c7E9d28a1"}},hooks:{onKeyPurchaseHook:[{address:"0x927D68eAE936Ec0111f01Fc4Ddd9cC57DB3f0Af2",id:F.HookType.PASSWORD,name:"Password required"},{address:"0xFb0657eAE55A4dd3E2317C9eCB311bA5Ecc62C9C",id:F.HookType.CAPTCHA,name:"Captcha"},{address:"0xe20738d9798B5B5801aEEFDB81d80Fcce3a3Aa95",id:F.HookType.GUILD,name:"Guild"},{address:"0x5ff4d5733Cc2b0A069cFF409eCEad3C5C71Ee346",id:F.HookType.PROMO_CODE_CAPPED,name:"Discount code with caps"}]},id:100,isTestNetwork:!1,keyManagerAddress:"0xBa81C9379AC1221BF8C100800dD0B0b0b048ba14",maxFreeClaimCost:100,multisig:"0xfAC611a5b5a578628C28F77cEBDDB8C6159Ae79D",name:"Gnosis Chain",nativeCurrency:{coinbase:"DAI",coingecko:"xdai",decimals:18,name:"xDAI",symbol:"xDAI"},previousDeploys:[{startBlock:14521200,unlockAddress:"0x14bb3586Ce2946E71B95Fe00Fc73dd30ed830863"}],provider:"https://rpc.unlock-protocol.com/100",publicLockVersionToDeploy:13,publicProvider:"https://rpc.gnosischain.com",startBlock:19338700,subgraph:{endpoint:"https://api.studio.thegraph.com/query/65299/unlock-protocol-gnosis/version/latest",networkName:"gnosis",studioName:"unlock-protocol-gnosis"},tokens:[{address:"0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83",decimals:6,featured:!0,name:"USD//C on xDai",symbol:"USDC"},{address:"0x4ECaBa5870353805a9F068101A40E0f32ed605C6",decimals:6,featured:!0,name:"Tether USD on xDai",symbol:"USDT"}],unlockAddress:"0x1bc53f4303c711cc693F6Ec3477B83703DcB317f",unlockDaoToken:{address:"0x8C84142c4a716a16a89d0e61707164d6107A9811",mainnetBridge:"0x41a4ee2855A7Dc328524babB07d7f505B201133e"},url:"https://www.gnosis.io/"},C=d(l()),Le={blockScan:{url:e=>`https://blockscan.com/address/${e}`},chain:"polygon",description:"Polygon is a side-chain to build and scale your projects on Ethereum, the world's largest blockchain ecosystem.",explorer:{name:"Polygonscan",urls:{address:e=>`https://polygonscan.com/address/${e}`,base:"https://polygonscan.com/",token:(e,s)=>`https://polygonscan.com/token/${e}?a=${s}`,transaction:e=>`https://polygonscan.com/tx/${e}`}},featured:!0,governanceBridge:{connext:"0x11984dc4465481512eb5b777E44061C158CF2259",domainId:1886350457,modules:{connextMod:"0xa8E0FD3D023B1A253eF52B6169851Ee95eF257bE",delayMod:"0x31B8bB0BC5ffEe8e476202e9D97b0b8c31aA767d"}},hooks:{onKeyPurchaseHook:[{address:"0x9F4AE507d7E91Ab37CF35f792940fE079bd4E24d",id:C.HookType.PASSWORD,name:"Password required"},{address:"0x64bDe27046F915e2BAb6339Ce4f737E34474344d",id:C.HookType.CAPTCHA,name:"Captcha"},{address:"0xBfF080aB4600554c1e8c390d2e070CF423767B64",id:C.HookType.GUILD,name:"Guild"},{address:"0x93E160838c529873cB7565106bBb79a3226FE07A",id:C.HookType.PROMOCODE,name:"Discount code"},{address:"0xa10a55EF6E41dE1267cA8A98010B58a7b6B21418",id:C.HookType.PROMO_CODE_CAPPED,name:"Discount code with caps"}]},id:137,isTestNetwork:!1,keyManagerAddress:"0x7111a1aDfbED501beaAd556Bba7cB6dCa3296aa9",maxFreeClaimCost:100,multisig:"0x479f3830fbd715342868BA95E438609BCe443DFB",name:"Polygon",nativeCurrency:{coingecko:"matic-network",decimals:18,name:"Matic",symbol:"MATIC",wrapped:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270"},opensea:{collectionUrl:e=>`https://opensea.io/assets/matic/${e}`,tokenUrl:(e,s)=>`https://opensea.io/assets/matic/${e}/${s}`},previousDeploys:[{startBlock:15714206,unlockAddress:"0x14bb3586Ce2946E71B95Fe00Fc73dd30ed830863"}],provider:"https://rpc.unlock-protocol.com/137",publicLockVersionToDeploy:13,publicProvider:"https://polygon-rpc.com/",startBlock:21986688,subgraph:{endpoint:"https://api.studio.thegraph.com/query/65299/unlock-protocol-polygon/version/latest",networkName:"matic",studioName:"unlock-protocol-polygon"},swapPurchaser:"0x33aC9CAE1Cd9CBB191116607f564F7381d81BAD9",tokens:[{address:"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619",decimals:18,featured:!0,name:"Wrapped Ether",symbol:"WETH"},{address:"0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",decimals:18,featured:!0,name:"(PoS) Dai Stablecoin",symbol:"DAI"},{address:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F",decimals:6,featured:!0,name:"(PoS) Tether USD",symbol:"USDT"},{address:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",decimals:6,featured:!0,name:"USD Coin",symbol:"USDC"},{address:"0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6",decimals:8,featured:!0,name:"(PoS) Wrapped BTC",symbol:"WBTC"},{address:"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",decimals:6,name:"USD Coin (PoS)",symbol:"USDC"},{address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",decimals:18,name:"Wrapped Matic",symbol:"WMATIC"},{address:"0xE06Bd4F5aAc8D0aA337D13eC88dB6defC6eAEefE",decimals:18,name:"PlanetIX",symbol:"IXT"}],uniswapV3:{factoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",oracle:"0xE77c7F14e8EB9925ca418bF80c0a81a5B9C87683",positionManager:"0xC36442b4a4522E871399CD717aBDD847Ab11FE88",quoterAddress:"0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6",universalRouterAddress:"0x4C60051384bd2d3C01bfc845Cf5F4b44bcbE9de5"},universalCard:{cardPurchaserAddress:"0xAB355a589CFbBA7a21b91E5B6063bF822dCc0016",stripeDestinationCurrency:"usdc",stripeDestinationNetwork:"polygon"},unlockAddress:"0xE8E5cd156f89F7bdB267EabD5C43Af3d5AF2A78f",unlockDaoToken:{address:"0xf7E78d9C4c74df889A83C8C8d6D05BF70fF75876",mainnetBridge:"0x40ec5B33f54e0E8A33A975908C5BA1c14e5BbbDf"},url:"https://polygon.technology/"},v=d(l()),He={blockScan:{url:e=>`https://blockscan.com/address/${e}`},chain:"bsc",description:"The best-performing EVM compatible layer 1. Fully compatible tooling for EVM with up to 35 times of capacity.",explorer:{name:"BscScan",urls:{address:e=>`https://bscscan.com/address/${e}`,base:"https://bscscan.com/",token:(e,s)=>`https://bscscan.com/token/${e}?a=${s}`,transaction:e=>`https://bscscan.com/tx/${e}`}},featured:!1,governanceBridge:{connext:"0xCd401c10afa37d641d2F594852DA94C700e4F2CE",domainId:6450786,modules:{connextMod:"0x36b34e10295cCE69B652eEB5a8046041074515Da",delayMod:"0xcf07c951C44731f82E548286C7ebeC576149a49e"}},hooks:{onKeyPurchaseHook:[{address:"0x338b1f296217485bf4df6CE9f93ab4C73F72b57D",id:v.HookType.PASSWORD,name:"Password required"},{address:"0x80E085D7591C61153D876b5171dc25756a7A3254",id:v.HookType.CAPTCHA,name:"Captcha"},{address:"0xF6963D3c395A7914De77f771C2fC44b47B8379AC",id:v.HookType.GUILD,name:"Guild"},{address:"0x1Bc951F8ed90F6c135F01Fe62CA348F4c3F43D00",id:v.HookType.PROMO_CODE_CAPPED,name:"Discount code with caps"}]},id:56,isTestNetwork:!1,keyManagerAddress:"0x34EbEc0AE80A2d078DE5489f0f5cAa4d3aaEA355",maxFreeClaimCost:1,multisig:"0x373D7cbc4F2700719DEa237500c7a154310B0F9B",name:"BNB Chain",nativeCurrency:{coingecko:"binancecoin",decimals:18,name:"BNB",symbol:"BNB",wrapped:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"},opensea:{collectionUrl:e=>`https://opensea.io/assets/bsc/${e}`,tokenUrl:(e,s)=>`https://opensea.io/assets/bsc/${e}/${s}`},previousDeploys:[{startBlock:12396e3,unlockAddress:"0x99b1348a9129ac49c6de7F11245773dE2f51fB0c"}],provider:"https://rpc.unlock-protocol.com/56",publicLockVersionToDeploy:13,publicProvider:"https://bsc-dataseed.binance.org/",startBlock:13079e3,subgraph:{endpoint:"https://api.studio.thegraph.com/query/65299/unlock-protocol-bsc/version/latest",studioName:"unlock-protocol-bsc"},swapPurchaser:"0xc9F29DdBD4D828cFb2EB491E9d48013a9c0E3C89",tokens:[{address:"0x2170Ed0880ac9A755fd29B2688956BD959F933F8",decimals:18,featured:!0,name:"Ethereum Token",symbol:"ETH"},{address:"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",decimals:18,featured:!0,name:"USD Coin",symbol:"USDC"},{address:"0x55d398326f99059fF775485246999027B3197955",decimals:18,featured:!0,name:"Tether USD",symbol:"USDT"},{address:"0x1AF3F329e8BE154074D8769D1FFa4eE058B1DBc3",decimals:18,featured:!0,name:"Dai Token",symbol:"DAI"},{address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",decimals:18,name:"Wrapped BNB",symbol:"WBNB"}],uniswapV3:{factoryAddress:"0xdB1d10011AD0Ff90774D0C6Bb92e5C5c8b4461F7",positionManager:"0x7b8A01B39D58278b5DE7e48c8449c9f4F5170613",universalRouterAddress:"0x5Dc88340E1c5c6366864Ee415d6034cadd1A9897"},unlockAddress:"0xeC83410DbC48C7797D2f2AFe624881674c65c856",url:"https://www.bnbchain.org/en"},D=d(l()),$e={blockScan:{url:e=>`https://blockscan.com/address/${e}`},chain:"optimism",description:"Optimism is a Layer 2 Optimistic Rollup network designed to utilize the strong security guarantees of Ethereum while reducing its cost and latency.",explorer:{name:"Etherscan",urls:{address:e=>`https://optimistic.etherscan.io/address/${e}`,base:"https://optimistic.etherscan.io/",token:(e,s)=>`https://optimistic.etherscan.io/token/${e}?a=${s}`,transaction:e=>`https://optimistic.etherscan.io/tx/${e}`}},featured:!0,governanceBridge:{connext:"0x8f7492DE823025b4CfaAB1D34c58963F2af5DEDA",domainId:1869640809,modules:{connextMod:"0xF241F12506fb6Bf1909c6bC176A199166414007a",delayMod:"0xA8BB5AF09B599794136B14B112e137FAf83Acf1f"}},hooks:{onKeyPurchaseHook:[{address:"0x34EbEc0AE80A2d078DE5489f0f5cAa4d3aaEA355",id:D.HookType.PASSWORD,name:"Password required"},{address:"0xF6a9138b4ebEd2AcF651Cbd40B45584B4c625e87",id:D.HookType.CAPTCHA,name:"Captcha"},{address:"0x1402D55BF0D6566ca8F569041000a8015b608632",id:D.HookType.GUILD,name:"Guild"},{address:"0x8e0B46ec3B95c81355175693dA0083b00fCc1326",id:D.HookType.PROMOCODE,name:"Discount code"},{address:"0xD4385fd4A79B6636828eC8BC6795766a797E9CF5",id:D.HookType.PROMO_CODE_CAPPED,name:"Discount code with caps"}]},id:10,isTestNetwork:!1,keyManagerAddress:"0x8c5D54B2CAA4C2D08B0DDF82a1e6D2641779B8EC",maxFreeClaimCost:100,multisig:"0x6E78b4447e34e751EC181DCBed63633aA753e145",name:"Optimism",nativeCurrency:{coingecko:"ethereum",decimals:18,name:"Ether",symbol:"ETH",wrapped:"0x4200000000000000000000000000000000000006"},opensea:{collectionUrl:e=>`https://opensea.io/assets/optimism/${e}`,tokenUrl:(e,s)=>`https://opensea.io/assets/optimism/${e}/${s}`},previousDeploys:[],provider:"https://rpc.unlock-protocol.com/10",publicLockVersionToDeploy:13,publicProvider:"https://mainnet.optimism.io",startBlock:302400,subgraph:{endpoint:"https://api.studio.thegraph.com/query/65299/unlock-protocol-optimism/version/latest",studioName:"unlock-protocol-optimism"},swapPurchaser:"0x72381052e4F7765A00a403891420BF75876c75bB",tokens:[{address:"0x7F5c764cBc14f9669B88837ca1490cCa17c31607",decimals:6,name:"USD Coin",symbol:"USDC"},{address:"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",decimals:6,featured:!0,name:"USD Coin",symbol:"USDC"},{address:"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58",decimals:6,featured:!0,name:"Tether USD",symbol:"USDT"},{address:"0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",decimals:18,featured:!0,name:"Dai Stablecoin",symbol:"DAI"},{address:"0xdC6fF44d5d932Cbd77B52E5612Ba0529DC6226F1",decimals:18,name:"Worldcoin",symbol:"WLD"},{address:"0x4200000000000000000000000000000000000042",decimals:18,name:"Optimism",symbol:"OP"},{address:"0x4200000000000000000000000000000000000006",decimals:18,name:"Wrapped Ether",symbol:"WETH"},{address:"0x68f180fcCe6836688e9084f035309E29Bf0A2095",decimals:8,name:"Wrapped BTC",symbol:"WBTC"}],uniswapV3:{factoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",oracle:"0x1FF7e338d5E582138C46044dc238543Ce555C963",positionManager:"0xC36442b4a4522E871399CD717aBDD847Ab11FE88",quoterAddress:"0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6",universalRouterAddress:"0xb555edF5dcF85f42cEeF1f3630a52A108E55A654"},unlockAddress:"0x99b1348a9129ac49c6de7F11245773dE2f51fB0c",url:"https://www.optimism.io/"},ee=d(l()),Ie={blockScan:{url:e=>`https://blockscan.com/address/${e}`},chain:"mumbai",description:"Polygon test network. Do not use for production.",explorer:{name:"PolygonScan (Mumbai)",urls:{address:e=>`https://mumbai.polygonscan.com/address/${e}`,base:"https://mumbai.polygonscan.com/",token:(e,s)=>`https://mumbai.polygonscan.com/token/${e}?a=${s}`,transaction:e=>`https://mumbai.polygonscan.com/tx/${e}`}},faucet:"https://faucet.polygon.technology/",featured:!1,fullySubsidizedGas:!0,governanceBridge:{connext:"0x2334937846Ab2A3FCE747b32587e1A1A2f6EEC5a",domainId:9991},hooks:{onKeyPurchaseHook:[{address:"0x34EbEc0AE80A2d078DE5489f0f5cAa4d3aaEA355",id:ee.HookType.PASSWORD,name:"Password required"},{address:"0xdd753E08BB09F22593537f29100F0eD98AfA57FA",id:ee.HookType.CAPTCHA,name:"Captcha"}]},id:80001,isTestNetwork:!0,keyManagerAddress:"0x8c5D54B2CAA4C2D08B0DDF82a1e6D2641779B8EC",maxFreeClaimCost:500,multisig:"0x12E37A8880801E1e5290c815a894d322ac591607",name:"Mumbai (Polygon)",nativeCurrency:{coingecko:"matic-network",decimals:18,name:"MATIC",symbol:"MATIC",wrapped:"0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889"},opensea:{collectionUrl:e=>`https://testnets.opensea.io/assets/mumbai/${e}`,tokenUrl:(e,s)=>`https://testnets.opensea.io/assets/mumbai/${e}/${s}`},previousDeploys:[],provider:"https://rpc.unlock-protocol.com/80001",publicLockVersionToDeploy:13,publicProvider:"https://matic-mumbai.chainstacklabs.com",startBlock:26584912,subgraph:{endpoint:"https://api.studio.thegraph.com/query/65299/unlock-protocol-mumbai/version/latest",studioName:"unlock-protocol-mumbai"},swapPurchaser:"0x302E9D970A657B42c1C124C69f3a1c1575CB4AD3",tokens:[{address:"0x0FA8781a83E46826621b3BC094Ea2A0212e71B23",decimals:6,featured:!0,mainnetAddress:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",name:"USD Coin (PoS)",symbol:"USDC"},{address:"0xA6FA4fB5f76172d178d61B04b0ecd319C5d1C0aa",decimals:18,featured:!0,mainnetAddress:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",name:"Wrapped Ether",symbol:"WETH"},{address:"0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889",decimals:18,featured:!0,mainnetAddress:"0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0",name:"Wrapped Matic",symbol:"WMATIC"},{address:"0xcB1e72786A6eb3b44C2a2429e317c8a2462CFeb1",decimals:18,featured:!0,mainnetAddress:"0x6B175474E89094C44Da98b954EedeAC495271d0F",name:"Dai Stablecoin",symbol:"DAI"}],uniswapV3:{factoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",oracle:"0x5108412Dd50A6ea79d2F13D5d1A23FDD9bF532db",quoterAddress:"0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6",universalRouterAddress:"0x4648a43B2C14Da09FdF82B161150d3F634f40491"},unlockAddress:"0x1FF7e338d5E582138C46044dc238543Ce555C963",unlockOwner:"0xdc230F9A08918FaA5ae48B8E13647789A8B6dD46",url:"https://mumbai.polygonscan.com/"},A=d(l()),Ne={blockScan:{url:e=>`https://blockscan.com/address/${e}`},chain:"goerli",description:"Main Ethereum test network. Do not use for production.",explorer:{name:"Goerli",urls:{address:e=>`https://goerli.etherscan.io/address/${e}`,base:"https://goerli.etherscan.io/",token:(e,s)=>`https://goerli.etherscan.io/token/${e}?a=${s}`,transaction:e=>`https://goerli.etherscan.io/tx/${e}`}},faucet:"https://goerlifaucet.com/",featured:!0,fullySubsidizedGas:!0,governanceBridge:{connext:"0xFCa08024A6D4bCc87275b1E4A1E22B71fAD7f649",domainId:1735353714,modules:{connextMod:"0xce58DB94DE48A8a9Ea47cBe4376F19724D154DF2",delayMod:"0x46FdC1d73486E20406D1C6dAcDD22b6599AEA32d"}},hooks:{onKeyPurchaseHook:[{address:"0xCa837900f7DaB40787b608b6738d1B730f1d2759",id:A.HookType.PASSWORD,name:"Password required"},{address:"0xDF2A7C8be199C0e9e825750586be7F331F30dC29",id:A.HookType.CAPTCHA,name:"Captcha"},{address:"0x1AC9271D271b8E50537CAd54b330424C52A84822",id:A.HookType.GUILD,name:"Guild"},{address:"0x850c015A6A88756a59Dc025fca988494fF90DBB7",id:A.HookType.PROMOCODE,name:"Discount code"},{address:"0x6d1571813c8fEB24856594d23b323234B1adEfE1",id:A.HookType.PROMO_CODE_CAPPED,name:"Discount code with caps"}]},id:5,isTestNetwork:!0,keyManagerAddress:"0xc328aE7fc36f975BE120aaa99f2d96C3E732e5b6",maxFreeClaimCost:1e5,multisig:"0x95C06469e557d8645966077891B4aeDe8D55A755",name:"Goerli",nativeCurrency:{coingecko:"ethereum",decimals:18,name:"ETH",symbol:"ETH",wrapped:"0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6"},opensea:{collectionUrl:e=>`https://testnets.opensea.io/assets/goerli/${e}`,tokenUrl:(e,s)=>`https://testnets.opensea.io/assets/goerli/${e}/${s}`},previousDeploys:[],provider:"https://rpc.unlock-protocol.com/5",publicLockVersionToDeploy:13,publicProvider:"https://goerli.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161",startBlock:7179039,subgraph:{endpoint:"https://api.studio.thegraph.com/query/65299/unlock-protocol-goerli/version/latest",studioName:"unlock-protocol-goerli"},swapPurchaser:"0x49aD0039B30De002d4C27A6E8Fc026c7e23d083C",tokens:[{address:"0x07865c6E87B9F70255377e024ace6630C1Eaa37F",decimals:6,featured:!0,mainnetAddress:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",name:"USD Coin",symbol:"USDC"},{address:"0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6",decimals:18,featured:!0,mainnetAddress:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",name:"Wrapped Ether",symbol:"WETH"},{address:"0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984",decimals:18,featured:!0,mainnetAddress:"0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984",name:"Uniswap",symbol:"UNI"}],uniswapV3:{factoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",oracle:"0x25197CaCDE16500032EF4B35d60c6f7aEd4a38a5",positionManager:"0xC36442b4a4522E871399CD717aBDD847Ab11FE88",universalRouterAddress:"0x4648a43B2C14Da09FdF82B161150d3F634f40491"},universalCard:{cardPurchaserAddress:"0x061Bfda0446c5f71Da760BC31371CB95808f5d82",stripeDestinationCurrency:"usdc",stripeDestinationNetwork:"ethereum"},unlockAddress:"0x627118a4fB747016911e5cDA82e2E77C531e8206",unlockOwner:"0x6E74DC46EbF2cDB75B72Ab1dCAe3C98c7E9d28a1",url:"https://goerli.net/"},M=d(l()),Re={blockScan:{url:e=>`https://blockscan.com/address/${e}`},chain:"celo",description:"Celo is the carbon-negative, mobile-first, EVM-compatible blockchain ecosystem leading a thriving new digital economy for all.",explorer:{name:"Celoscan",urls:{address:e=>`https://celoscan.io/address/${e}`,base:"https://celoscan.io/",token:(e,s)=>`https://celoscan.io/token/${e}?a=${s}`,transaction:e=>`https://celoscan.io/tx/${e}`}},featured:!1,hooks:{onKeyPurchaseHook:[{address:"0x1Bc951F8ed90F6c135F01Fe62CA348F4c3F43D00",id:M.HookType.CAPTCHA,name:"Captcha"},{address:"0xdd753E08BB09F22593537f29100F0eD98AfA57FA",id:M.HookType.GUILD,name:"Guild"},{address:"0x55C7336ea96BABb0bEabD676C07880aa8b76584a",id:M.HookType.PROMO_CODE_CAPPED,name:"Discount code with caps"}]},id:42220,isTestNetwork:!1,keyManagerAddress:"0xF6963D3c395A7914De77f771C2fC44b47B8379AC",maxFreeClaimCost:1,multisig:"0xc293E2da9E558bD8B1DFfC4a7b174729fAb2e4E8",name:"Celo",nativeCurrency:{coingecko:"celo",decimals:18,name:"CELO",symbol:"CELO"},previousDeploys:[],provider:"https://rpc.unlock-protocol.com/42220",publicLockVersionToDeploy:13,publicProvider:"https://forno.celo.org",startBlock:13994123,subgraph:{endpoint:"https://api.studio.thegraph.com/query/65299/unlock-protocol-celo/version/latest",studioName:"unlock-protocol-celo"},swapPurchaser:"0x42F5c7839Bf00FAea6ca09517E96E82e7364384D",tokens:[{address:"0xef4229c8c3250C675F21BCefa42f58EfbfF6002a",decimals:6,featured:!0,mainnetAddress:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",name:"USD Coin",symbol:"USDC"},{address:"0xE4fE50cdD716522A56204352f00AA110F731932d",decimals:18,featured:!0,mainnetAddress:"0x6B175474E89094C44Da98b954EedeAC495271d0F",name:"Dai Stablecoin",symbol:"DAI"}],uniswapV3:{factoryAddress:"0xAfE208a311B21f13EF87E33A90049fC17A7acDEc",oracle:"0x5108412Dd50A6ea79d2F13D5d1A23FDD9bF532db",quoterAddress:"0x82825d0554fA07f7FC52Ab63c961F330fdEFa8E8",universalRouterAddress:"0xC73d61d192FB994157168Fb56730FdEc64C9Cb8F"},unlockAddress:"0x1FF7e338d5E582138C46044dc238543Ce555C963",url:"https://celo.org"},x=d(l()),We={blockScan:{url:e=>`https://blockscan.com/address/${e}`},chain:"arbitrum",description:"Arbitrum One is a Layer 2 (L2) chain running on top of Ethereum Mainnet that enables high-throughput, low cost smart contracts operations.",explorer:{name:"Arbitrum",urls:{address:e=>`https://arbiscan.io/address/${e}`,base:"https://arbiscan.io/",token:(e,s)=>`https://arbiscan.io/token/${e}?a=${s}`,transaction:e=>`https://arbiscan.io/tx/${e}`}},featured:!0,governanceBridge:{connext:"0xEE9deC2712cCE65174B561151701Bf54b99C24C8",domainId:1634886255,modules:{connextMod:"0x4A553635774b3d6fB6273A83b5B49577dF450227",delayMod:"0xF241F12506fb6Bf1909c6bC176A199166414007a"}},hooks:{onKeyPurchaseHook:[{address:"0xd0b14797b9D08493392865647384974470202A78",id:x.HookType.PASSWORD,name:"Password required"},{address:"0xD925Ac2887Ba4372849F0fd64217A6749552bb21",id:x.HookType.CAPTCHA,name:"Captcha"},{address:"0x06538095ae3B5123e440D9991377B85C3BC6E6FF",id:x.HookType.GUILD,name:"Guild"},{address:"0x1A9E2E085bF4E4fE5eE45C682a3Af26d55FA1431",id:x.HookType.PROMO_CODE_CAPPED,name:"Discount code with caps"}]},id:42161,isTestNetwork:!1,keyManagerAddress:"0x520294E736167303efa038205D4391b58261BC9c",maxFreeClaimCost:100,multisig:"0x310e9f9E3918a71dB8230cFCF32a083c7D9536d0",name:"Arbitrum",nativeCurrency:{coingecko:"ethereum",decimals:18,name:"ETH",symbol:"ETH",wrapped:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"},opensea:{collectionUrl:e=>`https://opensea.io/assets/arbitrum/${e}`,tokenUrl:(e,s)=>`https://opensea.io/assets/arbitrum/${e}/${s}`},previousDeploys:[],provider:"https://rpc.unlock-protocol.com/42161",publicLockVersionToDeploy:13,publicProvider:"https://arb1.arbitrum.io/rpc",startBlock:17429533,subgraph:{endpoint:"https://api.studio.thegraph.com/query/65299/unlock-protocol-arbitrum/version/latest",networkName:"arbitrum-one",studioName:"unlock-protocol-arbitrum"},swapPurchaser:"0x0C33884Ab3eE799E7628FA3fCF20B81997745a72",tokens:[{address:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",decimals:18,featured:!0,name:"Wrapped Ether",symbol:"WETH"},{address:"0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8",decimals:6,name:"USD Coin (Arb1)",symbol:"USDC"},{address:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831",decimals:6,featured:!0,name:"USD Coin",symbol:"USDC"},{address:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",decimals:6,featured:!0,name:"Tether USD",symbol:"USDT"},{address:"0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",decimals:18,featured:!0,name:"Dai Stablecoin",symbol:"DAI"},{address:"0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f",decimals:8,featured:!0,name:"Wrapped BTC",symbol:"WBTC"},{address:"0x912CE59144191C1204E64559FE8253a0e49E6548",decimals:18,name:"Arbitrum",symbol:"ARB"}],uniswapV3:{factoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",oracle:"0x821d830a7b9902F83359Bf3Ac727B04b10FD461d",positionManager:"0xC36442b4a4522E871399CD717aBDD847Ab11FE88",quoterAddress:"0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6",universalRouterAddress:"0x4C60051384bd2d3C01bfc845Cf5F4b44bcbE9de5"},unlockAddress:"0x1FF7e338d5E582138C46044dc238543Ce555C963",url:"https://arbitrum.io/"},L=d(l()),Ve={blockScan:{url:e=>`https://blockscan.com/address/${e}`},chain:"avax",description:"Avalanche is an open, programmable smart contracts platform for decentralized applications.",explorer:{name:"Snowtrace (Avalanche)",urls:{address:e=>`https://snowtrace.io/address/${e}`,base:"https://snowtrace.io/",token:(e,s)=>`https://snowtrace.io/token/${e}?a=${s}`,transaction:e=>`https://snowtrace.io/tx/${e}`}},featured:!1,hooks:{onKeyPurchaseHook:[{address:"0x2499D94880B30fA505543550ac8a1e24cfFeFe78",id:L.HookType.CAPTCHA,name:"Captcha"},{address:"0x58D86Dc056c442867485941FeBeA8D3bB4657eAC",id:L.HookType.PASSWORD,name:"Password required"},{address:"0x520294E736167303efa038205D4391b58261BC9c",id:L.HookType.PROMO_CODE_CAPPED,name:"Discount code with caps"}]},id:43114,isTestNetwork:!1,keyManagerAddress:"0x8e0B46ec3B95c81355175693dA0083b00fCc1326",maxFreeClaimCost:1,multisig:"0xEc7777C51327917fd2170c62873272ea168120Cb",name:"Avalanche (C-Chain)",nativeCurrency:{coingecko:"avalanche-2",decimals:18,name:"AVAX",symbol:"AVAX"},opensea:{collectionUrl:e=>`https://opensea.io/assets/avalanche/${e}`,tokenUrl:(e,s)=>`https://opensea.io/assets/avalanche/${e}/${s}`},previousDeploys:[],provider:"https://rpc.unlock-protocol.com/43114",publicLockVersionToDeploy:13,publicProvider:"https://api.avax.network/ext/bc/C/rpc",startBlock:17188332,subgraph:{endpoint:"https://api.studio.thegraph.com/query/65299/unlock-protocol-avalanche/version/latest",studioName:"unlock-protocol-avalanche"},tokens:[{address:"0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB",decimals:18,featured:!0,name:"Wrapped Ether",symbol:"WETH.e"},{address:"0xA7D7079b0FEaD91F3e65f86E8915Cb59c1a4C664",decimals:6,name:"USD Coin",symbol:"USDC.e"},{address:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",decimals:6,featured:!0,name:"USD Coin",symbol:"USDC"},{address:"0xc7198437980c041c805A1EDcbA50c1Ce5db95118",decimals:6,featured:!0,name:"Tether USD",symbol:"USDT.e"},{address:"0xd586E7F844cEa2F87f50152665BCbc2C279D8d70",decimals:18,featured:!0,name:"Dai Stablecoin",symbol:"DAI.e"},{address:"0x50b7545627a5162F82A992c33b87aDc75187B218",decimals:8,featured:!0,name:"Wrapped BTC",symbol:"WBTC.e"}],unlockAddress:"0x70cBE5F72dD85aA634d07d2227a421144Af734b3",url:"https://www.avalabs.org/"},g=d(l()),je={blockScan:{url:e=>`https://blockscan.com/address/${e}`},chain:"base",description:"Base is a secure, low-cost, builder-friendly Ethereum L2 built to bring the next billion users onchain. ",explorer:{name:"Basescan",urls:{address:e=>`https://basescan.org/address/${e}`,base:"https://basescan.org/",token:(e,s)=>`https://basescan.org/token/${e}?a=${s}`,transaction:e=>`https://basescan.org/tx/${e}`}},featured:!0,fullySubsidizedGas:!1,hooks:{onKeyPurchaseHook:[{address:"0x7455DdA870f8421b7C1920Efb84DFF7398c6A73E",id:g.HookType.PASSWORD,name:"Password required"},{address:"0x8c573E1A64D7C6726B3b2E119206e9FD1f5Bc0a0",id:g.HookType.PROMOCODE,name:"Discount code"},{address:"0xC2227b9fc792a5933E64FE9F782fdeDDaf49951b",id:g.HookType.PROMO_CODE_CAPPED,name:"Discount code with caps"},{address:"0x87AaA7498Daf5Bb0DB03806fB5389b260E8aCe92",id:g.HookType.GUILD,name:"Guild"}]},id:8453,isTestNetwork:!1,keyManagerAddress:"0xD26c05a33349a6DeD02DD9360e1ef303d1246fb6",maxFreeClaimCost:100,multisig:"0x8149FeaFa41DD1ee3CA62299b9c67e9ac12FA340",name:"Base",nativeCurrency:{coingecko:"ethereum",decimals:18,name:"ETH",symbol:"ETH",wrapped:"0x4200000000000000000000000000000000000006"},opensea:{collectionUrl:e=>`https://opensea.io/assets/base/${e}`,tokenUrl:(e,s)=>`https://opensea.io/assets/base/${e}/${s}`},previousDeploys:[],provider:"https://rpc.unlock-protocol.com/8453",publicLockVersionToDeploy:13,publicProvider:"https://mainnet.base.org",startBlock:175e4,subgraph:{endpoint:"https://api.studio.thegraph.com/query/65299/unlock-protocol-base/version/latest",networkName:"base",studioName:"unlock-protocol-base"},swapPurchaser:"0x70B3c9Dd9788570FAAb24B92c3a57d99f8186Cc7",tokens:[{address:"0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb",decimals:18,featured:!0,name:"Dai Stablecoin",symbol:"DAI"},{address:"0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA",decimals:6,name:"USD Base Coin",symbol:"USDbC"},{address:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",decimals:6,featured:!0,name:"USD Coin",symbol:"USDC"},{address:"0x4200000000000000000000000000000000000006",decimals:18,name:"Wrapped Ether",symbol:"WETH"}],uniswapV3:{factoryAddress:"0x33128a8fC17869897dcE68Ed026d694621f6FDfD",positionManager:"0x03a520b32C04BF3bEEf7BEb72E919cf822Ed34f1",universalRouterAddress:"0x198EF79F1F515F02dFE9e3115eD9fC07183f02fC"},unlockAddress:"0xd0b14797b9D08493392865647384974470202A78",url:"https://base.org/"},E=d(l()),ze={blockScan:{url:e=>`https://blockscan.com/address/${e}`},chain:"linea",description:"Linea a Layer 2 zk-Rollup EVM-compatible chain powered by ConsenSys.",explorer:{name:"Linea",urls:{address:e=>`https://lineascan.build/address/${e}`,base:"https://lineascan.build/",token:(e,s)=>`https://lineascan.build/token/${e}?a=${s}`,transaction:e=>`https://lineascan.build/tx/${e}`}},featured:!1,hooks:{onKeyPurchaseHook:[{address:"0x6878Ae3c863f6Ebd27B47C02F6B32aAC8B0BA07E",id:E.HookType.PASSWORD,name:"Password required"},{address:"0x8c5D54B2CAA4C2D08B0DDF82a1e6D2641779B8EC",id:E.HookType.CAPTCHA,name:"Captcha"},{address:"0xaE8F3F0826A39122401ED634f0a5C19549331432",id:E.HookType.GUILD,name:"Guild"},{address:"0xCD9C9b40D757b56359e19563203D3bc64089638d",id:E.HookType.PROMOCODE,name:"Discount code"},{address:"0x4Bf912519549DF750002814a2DcE7184b3971F06",id:E.HookType.PROMO_CODE_CAPPED,name:"Discount code with caps"}]},id:59144,isTestNetwork:!1,keyManagerAddress:"0x338b1f296217485bf4df6CE9f93ab4C73F72b57D",maxFreeClaimCost:10,name:"Linea",nativeCurrency:{coingecko:"linea-eth",decimals:18,name:"Linea Ether",symbol:"ETH"},previousDeploys:[],provider:"https://rpc.unlock-protocol.com/59144",publicLockVersionToDeploy:13,publicProvider:"https://rpc.linea.build/",startBlock:560908,subgraph:{endpoint:"https://api.studio.thegraph.com/query/65299/unlock-protocol-linea/version/latest",studioName:"unlock-protocol-linea"},tokens:[{address:"0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f",decimals:18,featured:!0,name:"Wrapped Ether",symbol:"WETH"},{address:"0x4AF15ec2A0BD43Db75dd04E62FAA3B8EF36b00d5",decimals:18,featured:!0,name:"Dai Stablecoin",symbol:"DAI"},{address:"0xA219439258ca9da29E9Cc4cE5596924745e12B93",decimals:6,featured:!0,name:"Tether USD",symbol:"USDT"},{address:"0x176211869cA2b568f2A7D4EE941E073a821EE1ff",decimals:6,featured:!0,name:"USDC",symbol:"USDC"},{address:"0x3aAB2285ddcDdaD8edf438C1bAB47e1a9D05a9b4",decimals:8,featured:!0,name:"Wrapped BTC",symbol:"WBTC"}],unlockAddress:"0x70B3c9Dd9788570FAAb24B92c3a57d99f8186Cc7",url:"https://linea.build/"},y=d(l()),qe={blockScan:{url:e=>`https://blockscan.com/address/${e}`},chain:"sepolia",description:"Sepolia is the primary testnet recommended by the Ethereum community for dapp development.",explorer:{name:"Sepolia Etherscan",urls:{address:e=>`https://sepolia.etherscan.io/address/${e}`,base:"https://sepolia.etherscan.io/",token:(e,s)=>`https://sepolia.etherscan.io/token/${e}?a=${s}`,transaction:e=>`https://sepolia.etherscan.io/tx/${e}`}},featured:!0,fullySubsidizedGas:!0,hooks:{onKeyPurchaseHook:[{address:"0x34EbEc0AE80A2d078DE5489f0f5cAa4d3aaEA355",id:y.HookType.PASSWORD,name:"Password required"},{address:"0xd0b14797b9D08493392865647384974470202A78",id:y.HookType.CAPTCHA,name:"Captcha"},{address:"0x6878Ae3c863f6Ebd27B47C02F6B32aAC8B0BA07E",id:y.HookType.GUILD,name:"Guild"},{address:"0x639143cbf90F27eA5Ce4b3A7D869d4D7878009A5",id:y.HookType.PROMOCODE,name:"Discount code"},{address:"0x0aC1a84AcaB08b630714d59dA74576D7274E68d5",id:y.HookType.PROMO_CODE_CAPPED,name:"Discount code with caps"}]},id:11155111,isTestNetwork:!0,keyManagerAddress:"0x338b1f296217485bf4df6CE9f93ab4C73F72b57D",maxFreeClaimCost:1e3,multisig:"0x95fE514fe7F60722AFF0FD009ebeE4Ba2013924c",name:"Sepolia",nativeCurrency:{coingecko:"ethereum",decimals:18,name:"ETH",symbol:"ETH"},opensea:{collectionUrl:e=>`https://testnets.opensea.io/assets/sepolia/${e}`,tokenUrl:(e,s)=>`https://testnets.opensea.io/assets/sepolia/${e}/${s}`},previousDeploys:[],provider:"https://rpc.unlock-protocol.com/11155111",publicLockVersionToDeploy:13,publicProvider:"https://rpc2.sepolia.org/",startBlock:4381710,subgraph:{endpoint:"https://api.studio.thegraph.com/query/65299/unlock-protocol-sepolia/version/latest",networkName:"sepolia",studioName:"unlock-protocol-sepolia"},tokens:[{address:"0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9",decimals:18,featured:!0,mainnetAddress:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",name:"Wrapped Ether",symbol:"WETH"},{address:"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",decimals:6,featured:!0,name:"USDC",symbol:"USDC"}],uniswapV3:{factoryAddress:"0xB7f907f7A9eBC822a80BD25E224be42Ce0A698A0",positionManager:"0x1238536071E1c677A632429e3655c799b22cDA52",universalRouterAddress:"0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD"},unlockAddress:"0x36b34e10295cCE69B652eEB5a8046041074515Da",unlockDaoToken:{address:"0x447B1492C5038203f1927eB2a374F5Fcdc25999d"},url:"https://github.com/eth-clients/sepolia"},Ge={chain:"zkevm",description:"Polygon zkEVM is a Layer 2 network of the Ethereum Virtual Machine (EVM), a zero-knowledge (ZK) rollup scaling solution.",explorer:{name:"zkEVM (Polygonscan)",urls:{address:e=>`https://zkevm.polygonscan.com/address/${e}`,base:"https://zkevm.polygonscan.com/",token:(e,s)=>`https://zkevm.polygonscan.com/token/${e}?a=${s}`,transaction:e=>`https://zkevm.polygonscan.com/tx/${e}`}},featured:!1,id:1101,isTestNetwork:!1,maxFreeClaimCost:1,multisig:"0xD62EF39c54d9100B17c8fA3C2D15e0262338AED0",name:"zkEVM (Polygon)",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH",wrapped:"0x4F9A0e7FD2Bf6067db6994CF12E4495Df938E6e9"},previousDeploys:[],provider:"https://rpc.unlock-protocol.com/1101",publicLockVersionToDeploy:14,publicProvider:"https://polygon-zkevm.drpc.org",startBlock:0,subgraph:{endpoint:"https://api.studio.thegraph.com/query/65299/unlock-protocol-zkevm/version/latest",networkName:"polygon-zkevm",studioName:"unlock-protocol-zkevm"},tokens:[{address:"0x4F9A0e7FD2Bf6067db6994CF12E4495Df938E6e9",decimals:18,featured:!0,name:"Wrapped Ether",symbol:"WETH9"},{address:"0x37eAA0eF3549a5Bb7D431be78a3D99BD360d19e5",decimals:6,name:"USD Coin",symbol:"USDC"},{address:"0x1E4a5963aBFD975d8c9021ce480b42188849D41d",decimals:6,featured:!0,name:"Tether USD",symbol:"USDT"},{address:"0x744C5860ba161b5316F7E80D9Ec415e2727e5bD5",decimals:18,featured:!0,name:"Dai Stablecoin",symbol:"DAI"},{address:"0xEA034fb02eB1808C2cc3adbC15f447B93CbE08e1",decimals:8,featured:!0,name:"Wrapped BTC",symbol:"WBTC"}],unlockAddress:"0x259813B665C8f6074391028ef782e27B65840d89",url:"https://polygon.technology/polygon-zkevm"},Ke={chain:"scroll",description:"Scroll seamlessly extends Ethereum’s capabilities through zero knowledge tech and EVM compatibility. The L2 network built by Ethereum devs for Ethereum devs.",explorer:{name:"Scrollscan",urls:{address:e=>`https://scrollscan.com/address/${e}`,base:"https://scrollscan.com/",token:(e,s)=>`https://etherscan.com/token/${e}?a=${s}`,transaction:e=>`https://scrollscan.com/tx/${e}`}},featured:!1,id:534352,isTestNetwork:!1,maxFreeClaimCost:100,multisig:"0x0feE9413A626a05a08AcB0E0e5D6A483e6A0a172",name:"Scroll",nativeCurrency:{coingecko:"ethereum",decimals:18,name:"Ether",symbol:"ETH",wrapped:"0x5300000000000000000000000000000000000004"},provider:"https://rpc.unlock-protocol.com/534352",publicLockVersionToDeploy:14,publicProvider:"https://rpc.scroll.io",startBlock:2937779,subgraph:{endpoint:"https://api.studio.thegraph.com/query/65299/unlock-protocol-scroll/version/latest",studioName:"unlock-protocol-scroll"},tokens:[{address:"0x5300000000000000000000000000000000000004",decimals:18,featured:!0,name:"Wrapped Ether",symbol:"WETH"},{address:"0xcA77eB3fEFe3725Dc33bccB54eDEFc3D9f764f97",decimals:18,featured:!0,name:"Dai Stablecoin",symbol:"DAI"},{address:"0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4",decimals:6,featured:!0,name:"USD Coin",symbol:"USDC"},{address:"0xf55BEC9cafDbE8730f096Aa55dad6D22d44099Df",decimals:6,name:"Tether USD",symbol:"USDT"},{address:"0x3C1BCa5a656e69edCD0D4E36BEbb3FcDAcA60Cf1",decimals:8,featured:!0,name:"Wrapped BTC",symbol:"WBTC"}],unlockAddress:"0x259813B665C8f6074391028ef782e27B65840d89",url:"https://scroll.io"},Xe={blockScan:{url:e=>`https://blockscan.com/address/${e}`},chain:"zksync",description:"zkSync is a Layer-2 protocol that scales Ethereum with cutting-edge ZK tech. Our mission is not only to merely increase Ethereum's throughput, but to fully preserve its foundational values – freedom, self-sovereignty, decentralization – at scale.",explorer:{name:"zkSync Era Block Explorer",urls:{address:e=>`https://explorer.zksync.io/address/${e}`,base:"https://explorer.zksync.io/",token:(e,s)=>`https://explorer.zksync.io/token/${e}?a=${s}`,transaction:e=>`https://explorer.zksync.io/tx/${e}`}},featured:!1,hooks:{},id:324,isTestNetwork:!1,maxFreeClaimCost:1,multisig:"0xFa5592CE9C52FA5214ccEa10cB72Faa88eC80a3c",name:"zkSync Era",nativeCurrency:{coingecko:"zksync-eth",decimals:18,name:"zkSync Ether",symbol:"ETH"},previousDeploys:[],provider:"https://rpc.unlock-protocol.com/324",publicLockVersionToDeploy:14,publicProvider:"https://mainnet.era.zksync.io",startBlock:25905168,subgraph:{endpoint:"https://api.studio.thegraph.com/query/65299/unlock-protocol-zksync/version/latest",networkName:"zksync-era"},tokens:[{address:"0x000000000000000000000000000000000000800A",decimals:18,name:"Wrapped Ether",symbol:"WETH"},{address:"0x4B9eb6c0b6ea15176BBF62841C6B2A8a398cb656",decimals:18,name:"Dai Stablecoin",symbol:"DAI"},{address:"0x493257fD37EDB34451f62EDf8D2a0C418852bA4C",decimals:6,name:"Tether USD",symbol:"USDT"},{address:"0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4",decimals:6,name:"USD Coin",symbol:"USDC"},{address:"0xBBeB516fb02a01611cBBE0453Fe3c580D7281011",decimals:8,name:"Wrapped BTC",symbol:"WBTC"}],unlockAddress:"0x32CF553582159F12fBb1Ae1649b3670395610F24",url:"https://zksync.io/"},se={};Object.keys(_).forEach(e=>{const s=_[e];se[s.id]=s});var te=se;const oe={};Object.keys(te).map(Number).forEach(e=>{const{provider:s,publicProvider:t,name:o,id:a,subgraph:r}=te[e];oe[e]={id:a,name:o,publicProvider:t,provider:s,subgraph:r}}),u.Paywall=Y,u.default=Y,u.networkConfigs=oe,u.setupUnlockProtocolVariable=re,Object.defineProperties(u,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}); | ||
//# sourceMappingURL=unlock.latest.umd.js.map |
{ | ||
"name": "@unlock-protocol/paywall", | ||
"version": "0.6.8", | ||
"version": "0.7.1", | ||
"main": "./dist/unlock.latest.umd.js", | ||
@@ -31,14 +31,14 @@ "module": "./dist/unlock.latest.es.js", | ||
"devDependencies": { | ||
"@types/postmate": "1.5.2", | ||
"@types/postmate": "1.5.4", | ||
"@unlock-protocol/eslint-config": "./packages/eslint-config", | ||
"@unlock-protocol/networks": "^0.0.16", | ||
"@unlock-protocol/tsconfig": "^0.0.1", | ||
"@unlock-protocol/types": "^0.0.7", | ||
"eslint": "8.44.0", | ||
"tsup": "7.1.0", | ||
"typescript": "5.1.6", | ||
"vite": "4.3.9", | ||
"vite-plugin-css-injected-by-js": "3.1.2", | ||
"vite-plugin-node-polyfills": "0.9.0", | ||
"vitest": "0.32.2", | ||
"@unlock-protocol/networks": "^0.0.22", | ||
"@unlock-protocol/tsconfig": "^0.0.2", | ||
"@unlock-protocol/types": "^0.0.9", | ||
"eslint": "8.46.0", | ||
"tsup": "8.0.2", | ||
"typescript": "5.3.3", | ||
"vite": "5.0.12", | ||
"vite-plugin-css-injected-by-js": "3.2.1", | ||
"vite-plugin-node-polyfills": "0.21.0", | ||
"vitest": "0.33.0", | ||
"vitest-fetch-mock": "0.2.2" | ||
@@ -45,0 +45,0 @@ }, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
441201
2750