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
520
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.11.0 to 0.11.1

14

CHANGELOG.md
# @0xsequence/provider
## 0.11.1
### Patch Changes
- Add support for dynamic and nested signatures
- Updated dependencies [undefined]
- @0xsequence/abi@0.11.1
- @0xsequence/auth@0.11.1
- @0xsequence/config@0.11.1
- @0xsequence/network@0.11.1
- @0xsequence/transactions@0.11.1
- @0xsequence/utils@0.11.1
- @0xsequence/wallet@0.11.1
## 0.11.0

@@ -4,0 +18,0 @@

3

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

@@ -5,4 +5,3 @@ import { BigNumberish, BytesLike } from 'ethers';

import { TypedData } from '@0xsequence/utils';
import { DecodedSignature } from '@0xsequence/wallet';
import { WalletConfig } from '@0xsequence/config';
import { DecodedSignature, WalletConfig } from '@0xsequence/config';
import { Wallet } from '../wallet';

@@ -9,0 +8,0 @@ export declare class WalletCommands {

import { BigNumberish, BytesLike } from 'ethers';
import { WalletContext } from '@0xsequence/network';
import { WalletConfig } from '@0xsequence/config';
import { WalletConfig, DecodedSignature } 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?: WalletContext | undefined) => Promise<boolean | undefined>;
export declare const recoverWalletConfig: (address: string, digest: BytesLike, signature: string | DecodedSignature, chainId: BigNumberish, walletContext?: WalletContext | undefined) => WalletConfig;
export declare const recoverWalletConfig: (address: string, digest: BytesLike, signature: string | DecodedSignature, chainId: BigNumberish, walletContext?: WalletContext | undefined) => Promise<WalletConfig>;
{
"name": "@0xsequence/provider",
"version": "0.11.0",
"version": "0.11.1",
"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.11.0",
"@0xsequence/auth": "^0.11.0",
"@0xsequence/config": "^0.11.0",
"@0xsequence/network": "^0.11.0",
"@0xsequence/transactions": "^0.11.0",
"@0xsequence/utils": "^0.11.0",
"@0xsequence/wallet": "^0.11.0",
"@0xsequence/abi": "^0.11.1",
"@0xsequence/auth": "^0.11.1",
"@0xsequence/config": "^0.11.1",
"@0xsequence/network": "^0.11.1",
"@0xsequence/transactions": "^0.11.1",
"@0xsequence/utils": "^0.11.1",
"@0xsequence/wallet": "^0.11.1",
"@ethersproject/abstract-signer": "5.0.14",

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

@@ -1,7 +0,6 @@

import { ethers, BigNumberish, BytesLike } from 'ethers'
import { BigNumberish, BytesLike } from 'ethers'
import { TypedDataDomain, TypedDataField, TypedDataSigner } from '@ethersproject/abstract-signer'
import { WalletContext, ChainId } from '@0xsequence/network'
import { encodeMessageDigest, TypedData, encodeTypedDataDigest } from '@0xsequence/utils'
import { DecodedSignature } from '@0xsequence/wallet'
import { WalletConfig, addressOf } from '@0xsequence/config'
import { DecodedSignature, WalletConfig } from '@0xsequence/config'
import { Wallet } from '../wallet'

@@ -8,0 +7,0 @@ import { isValidSignature, recoverWalletConfig } from '../utils'

import { BigNumberish, BytesLike } from 'ethers'
import { WalletContext } from '@0xsequence/network'
import { WalletConfig, addressOf } from '@0xsequence/config'
import { WalletConfig, addressOf, DecodedSignature } from '@0xsequence/config'
import { Web3Provider } from './provider'
import { isValidSignature as _isValidSignature, packMessageData, recoverConfig, DecodedSignature } from '@0xsequence/wallet'
import { isValidSignature as _isValidSignature, packMessageData, recoverConfig } from '@0xsequence/wallet'

@@ -20,3 +20,3 @@ export const isValidSignature = async (

export const recoverWalletConfig = (
export const recoverWalletConfig = async (
address: string,

@@ -27,5 +27,5 @@ digest: BytesLike,

walletContext?: WalletContext
): WalletConfig => {
): Promise<WalletConfig> => {
const subDigest = packMessageData(address, chainId, digest)
const config = recoverConfig(subDigest, signature)
const config = await recoverConfig(subDigest, signature)

@@ -32,0 +32,0 @@ if (walletContext) {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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