@0xsequence/provider
Advanced tools
Comparing version 0.11.0 to 0.11.1
# @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 @@ |
@@ -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
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
374623
9071
Updated@0xsequence/abi@^0.11.1
Updated@0xsequence/auth@^0.11.1
Updated@0xsequence/config@^0.11.1
Updated@0xsequence/network@^0.11.1
Updated@0xsequence/utils@^0.11.1
Updated@0xsequence/wallet@^0.11.1