@walletconnect/types
Advanced tools
Comparing version 2.15.1-canary.0 to 2.15.1-canary-a3089b5
@@ -116,2 +116,10 @@ 'use strict'; | ||
class IEventClient { | ||
constructor(core, logger, telemetryEnabled) { | ||
this.core = core; | ||
this.logger = logger; | ||
this.telemetryEnabled = telemetryEnabled; | ||
} | ||
} | ||
class ISignClientEvents extends EventEmmiter__default["default"] { | ||
@@ -146,2 +154,3 @@ constructor() { | ||
exports.IEngineEvents = IEngineEvents; | ||
exports.IEventClient = IEventClient; | ||
exports.IExpirer = IExpirer; | ||
@@ -148,0 +157,0 @@ exports.IJsonRpcHistory = IJsonRpcHistory; |
@@ -108,2 +108,10 @@ import { IEvents } from '@walletconnect/events'; | ||
class IEventClient { | ||
constructor(core, logger, telemetryEnabled) { | ||
this.core = core; | ||
this.logger = logger; | ||
this.telemetryEnabled = telemetryEnabled; | ||
} | ||
} | ||
class ISignClientEvents extends EventEmmiter { | ||
@@ -133,3 +141,3 @@ constructor() { | ||
export { ICore, ICrypto, IEchoClient, IEngine, IEngineEvents, IExpirer, IJsonRpcHistory, IKeyChain, IMessageTracker, IPairing, IPublisher, IRelayer, ISignClient, ISignClientEvents, IStore, ISubscriber, ISubscriberTopicMap, IVerify }; | ||
export { ICore, ICrypto, IEchoClient, IEngine, IEngineEvents, IEventClient, IExpirer, IJsonRpcHistory, IKeyChain, IMessageTracker, IPairing, IPublisher, IRelayer, ISignClient, ISignClientEvents, IStore, ISubscriber, ISubscriberTopicMap, IVerify }; | ||
//# sourceMappingURL=index.es.js.map |
@@ -114,2 +114,10 @@ (function (global, factory) { | ||
class IEventClient { | ||
constructor(core, logger, telemetryEnabled) { | ||
this.core = core; | ||
this.logger = logger; | ||
this.telemetryEnabled = telemetryEnabled; | ||
} | ||
} | ||
var events = {exports: {}}; | ||
@@ -620,2 +628,3 @@ | ||
exports.IEngineEvents = IEngineEvents; | ||
exports.IEventClient = IEventClient; | ||
exports.IExpirer = IExpirer; | ||
@@ -622,0 +631,0 @@ exports.IJsonRpcHistory = IJsonRpcHistory; |
@@ -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 |
@@ -27,2 +27,3 @@ import { Logger } from "@walletconnect/logger"; | ||
hash?: string; | ||
encryptedId?: string; | ||
verifyUrl?: string; | ||
@@ -29,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-canary.0", | ||
"version": "2.15.1-canary-a3089b5", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
326798
58
2140