@walletconnect/types
Advanced tools
Comparing version 1.0.0-beta.3 to 1.0.0-beta.4
@@ -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": {}, |
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
4661
156