Socket
Socket
Sign inDemoInstall

@walletconnect/types

Package Overview
Dependencies
Maintainers
12
Versions
639
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@walletconnect/types - npm Package Compare versions

Comparing version 2.15.1 to 2.15.2-rc-871a1d7685

dist/types/core/events.d.ts

2

dist/index.cjs.js

@@ -1,2 +0,2 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("@walletconnect/events"),c=require("events");function i(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var n=i(c);class l extends r.IEvents{constructor(s){super(),this.opts=s,this.protocol="wc",this.version=2}}class a{constructor(s,e,o){this.core=s,this.logger=e}}class u extends r.IEvents{constructor(s,e){super(),this.core=s,this.logger=e,this.records=new Map}}class I{constructor(s,e){this.logger=s,this.core=e}}class h extends r.IEvents{constructor(s,e){super(),this.relayer=s,this.logger=e}}class g extends r.IEvents{constructor(s){super()}}class p{constructor(s,e,o,_){this.core=s,this.logger=e,this.name=o}}class E{constructor(){this.map=new Map}}class v extends r.IEvents{constructor(s,e){super(),this.relayer=s,this.logger=e}}class d{constructor(s,e){this.core=s,this.logger=e}}class y extends r.IEvents{constructor(s,e){super(),this.core=s,this.logger=e}}class b{constructor(s,e){this.logger=s,this.core=e}}class C{constructor(s,e){this.projectId=s,this.logger=e}}class f{constructor(s,e){this.projectId=s,this.logger=e}}class x extends n.default{constructor(){super()}}class S{constructor(s){this.opts=s,this.protocol="wc",this.version=2}}class M extends c.EventEmitter{constructor(){super()}}class P{constructor(s){this.client=s}}exports.ICore=l,exports.ICrypto=a,exports.IEchoClient=f,exports.IEngine=P,exports.IEngineEvents=M,exports.IExpirer=y,exports.IJsonRpcHistory=u,exports.IKeyChain=d,exports.IMessageTracker=I,exports.IPairing=b,exports.IPublisher=h,exports.IRelayer=g,exports.ISignClient=S,exports.ISignClientEvents=x,exports.IStore=p,exports.ISubscriber=v,exports.ISubscriberTopicMap=E,exports.IVerify=C;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var o=require("@walletconnect/events"),c=require("events");function i(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var n=i(c);class l extends o.IEvents{constructor(s){super(),this.opts=s,this.protocol="wc",this.version=2}}class a{constructor(s,e,r){this.core=s,this.logger=e}}class u extends o.IEvents{constructor(s,e){super(),this.core=s,this.logger=e,this.records=new Map}}class I{constructor(s,e){this.logger=s,this.core=e}}class h extends o.IEvents{constructor(s,e){super(),this.relayer=s,this.logger=e}}class g extends o.IEvents{constructor(s){super()}}class p{constructor(s,e,r,m){this.core=s,this.logger=e,this.name=r}}class E{constructor(){this.map=new Map}}class v extends o.IEvents{constructor(s,e){super(),this.relayer=s,this.logger=e}}class d{constructor(s,e){this.core=s,this.logger=e}}class y extends o.IEvents{constructor(s,e){super(),this.core=s,this.logger=e}}class C{constructor(s,e){this.logger=s,this.core=e}}class b{constructor(s,e,r){this.core=s,this.logger=e,this.store=r}}class f{constructor(s,e){this.projectId=s,this.logger=e}}class x{constructor(s,e,r){this.core=s,this.logger=e,this.telemetryEnabled=r}}class S extends n.default{constructor(){super()}}class M{constructor(s){this.opts=s,this.protocol="wc",this.version=2}}class P extends c.EventEmitter{constructor(){super()}}class _{constructor(s){this.client=s}}exports.ICore=l,exports.ICrypto=a,exports.IEchoClient=f,exports.IEngine=_,exports.IEngineEvents=P,exports.IEventClient=x,exports.IExpirer=y,exports.IJsonRpcHistory=u,exports.IKeyChain=d,exports.IMessageTracker=I,exports.IPairing=C,exports.IPublisher=h,exports.IRelayer=g,exports.ISignClient=M,exports.ISignClientEvents=S,exports.IStore=p,exports.ISubscriber=v,exports.ISubscriberTopicMap=E,exports.IVerify=b;
//# sourceMappingURL=index.cjs.js.map

@@ -1,2 +0,2 @@

import{IEvents as e}from"@walletconnect/events";import c,{EventEmitter as i}from"events";class n extends e{constructor(s){super(),this.opts=s,this.protocol="wc",this.version=2}}class l{constructor(s,t,o){this.core=s,this.logger=t}}class h extends e{constructor(s,t){super(),this.core=s,this.logger=t,this.records=new Map}}class a{constructor(s,t){this.logger=s,this.core=t}}class u extends e{constructor(s,t){super(),this.relayer=s,this.logger=t}}class g extends e{constructor(s){super()}}class p{constructor(s,t,o,M){this.core=s,this.logger=t,this.name=o}}class I{constructor(){this.map=new Map}}class d extends e{constructor(s,t){super(),this.relayer=s,this.logger=t}}class x{constructor(s,t){this.core=s,this.logger=t}}class E extends e{constructor(s,t){super(),this.core=s,this.logger=t}}class m{constructor(s,t){this.logger=s,this.core=t}}class y{constructor(s,t){this.projectId=s,this.logger=t}}class v{constructor(s,t){this.projectId=s,this.logger=t}}class C extends c{constructor(){super()}}class b{constructor(s){this.opts=s,this.protocol="wc",this.version=2}}class S extends i{constructor(){super()}}class w{constructor(s){this.client=s}}export{n as ICore,l as ICrypto,v as IEchoClient,w as IEngine,S as IEngineEvents,E as IExpirer,h as IJsonRpcHistory,x as IKeyChain,a as IMessageTracker,m as IPairing,u as IPublisher,g as IRelayer,b as ISignClient,C as ISignClientEvents,p as IStore,d as ISubscriber,I as ISubscriberTopicMap,y as IVerify};
import{IEvents as o}from"@walletconnect/events";import c,{EventEmitter as i}from"events";class n extends o{constructor(s){super(),this.opts=s,this.protocol="wc",this.version=2}}class l{constructor(s,t,e){this.core=s,this.logger=t}}class h extends o{constructor(s,t){super(),this.core=s,this.logger=t,this.records=new Map}}class a{constructor(s,t){this.logger=s,this.core=t}}class g extends o{constructor(s,t){super(),this.relayer=s,this.logger=t}}class u extends o{constructor(s){super()}}class p{constructor(s,t,e,f){this.core=s,this.logger=t,this.name=e}}class I{constructor(){this.map=new Map}}class d extends o{constructor(s,t){super(),this.relayer=s,this.logger=t}}class E{constructor(s,t){this.core=s,this.logger=t}}class x extends o{constructor(s,t){super(),this.core=s,this.logger=t}}class m{constructor(s,t){this.logger=s,this.core=t}}class y{constructor(s,t,e){this.core=s,this.logger=t,this.store=e}}class v{constructor(s,t){this.projectId=s,this.logger=t}}class C{constructor(s,t,e){this.core=s,this.logger=t,this.telemetryEnabled=e}}class b extends c{constructor(){super()}}class S{constructor(s){this.opts=s,this.protocol="wc",this.version=2}}class w extends i{constructor(){super()}}class M{constructor(s){this.client=s}}export{n as ICore,l as ICrypto,v as IEchoClient,M as IEngine,w as IEngineEvents,C as IEventClient,x as IExpirer,h as IJsonRpcHistory,E as IKeyChain,a as IMessageTracker,m as IPairing,g as IPublisher,u as IRelayer,S as ISignClient,b as ISignClientEvents,p as IStore,d as ISubscriber,I as ISubscriberTopicMap,y as IVerify};
//# sourceMappingURL=index.es.js.map

@@ -1,2 +0,2 @@

(function(c,a){typeof exports=="object"&&typeof module<"u"?a(exports):typeof define=="function"&&define.amd?define(["exports"],a):(c=typeof globalThis<"u"?globalThis:c||self,a(c["@walletconnect/types"]={}))})(this,function(c){"use strict";class a{}class j extends a{constructor(e){super(),this.opts=e,this.protocol="wc",this.version=2}}class M{constructor(e,n,r){this.core=e,this.logger=n}}class R extends a{constructor(e,n){super(),this.core=e,this.logger=n,this.records=new Map}}class x{constructor(e,n){this.logger=e,this.core=n}}class P extends a{constructor(e,n){super(),this.relayer=e,this.logger=n}}class N extends a{constructor(e){super()}}class S{constructor(e,n,r,s){this.core=e,this.logger=n,this.name=r}}class T{constructor(){this.map=new Map}}class A extends a{constructor(e,n){super(),this.relayer=e,this.logger=n}}class K{constructor(e,n){this.core=e,this.logger=n}}class F extends a{constructor(e,n){super(),this.core=e,this.logger=n}}class W{constructor(e,n){this.logger=e,this.core=n}}class k{constructor(e,n){this.projectId=e,this.logger=n}}class H{constructor(e,n){this.projectId=e,this.logger=n}}var p={exports:{}},l=typeof Reflect=="object"?Reflect:null,g=l&&typeof l.apply=="function"?l.apply:function(e,n,r){return Function.prototype.apply.call(e,n,r)},v;l&&typeof l.ownKeys=="function"?v=l.ownKeys:Object.getOwnPropertySymbols?v=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:v=function(e){return Object.getOwnPropertyNames(e)};function J(t){console&&console.warn&&console.warn(t)}var y=Number.isNaN||function(e){return e!==e};function o(){o.init.call(this)}p.exports=o,p.exports.once=z,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var m=10;function d(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return m},set:function(t){if(typeof t!="number"||t<0||y(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");m=t}}),o.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},o.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||y(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function L(t){return t._maxListeners===void 0?o.defaultMaxListeners:t._maxListeners}o.prototype.getMaxListeners=function(){return L(this)},o.prototype.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);var s=e==="error",u=this._events;if(u!==void 0)s=s&&u.error===void 0;else if(!s)return!1;if(s){var i;if(n.length>0&&(i=n[0]),i instanceof Error)throw i;var f=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw f.context=i,f}var h=u[e];if(h===void 0)return!1;if(typeof h=="function")g(h,this,n);else for(var O=h.length,Y=w(h,O),r=0;r<O;++r)g(Y[r],this,n);return!0};function I(t,e,n,r){var s,u,i;if(d(n),u=t._events,u===void 0?(u=t._events=Object.create(null),t._eventsCount=0):(u.newListener!==void 0&&(t.emit("newListener",e,n.listener?n.listener:n),u=t._events),i=u[e]),i===void 0)i=u[e]=n,++t._eventsCount;else if(typeof i=="function"?i=u[e]=r?[n,i]:[i,n]:r?i.unshift(n):i.push(n),s=L(t),s>0&&i.length>s&&!i.warned){i.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=t,f.type=e,f.count=i.length,J(f)}return t}o.prototype.addListener=function(e,n){return I(this,e,n,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,n){return I(this,e,n,!0)};function U(){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 b(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},s=U.bind(r);return s.listener=n,r.wrapFn=s,s}o.prototype.once=function(e,n){return d(n),this.on(e,b(this,e,n)),this},o.prototype.prependOnceListener=function(e,n){return d(n),this.prependListener(e,b(this,e,n)),this},o.prototype.removeListener=function(e,n){var r,s,u,i,f;if(d(n),s=this._events,s===void 0)return this;if(r=s[e],r===void 0)return this;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete s[e],s.removeListener&&this.emit("removeListener",e,r.listener||n));else if(typeof r!="function"){for(u=-1,i=r.length-1;i>=0;i--)if(r[i]===n||r[i].listener===n){f=r[i].listener,u=i;break}if(u<0)return this;u===0?r.shift():V(r,u),r.length===1&&(s[e]=r[0]),s.removeListener!==void 0&&this.emit("removeListener",e,f||n)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var n,r,s;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[e]),this;if(arguments.length===0){var u=Object.keys(r),i;for(s=0;s<u.length;++s)i=u[s],i!=="removeListener"&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(n=r[e],typeof n=="function")this.removeListener(e,n);else if(n!==void 0)for(s=n.length-1;s>=0;s--)this.removeListener(e,n[s]);return this};function E(t,e,n){var r=t._events;if(r===void 0)return[];var s=r[e];return s===void 0?[]:typeof s=="function"?n?[s.listener||s]:[s]:n?q(s):w(s,s.length)}o.prototype.listeners=function(e){return E(this,e,!0)},o.prototype.rawListeners=function(e){return E(this,e,!1)},o.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):_.call(t,e)},o.prototype.listenerCount=_;function _(t){var e=this._events;if(e!==void 0){var n=e[t];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}o.prototype.eventNames=function(){return this._eventsCount>0?v(this._events):[]};function w(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function V(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function q(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}function z(t,e){return new Promise(function(n,r){function s(i){t.removeListener(e,u),r(i)}function u(){typeof t.removeListener=="function"&&t.removeListener("error",s),n([].slice.call(arguments))}C(t,e,u,{once:!0}),e!=="error"&&B(t,s,{once:!0})})}function B(t,e,n){typeof t.on=="function"&&C(t,"error",e,n)}function C(t,e,n,r){if(typeof t.on=="function")r.once?t.once(e,n):t.on(e,n);else if(typeof t.addEventListener=="function")t.addEventListener(e,function s(u){r.once&&t.removeEventListener(e,s),n(u)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}class D extends p.exports{constructor(){super()}}class G{constructor(e){this.opts=e,this.protocol="wc",this.version=2}}class Q extends p.exports.EventEmitter{constructor(){super()}}class X{constructor(e){this.client=e}}c.ICore=j,c.ICrypto=M,c.IEchoClient=H,c.IEngine=X,c.IEngineEvents=Q,c.IExpirer=F,c.IJsonRpcHistory=R,c.IKeyChain=K,c.IMessageTracker=x,c.IPairing=W,c.IPublisher=P,c.IRelayer=N,c.ISignClient=G,c.ISignClientEvents=D,c.IStore=S,c.ISubscriber=A,c.ISubscriberTopicMap=T,c.IVerify=k,Object.defineProperty(c,"__esModule",{value:!0})});
(function(c,l){typeof exports=="object"&&typeof module<"u"?l(exports):typeof define=="function"&&define.amd?define(["exports"],l):(c=typeof globalThis<"u"?globalThis:c||self,l(c["@walletconnect/types"]={}))})(this,function(c){"use strict";class l{}class M extends l{constructor(e){super(),this.opts=e,this.protocol="wc",this.version=2}}class R{constructor(e,n,r){this.core=e,this.logger=n}}class j extends l{constructor(e,n){super(),this.core=e,this.logger=n,this.records=new Map}}class x{constructor(e,n){this.logger=e,this.core=n}}class P extends l{constructor(e,n){super(),this.relayer=e,this.logger=n}}class N extends l{constructor(e){super()}}class S{constructor(e,n,r,s){this.core=e,this.logger=n,this.name=r}}class T{constructor(){this.map=new Map}}class A extends l{constructor(e,n){super(),this.relayer=e,this.logger=n}}class K{constructor(e,n){this.core=e,this.logger=n}}class F extends l{constructor(e,n){super(),this.core=e,this.logger=n}}class W{constructor(e,n){this.logger=e,this.core=n}}class k{constructor(e,n,r){this.core=e,this.logger=n,this.store=r}}class H{constructor(e,n){this.projectId=e,this.logger=n}}class J{constructor(e,n,r){this.core=e,this.logger=n,this.telemetryEnabled=r}}var v={exports:{}},a=typeof Reflect=="object"?Reflect:null,g=a&&typeof a.apply=="function"?a.apply:function(e,n,r){return Function.prototype.apply.call(e,n,r)},p;a&&typeof a.ownKeys=="function"?p=a.ownKeys:Object.getOwnPropertySymbols?p=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:p=function(e){return Object.getOwnPropertyNames(e)};function U(t){console&&console.warn&&console.warn(t)}var y=Number.isNaN||function(e){return e!==e};function o(){o.init.call(this)}v.exports=o,v.exports.once=B,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var m=10;function d(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return m},set:function(t){if(typeof t!="number"||t<0||y(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");m=t}}),o.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},o.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||y(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function L(t){return t._maxListeners===void 0?o.defaultMaxListeners:t._maxListeners}o.prototype.getMaxListeners=function(){return L(this)},o.prototype.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);var s=e==="error",u=this._events;if(u!==void 0)s=s&&u.error===void 0;else if(!s)return!1;if(s){var i;if(n.length>0&&(i=n[0]),i instanceof Error)throw i;var f=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw f.context=i,f}var h=u[e];if(h===void 0)return!1;if(typeof h=="function")g(h,this,n);else for(var O=h.length,Z=w(h,O),r=0;r<O;++r)g(Z[r],this,n);return!0};function I(t,e,n,r){var s,u,i;if(d(n),u=t._events,u===void 0?(u=t._events=Object.create(null),t._eventsCount=0):(u.newListener!==void 0&&(t.emit("newListener",e,n.listener?n.listener:n),u=t._events),i=u[e]),i===void 0)i=u[e]=n,++t._eventsCount;else if(typeof i=="function"?i=u[e]=r?[n,i]:[i,n]:r?i.unshift(n):i.push(n),s=L(t),s>0&&i.length>s&&!i.warned){i.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=t,f.type=e,f.count=i.length,U(f)}return t}o.prototype.addListener=function(e,n){return I(this,e,n,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,n){return I(this,e,n,!0)};function V(){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 b(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},s=V.bind(r);return s.listener=n,r.wrapFn=s,s}o.prototype.once=function(e,n){return d(n),this.on(e,b(this,e,n)),this},o.prototype.prependOnceListener=function(e,n){return d(n),this.prependListener(e,b(this,e,n)),this},o.prototype.removeListener=function(e,n){var r,s,u,i,f;if(d(n),s=this._events,s===void 0)return this;if(r=s[e],r===void 0)return this;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete s[e],s.removeListener&&this.emit("removeListener",e,r.listener||n));else if(typeof r!="function"){for(u=-1,i=r.length-1;i>=0;i--)if(r[i]===n||r[i].listener===n){f=r[i].listener,u=i;break}if(u<0)return this;u===0?r.shift():q(r,u),r.length===1&&(s[e]=r[0]),s.removeListener!==void 0&&this.emit("removeListener",e,f||n)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var n,r,s;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[e]),this;if(arguments.length===0){var u=Object.keys(r),i;for(s=0;s<u.length;++s)i=u[s],i!=="removeListener"&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(n=r[e],typeof n=="function")this.removeListener(e,n);else if(n!==void 0)for(s=n.length-1;s>=0;s--)this.removeListener(e,n[s]);return this};function E(t,e,n){var r=t._events;if(r===void 0)return[];var s=r[e];return s===void 0?[]:typeof s=="function"?n?[s.listener||s]:[s]:n?z(s):w(s,s.length)}o.prototype.listeners=function(e){return E(this,e,!0)},o.prototype.rawListeners=function(e){return E(this,e,!1)},o.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):_.call(t,e)},o.prototype.listenerCount=_;function _(t){var e=this._events;if(e!==void 0){var n=e[t];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}o.prototype.eventNames=function(){return this._eventsCount>0?p(this._events):[]};function w(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function q(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function z(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}function B(t,e){return new Promise(function(n,r){function s(i){t.removeListener(e,u),r(i)}function u(){typeof t.removeListener=="function"&&t.removeListener("error",s),n([].slice.call(arguments))}C(t,e,u,{once:!0}),e!=="error"&&D(t,s,{once:!0})})}function D(t,e,n){typeof t.on=="function"&&C(t,"error",e,n)}function C(t,e,n,r){if(typeof t.on=="function")r.once?t.once(e,n):t.on(e,n);else if(typeof t.addEventListener=="function")t.addEventListener(e,function s(u){r.once&&t.removeEventListener(e,s),n(u)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}class G extends v.exports{constructor(){super()}}class Q{constructor(e){this.opts=e,this.protocol="wc",this.version=2}}class X extends v.exports.EventEmitter{constructor(){super()}}class Y{constructor(e){this.client=e}}c.ICore=M,c.ICrypto=R,c.IEchoClient=H,c.IEngine=Y,c.IEngineEvents=X,c.IEventClient=J,c.IExpirer=F,c.IJsonRpcHistory=j,c.IKeyChain=K,c.IMessageTracker=x,c.IPairing=W,c.IPublisher=P,c.IRelayer=N,c.ISignClient=Q,c.ISignClientEvents=G,c.IStore=S,c.ISubscriber=A,c.ISubscriberTopicMap=T,c.IVerify=k,Object.defineProperty(c,"__esModule",{value:!0})});
//# sourceMappingURL=index.umd.js.map

@@ -13,2 +13,3 @@ import { IEvents } from "@walletconnect/events";

import { IEchoClient } from "./echo";
import { IEventClient } from "./events";
export declare namespace CoreTypes {

@@ -25,2 +26,3 @@ interface Options {

customStoragePrefix?: string;
telemetryEnabled?: boolean;
}

@@ -58,2 +60,3 @@ interface Metadata {

abstract echoClient: IEchoClient;
abstract eventClient: IEventClient;
constructor(opts?: CoreTypes.Options | undefined);

@@ -60,0 +63,0 @@ abstract start(): Promise<void>;

@@ -14,2 +14,3 @@ export * from "./core";

export * from "./echo";
export * from "./events";
//# sourceMappingURL=index.d.ts.map
import { Logger } from "@walletconnect/logger";
import { IKeyValueStorage } from "@walletconnect/keyvaluestorage";
import { ICore } from "./core";
export declare namespace Verify {

@@ -13,14 +15,15 @@ interface Context {

export declare abstract class IVerify {
projectId: string;
core: ICore;
logger: Logger;
store: IKeyValueStorage;
abstract readonly context: string;
constructor(projectId: string, logger: Logger);
abstract init(params?: {
verifyUrl?: string;
}): Promise<void>;
constructor(core: ICore, logger: Logger, store: IKeyValueStorage);
abstract register(params: {
attestationId: string;
}): Promise<void>;
id: string;
decryptedId: string;
}): Promise<string | undefined>;
abstract resolve(params: {
attestationId: string;
attestationId?: string;
hash?: string;
encryptedId?: string;
verifyUrl?: string;

@@ -27,0 +30,0 @@ }): Promise<{

@@ -53,2 +53,3 @@ /// <reference types="node" />

attestation?: string;
encryptedId?: string;
}

@@ -195,3 +196,8 @@ interface ConnectParams {

cleanup(): Promise<void>;
onSessionProposeRequest(topic: string, payload: JsonRpcRequest<JsonRpcTypes.RequestParams["wc_sessionPropose"]>, attestation?: string): Promise<void>;
onSessionProposeRequest(params: {
topic: string;
payload: JsonRpcRequest<JsonRpcTypes.RequestParams["wc_sessionPropose"]>;
attestation?: string;
encryptedId?: string;
}): Promise<void>;
onSessionProposeResponse(topic: string, payload: JsonRpcResult<JsonRpcTypes.Results["wc_sessionPropose"]> | JsonRpcError): Promise<void>;

@@ -207,6 +213,16 @@ onSessionSettleRequest(topic: string, payload: JsonRpcRequest<JsonRpcTypes.RequestParams["wc_sessionSettle"]>): Promise<void>;

onSessionDeleteRequest(topic: string, payload: JsonRpcRequest<JsonRpcTypes.RequestParams["wc_sessionDelete"]>): Promise<void>;
onSessionRequest(topic: string, payload: JsonRpcRequest<JsonRpcTypes.RequestParams["wc_sessionRequest"]>, attestation?: string): Promise<void>;
onSessionRequest(params: {
topic: string;
payload: JsonRpcRequest<JsonRpcTypes.RequestParams["wc_sessionRequest"]>;
attestation?: string;
encryptedId?: string;
}): Promise<void>;
onSessionRequestResponse(topic: string, payload: JsonRpcResult<JsonRpcTypes.Results["wc_sessionRequest"]> | JsonRpcError): void;
onSessionEventRequest(topic: string, payload: JsonRpcRequest<JsonRpcTypes.RequestParams["wc_sessionEvent"]>): Promise<void>;
onSessionAuthenticateRequest(topic: string, payload: JsonRpcRequest<JsonRpcTypes.RequestParams["wc_sessionAuthenticate"]>, attestation?: string): Promise<void>;
onSessionAuthenticateRequest(params: {
topic: string;
payload: JsonRpcRequest<JsonRpcTypes.RequestParams["wc_sessionAuthenticate"]>;
attestation?: string;
encryptedId?: string;
}): Promise<void>;
onSessionAuthenticateResponse(topic: string, payload: JsonRpcResult<JsonRpcTypes.Results["wc_sessionAuthenticate"]> | JsonRpcError): void;

@@ -213,0 +229,0 @@ isValidConnect(params: EngineTypes.ConnectParams): Promise<void>;

{
"name": "@walletconnect/types",
"description": "Typings for WalletConnect Protocol",
"version": "2.15.1",
"version": "2.15.2-rc-871a1d7685",
"author": "WalletConnect, Inc. <walletconnect.com>",

@@ -6,0 +6,0 @@ "homepage": "https://github.com/walletconnect/walletconnect-monorepo/",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc