@0xsequence/provider
Advanced tools
Comparing version 0.9.5 to 0.9.6
# @0xsequence/provider | ||
## 0.9.6 | ||
### Patch Changes | ||
- Update ABIs for latest sequence contracts | ||
- Updated dependencies [undefined] | ||
- @0xsequence/auth@0.9.6 | ||
- @0xsequence/config@0.9.6 | ||
- @0xsequence/network@0.9.6 | ||
- @0xsequence/transactions@0.9.6 | ||
- @0xsequence/utils@0.9.6 | ||
- @0xsequence/wallet@0.9.6 | ||
- @0xsequence/abi@0.9.6 | ||
## 0.9.5 | ||
@@ -4,0 +18,0 @@ |
@@ -18,5 +18,5 @@ import { BigNumberish, BytesLike } from 'ethers'; | ||
isValidTypedDataSignature(address: string, typedData: TypedData, signature: string, chainId: number, walletContext?: WalletContext): Promise<boolean>; | ||
recoverWalletConfig: (address: string, digest: BytesLike, signature: string | DecodedSignature, chainId: BigNumberish, walletContext?: any) => Promise<WalletConfig>; | ||
recoverWalletConfigFromMessage: (address: string, message: string | Uint8Array, signature: string | DecodedSignature, chainId: BigNumberish, walletContext?: any) => Promise<WalletConfig>; | ||
recoverWalletConfigFromTypedData: (address: string, typedData: TypedData, signature: string | DecodedSignature, chainId: BigNumberish, walletContext?: any) => Promise<WalletConfig>; | ||
recoverWalletConfig: (address: string, digest: BytesLike, signature: string | DecodedSignature, chainId: BigNumberish, walletContext?: WalletContext) => Promise<WalletConfig>; | ||
recoverWalletConfigFromMessage: (address: string, message: string | Uint8Array, signature: string | DecodedSignature, chainId: BigNumberish, walletContext?: WalletContext) => Promise<WalletConfig>; | ||
recoverWalletConfigFromTypedData: (address: string, typedData: TypedData, signature: string | DecodedSignature, chainId: BigNumberish, walletContext?: WalletContext) => Promise<WalletConfig>; | ||
} |
import EventEmitter from 'eventemitter3'; | ||
import { ProviderTransport, ProviderMessage, ProviderMessageRequest, ProviderMessageEvent, ProviderMessageResponse, ProviderMessageResponseCallback, WalletSession, ConnectionState } from '../types'; | ||
import { NetworkConfig, WalletContext } from '@0xsequence/network'; | ||
import { NetworkConfig, WalletContext, JsonRpcRequest, JsonRpcResponseCallback } from '@0xsequence/network'; | ||
export declare const PROVIDER_CONNECT_TIMEOUT = 8000; | ||
@@ -24,3 +24,3 @@ export declare const nextMessageIdx: () => number; | ||
isConnected(): boolean; | ||
sendAsync: (request: any, callback: any, chainId?: number) => Promise<void>; | ||
sendAsync: (request: JsonRpcRequest, callback: JsonRpcResponseCallback, chainId?: number) => Promise<void>; | ||
handleMessage(message: ProviderMessage<any>): void; | ||
@@ -27,0 +27,0 @@ sendMessageRequest: (message: ProviderMessageRequest) => Promise<ProviderMessageResponse>; |
import { WalletTransport, ProviderMessage, ProviderMessageRequest, ProviderMessageResponse } from '../types'; | ||
import { WalletRequestHandler } from './wallet-request-handler'; | ||
import { NetworkConfig, WalletContext } from '@0xsequence/network'; | ||
import { NetworkConfig, WalletContext, JsonRpcRequest, JsonRpcResponseCallback } from '@0xsequence/network'; | ||
export declare abstract class BaseWalletTransport implements WalletTransport { | ||
@@ -12,3 +12,3 @@ protected walletRequestHandler: WalletRequestHandler; | ||
unregister(): void; | ||
sendAsync: (request: any, callback: any, chainId?: number) => Promise<never>; | ||
sendAsync: (request: JsonRpcRequest, callback: JsonRpcResponseCallback, chainId?: number) => Promise<never>; | ||
handleMessage: (message: ProviderMessage<any>) => Promise<void>; | ||
@@ -15,0 +15,0 @@ sendMessageRequest: (message: ProviderMessageRequest) => Promise<ProviderMessageResponse>; |
import { ProviderMessage, ProviderTransport, ProviderMessageEvent, ProviderMessageRequest, ProviderMessageResponse, WalletSession } from '../../types'; | ||
import { JsonRpcRequest, JsonRpcResponseCallback } from '@0xsequence/network'; | ||
export declare class MuxMessageProvider implements ProviderTransport { | ||
@@ -14,3 +15,3 @@ private messageProviders; | ||
once(event: ProviderMessageEvent, fn: (...args: any[]) => void): void; | ||
sendAsync: (request: any, callback: any, chainId?: number) => Promise<void>; | ||
sendAsync: (request: JsonRpcRequest, callback: JsonRpcResponseCallback, chainId?: number) => Promise<void>; | ||
sendMessage(message: ProviderMessage<any>): void; | ||
@@ -17,0 +18,0 @@ sendMessageRequest: (message: ProviderMessageRequest) => Promise<ProviderMessageResponse>; |
import { ProviderMessageRequest, ProviderMessageResponse, WalletMessageEvent, ProviderMessageRequestHandler, MessageToSign } from '../types'; | ||
import { ExternalProvider } from '@ethersproject/providers'; | ||
import { Networks, NetworkConfig, JsonRpcHandler } from '@0xsequence/network'; | ||
import { Networks, NetworkConfig, JsonRpcHandler, JsonRpcRequest, JsonRpcResponseCallback } from '@0xsequence/network'; | ||
import { Signer } from '@0xsequence/wallet'; | ||
@@ -16,3 +16,3 @@ import { TransactionRequest } from '@0xsequence/transactions'; | ||
sendMessageRequest(message: ProviderMessageRequest): Promise<ProviderMessageResponse>; | ||
sendAsync: (request: any, callback: any, chainId?: number) => Promise<void>; | ||
sendAsync: (request: JsonRpcRequest, callback: JsonRpcResponseCallback, chainId?: number) => Promise<void>; | ||
on: (event: WalletMessageEvent, fn: (...args: any[]) => void) => void; | ||
@@ -19,0 +19,0 @@ once: (event: WalletMessageEvent, fn: (...args: any[]) => void) => void; |
import { BigNumberish, BytesLike } from 'ethers'; | ||
import { WalletContext } from '@0xsequence/network'; | ||
import { WalletConfig } from '@0xsequence/config'; | ||
import { Web3Provider } from './provider'; | ||
import { DecodedSignature } from '@0xsequence/wallet'; | ||
export declare const isValidSignature: (address: string, digest: Uint8Array, sig: string, provider: Web3Provider, chainId?: number, walletContext?: any) => Promise<boolean>; | ||
export declare const recoverWalletConfig: (address: string, digest: BytesLike, signature: string | DecodedSignature, chainId: BigNumberish, walletContext?: any) => WalletConfig; | ||
export declare const isValidSignature: (address: string, digest: Uint8Array, sig: string, provider: Web3Provider, chainId?: number, walletContext?: WalletContext) => Promise<boolean>; | ||
export declare const recoverWalletConfig: (address: string, digest: BytesLike, signature: string | DecodedSignature, chainId: BigNumberish, walletContext?: WalletContext) => WalletConfig; |
@@ -46,3 +46,3 @@ import { NetworkConfig, WalletContext, ChainId } from '@0xsequence/network'; | ||
getAddress: () => Promise<string>; | ||
getNetworks: (chainId?: any) => Promise<NetworkConfig[]>; | ||
getNetworks: (chainId?: ChainId) => Promise<NetworkConfig[]>; | ||
getChainId: () => Promise<number>; | ||
@@ -49,0 +49,0 @@ getAuthChainId: () => Promise<number>; |
{ | ||
"name": "@0xsequence/provider", | ||
"version": "0.9.5", | ||
"version": "0.9.6", | ||
"description": "provider sub-package for Sequence", | ||
@@ -16,9 +16,9 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/provider", | ||
"dependencies": { | ||
"@0xsequence/abi": "^0.9.3", | ||
"@0xsequence/auth": "^0.9.5", | ||
"@0xsequence/config": "^0.9.5", | ||
"@0xsequence/network": "^0.9.5", | ||
"@0xsequence/transactions": "^0.9.5", | ||
"@0xsequence/utils": "^0.9.5", | ||
"@0xsequence/wallet": "^0.9.5", | ||
"@0xsequence/abi": "^0.9.6", | ||
"@0xsequence/auth": "^0.9.6", | ||
"@0xsequence/config": "^0.9.6", | ||
"@0xsequence/network": "^0.9.6", | ||
"@0xsequence/transactions": "^0.9.6", | ||
"@0xsequence/utils": "^0.9.6", | ||
"@0xsequence/wallet": "^0.9.6", | ||
"@ethersproject/abstract-signer": "5.0.12", | ||
@@ -25,0 +25,0 @@ "@ethersproject/hash": "^5.0.11", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
367355
9018
0
Updated@0xsequence/abi@^0.9.6
Updated@0xsequence/auth@^0.9.6
Updated@0xsequence/config@^0.9.6
Updated@0xsequence/network@^0.9.6
Updated@0xsequence/utils@^0.9.6
Updated@0xsequence/wallet@^0.9.6