Socket
Socket
Sign inDemoInstall

@walletconnect/types

Package Overview
Dependencies
Maintainers
1
Versions
652
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 1.0.0-beta.3 to 1.0.0-beta.4

26

index.d.ts

@@ -5,3 +5,3 @@ declare module '@walletconnect/types' {

encrypt: (
data: IJsonRpcRequest | IJsonRpcResponse,
data: IJsonRpcRequest | IJsonRpcResponseSuccess | IJsonRpcResponseError,
key: ArrayBuffer

@@ -12,3 +12,5 @@ ) => Promise<IEncryptionPayload>

key: ArrayBuffer
) => Promise<IJsonRpcRequest | IJsonRpcResponse | null>
) => Promise<
IJsonRpcRequest | IJsonRpcResponseSuccess | IJsonRpcResponseError | null
>
}

@@ -55,6 +57,10 @@

jsonrpc?: string
result: any
result?: any
error?: {
code?: number
message: string
}
}
export type IJsonRpcResponse = {
export type IJsonRpcResponseSuccess = {
id: number

@@ -65,2 +71,11 @@ jsonrpc: string

export type IJsonRpcResponseError = {
id: number
jsonrpc: string
error: {
code: number
message: string
}
}
export type IPartialRpcRequest = {

@@ -82,3 +97,3 @@ id?: number

err: Error | null,
result?: IJsonRpcResponse
result?: IJsonRpcResponseSuccess
) => void

@@ -129,3 +144,2 @@

accounts: string[] | null
message?: string | null
}

@@ -132,0 +146,0 @@

{
"name": "@walletconnect/types",
"version": "1.0.0-beta.3",
"version": "1.0.0-beta.4",
"description": "Typescript Types for WalletConnect",

@@ -5,0 +5,0 @@ "scripts": {},

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