Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@0xsequence/provider

Package Overview
Dependencies
Maintainers
4
Versions
516
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0xsequence/provider - npm Package Compare versions

Comparing version 0.13.0 to 0.14.0

17

CHANGELOG.md
# @0xsequence/provider
## 0.14.0
### Minor Changes
- update sequence utils finder which includes optimization
### Patch Changes
- Updated dependencies [undefined]
- @0xsequence/abi@0.14.0
- @0xsequence/auth@0.14.0
- @0xsequence/config@0.14.0
- @0xsequence/network@0.14.0
- @0xsequence/transactions@0.14.0
- @0xsequence/utils@0.14.0
- @0xsequence/wallet@0.14.0
## 0.13.0

@@ -4,0 +21,0 @@

6

dist/declarations/src/commands/index.d.ts

@@ -17,5 +17,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, OpenState, OpenWalletIntent } from '../types';
import { NetworkConfig, WalletContext } from '@0xsequence/network';
import { NetworkConfig, WalletContext, JsonRpcRequest, JsonRpcResponseCallback } from '@0xsequence/network';
export declare const PROVIDER_OPEN_TIMEOUT = 30000;

@@ -25,3 +25,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;

@@ -28,0 +28,0 @@ sendMessageRequest: (message: ProviderMessageRequest) => Promise<ProviderMessageResponse>;

import { WalletTransport, ProviderMessage, ProviderMessageRequest, ProviderMessageResponse, ProviderConnectInfo, ProviderRpcError, InitState } 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 {

@@ -13,3 +13,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>;

@@ -16,0 +16,0 @@ sendMessageRequest: (message: ProviderMessageRequest) => Promise<ProviderMessageResponse>;

import { ProviderMessage, ProviderTransport, ProviderMessageEvent, ProviderMessageRequest, ProviderMessageResponse, WalletSession, OpenWalletIntent } from '../../types';
import { JsonRpcRequest, JsonRpcResponseCallback } from '@0xsequence/network';
export declare class MuxMessageProvider implements ProviderTransport {

@@ -15,3 +16,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;

@@ -18,0 +19,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';

@@ -17,3 +17,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;

@@ -20,0 +20,0 @@ once: (event: WalletMessageEvent, fn: (...args: any[]) => void) => void;

import { BigNumberish, BytesLike } from 'ethers';
import { WalletContext } from '@0xsequence/network';
import { WalletConfig, DecodedSignature } from '@0xsequence/config';
import { Web3Provider } from './provider';
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) => Promise<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) => Promise<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.13.0",
"version": "0.14.0",
"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.13.0",
"@0xsequence/auth": "^0.13.0",
"@0xsequence/config": "^0.13.0",
"@0xsequence/network": "^0.13.0",
"@0xsequence/transactions": "^0.13.0",
"@0xsequence/utils": "^0.13.0",
"@0xsequence/wallet": "^0.13.0",
"@0xsequence/abi": "^0.14.0",
"@0xsequence/auth": "^0.14.0",
"@0xsequence/config": "^0.14.0",
"@0xsequence/network": "^0.14.0",
"@0xsequence/transactions": "^0.14.0",
"@0xsequence/utils": "^0.14.0",
"@0xsequence/wallet": "^0.14.0",
"@ethersproject/abstract-signer": "5.0.14",

@@ -25,0 +25,0 @@ "@ethersproject/hash": "^5.0.12",

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