@0xsequence/provider
Advanced tools
Comparing version 0.10.0 to 0.10.1
# @0xsequence/provider | ||
## 0.10.1 | ||
### Patch Changes | ||
- upgrade deps | ||
- Updated dependencies [undefined] | ||
- @0xsequence/abi@0.10.1 | ||
- @0xsequence/auth@0.10.1 | ||
- @0xsequence/config@0.10.1 | ||
- @0xsequence/network@0.10.1 | ||
- @0xsequence/transactions@0.10.1 | ||
- @0xsequence/utils@0.10.1 | ||
- @0xsequence/wallet@0.10.1 | ||
## 0.10.0 | ||
@@ -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 | undefined>; | ||
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 | undefined) => Promise<WalletConfig>; | ||
recoverWalletConfigFromMessage: (address: string, message: string | Uint8Array, signature: string | DecodedSignature, chainId: BigNumberish, walletContext?: WalletContext | undefined) => Promise<WalletConfig>; | ||
recoverWalletConfigFromTypedData: (address: string, typedData: TypedData, signature: string | DecodedSignature, chainId: BigNumberish, walletContext?: WalletContext | undefined) => 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 | undefined) => Promise<void>; | ||
sendAsync: (request: JsonRpcRequest, callback: JsonRpcResponseCallback, chainId?: number | undefined) => 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 | undefined) => Promise<never>; | ||
sendAsync: (request: JsonRpcRequest, callback: JsonRpcResponseCallback, chainId?: number | undefined) => 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 | undefined) => Promise<void>; | ||
sendAsync: (request: JsonRpcRequest, callback: JsonRpcResponseCallback, chainId?: number | undefined) => 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 | undefined) => Promise<void>; | ||
sendAsync: (request: JsonRpcRequest, callback: JsonRpcResponseCallback, chainId?: number | undefined) => 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 | undefined, walletContext?: any) => Promise<boolean | undefined>; | ||
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 | undefined, walletContext?: WalletContext | undefined) => Promise<boolean | undefined>; | ||
export declare const recoverWalletConfig: (address: string, digest: BytesLike, signature: string | DecodedSignature, chainId: BigNumberish, walletContext?: WalletContext | undefined) => WalletConfig; |
@@ -46,3 +46,3 @@ import { NetworkConfig, WalletContext, ChainId } from '@0xsequence/network'; | ||
getAddress: () => Promise<string>; | ||
getNetworks: (chainId?: any) => Promise<NetworkConfig[]>; | ||
getNetworks: (chainId?: ChainId | undefined) => Promise<NetworkConfig[]>; | ||
getChainId: () => Promise<number>; | ||
@@ -49,0 +49,0 @@ getAuthChainId: () => Promise<number>; |
{ | ||
"name": "@0xsequence/provider", | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"description": "provider sub-package for Sequence", | ||
@@ -16,12 +16,12 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/provider", | ||
"dependencies": { | ||
"@0xsequence/abi": "^0.10.0", | ||
"@0xsequence/auth": "^0.10.0", | ||
"@0xsequence/config": "^0.10.0", | ||
"@0xsequence/network": "^0.10.0", | ||
"@0xsequence/transactions": "^0.10.0", | ||
"@0xsequence/utils": "^0.10.0", | ||
"@0xsequence/wallet": "^0.10.0", | ||
"@ethersproject/abstract-signer": "5.0.12", | ||
"@0xsequence/abi": "^0.10.1", | ||
"@0xsequence/auth": "^0.10.1", | ||
"@0xsequence/config": "^0.10.1", | ||
"@0xsequence/network": "^0.10.1", | ||
"@0xsequence/transactions": "^0.10.1", | ||
"@0xsequence/utils": "^0.10.1", | ||
"@0xsequence/wallet": "^0.10.1", | ||
"@ethersproject/abstract-signer": "5.0.13", | ||
"@ethersproject/hash": "^5.0.11", | ||
"@ethersproject/providers": "^5.0.20", | ||
"@ethersproject/providers": "^5.0.23", | ||
"@ethersproject/web": "^5.0.13", | ||
@@ -28,0 +28,0 @@ "ethers": "^5.0.31", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
371902
47
9082
+ Added@ethersproject/abstract-signer@5.0.13(transitive)
- Removed@ethersproject/abstract-signer@5.0.12(transitive)
Updated@0xsequence/abi@^0.10.1
Updated@0xsequence/auth@^0.10.1
Updated@0xsequence/config@^0.10.1
Updated@0xsequence/network@^0.10.1
Updated@0xsequence/utils@^0.10.1
Updated@0xsequence/wallet@^0.10.1