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

@0xsequence/wallet

Package Overview
Dependencies
Maintainers
2
Versions
498
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0xsequence/wallet - npm Package Compare versions

Comparing version 0.8.0 to 0.8.1

15

CHANGELOG.md
# @0xsequence/wallet
## 0.8.1
### Patch Changes
- - variety of optimizations
- Updated dependencies [undefined]
- @0xsequence/abi@0.8.1
- @0xsequence/api@0.8.1
- @0xsequence/config@0.8.1
- @0xsequence/guard@0.8.1
- @0xsequence/network@0.8.1
- @0xsequence/relayer@0.8.1
- @0xsequence/transactions@0.8.1
- @0xsequence/utils@0.8.1
## 0.8.0

@@ -4,0 +19,0 @@

8

dist/0xsequence-wallet.cjs.dev.js

@@ -1237,3 +1237,3 @@ 'use strict';

if (isValidEIP712Signature(address, digest, sig) || isValidEthSignSignature(address, digest, sig)) return true;
const wallets = await Promise.all([isValidWalletSignature(address, digest, sig, provider), isValidSequenceDeployedWalletSignature(address, digest, sig, provider, chainId)]); // If validity of wallet signature can't be determined
const wallets = await Promise.all([isValidContractWalletSignature(address, digest, sig, provider), isValidSequenceDeployedWalletSignature(address, digest, sig, provider, chainId)]); // If validity of wallet signature can't be determined
// it could be a signature of a non-deployed sequence wallet

@@ -1263,3 +1263,3 @@

async function isValidWalletSignature(address, digest, sig, provider) {
async function isValidContractWalletSignature(address, digest, sig, provider) {
if (!provider) return undefined;

@@ -1286,3 +1286,3 @@

const subDigest = ethers.ethers.utils.arrayify(ethers.ethers.utils.keccak256(packMessageData(address, cid, digest)));
return isValidWalletSignature(address, subDigest, sig, provider);
return isValidContractWalletSignature(address, subDigest, sig, provider);
} catch (_unused4) {

@@ -1322,2 +1322,3 @@ return false;

exports.isSigner = isSigner;
exports.isValidContractWalletSignature = isValidContractWalletSignature;
exports.isValidEIP712Signature = isValidEIP712Signature;

@@ -1328,3 +1329,2 @@ exports.isValidEthSignSignature = isValidEthSignSignature;

exports.isValidSignature = isValidSignature;
exports.isValidWalletSignature = isValidWalletSignature;
exports.joinSignatures = joinSignatures;

@@ -1331,0 +1331,0 @@ exports.joinTwoSignatures = joinTwoSignatures;

@@ -1237,3 +1237,3 @@ 'use strict';

if (isValidEIP712Signature(address, digest, sig) || isValidEthSignSignature(address, digest, sig)) return true;
const wallets = await Promise.all([isValidWalletSignature(address, digest, sig, provider), isValidSequenceDeployedWalletSignature(address, digest, sig, provider, chainId)]); // If validity of wallet signature can't be determined
const wallets = await Promise.all([isValidContractWalletSignature(address, digest, sig, provider), isValidSequenceDeployedWalletSignature(address, digest, sig, provider, chainId)]); // If validity of wallet signature can't be determined
// it could be a signature of a non-deployed sequence wallet

@@ -1263,3 +1263,3 @@

async function isValidWalletSignature(address, digest, sig, provider) {
async function isValidContractWalletSignature(address, digest, sig, provider) {
if (!provider) return undefined;

@@ -1286,3 +1286,3 @@

const subDigest = ethers.ethers.utils.arrayify(ethers.ethers.utils.keccak256(packMessageData(address, cid, digest)));
return isValidWalletSignature(address, subDigest, sig, provider);
return isValidContractWalletSignature(address, subDigest, sig, provider);
} catch (_unused4) {

@@ -1322,2 +1322,3 @@ return false;

exports.isSigner = isSigner;
exports.isValidContractWalletSignature = isValidContractWalletSignature;
exports.isValidEIP712Signature = isValidEIP712Signature;

@@ -1328,3 +1329,2 @@ exports.isValidEthSignSignature = isValidEthSignSignature;

exports.isValidSignature = isValidSignature;
exports.isValidWalletSignature = isValidWalletSignature;
exports.joinSignatures = joinSignatures;

@@ -1331,0 +1331,0 @@ exports.joinTwoSignatures = joinTwoSignatures;

@@ -1229,3 +1229,3 @@ import { Signer as Signer$1, Contract, ethers, BigNumber } from 'ethers';

if (isValidEIP712Signature(address, digest, sig) || isValidEthSignSignature(address, digest, sig)) return true;
const wallets = await Promise.all([isValidWalletSignature(address, digest, sig, provider), isValidSequenceDeployedWalletSignature(address, digest, sig, provider, chainId)]); // If validity of wallet signature can't be determined
const wallets = await Promise.all([isValidContractWalletSignature(address, digest, sig, provider), isValidSequenceDeployedWalletSignature(address, digest, sig, provider, chainId)]); // If validity of wallet signature can't be determined
// it could be a signature of a non-deployed sequence wallet

@@ -1255,3 +1255,3 @@

async function isValidWalletSignature(address, digest, sig, provider) {
async function isValidContractWalletSignature(address, digest, sig, provider) {
if (!provider) return undefined;

@@ -1278,3 +1278,3 @@

const subDigest = ethers.utils.arrayify(ethers.utils.keccak256(packMessageData(address, cid, digest)));
return isValidWalletSignature(address, subDigest, sig, provider);
return isValidContractWalletSignature(address, subDigest, sig, provider);
} catch (_unused4) {

@@ -1301,2 +1301,2 @@ return false;

export { Account, GuardRemoteSigner, InvalidSigner, LocalRemoteSigner, NotEnoughSigners, RemoteSigner, Signer, Wallet, decodeSignature, fetchImageHash, findLatestLog, isSequenceSigner, isSigner, isValidEIP712Signature, isValidEthSignSignature, isValidSequenceDeployedWalletSignature, isValidSequenceUndeployedWalletSignature, isValidSignature, isValidWalletSignature, joinSignatures, joinTwoSignatures, packMessageData, recoverConfig, recoverConfigFromDigest, recoverSigner, resolveArrayProperties };
export { Account, GuardRemoteSigner, InvalidSigner, LocalRemoteSigner, NotEnoughSigners, RemoteSigner, Signer, Wallet, decodeSignature, fetchImageHash, findLatestLog, isSequenceSigner, isSigner, isValidContractWalletSignature, isValidEIP712Signature, isValidEthSignSignature, isValidSequenceDeployedWalletSignature, isValidSequenceUndeployedWalletSignature, isValidSignature, joinSignatures, joinTwoSignatures, packMessageData, recoverConfig, recoverConfigFromDigest, recoverSigner, resolveArrayProperties };

@@ -6,4 +6,4 @@ import { WalletContext } from '@0xsequence/network';

export declare function isValidEthSignSignature(address: string, digest: Uint8Array, sig: string): boolean;
export declare function isValidWalletSignature(address: string, digest: Uint8Array, sig: string, provider?: Provider): Promise<boolean>;
export declare function isValidContractWalletSignature(address: string, digest: Uint8Array, sig: string, provider?: Provider): Promise<boolean>;
export declare function isValidSequenceDeployedWalletSignature(address: string, digest: Uint8Array, sig: string, provider?: Provider, chainId?: number): Promise<boolean>;
export declare function isValidSequenceUndeployedWalletSignature(address: string, digest: Uint8Array, sig: string, walletContext?: WalletContext, provider?: Provider, chainId?: number): Promise<boolean>;
{
"name": "@0xsequence/wallet",
"version": "0.8.0",
"version": "0.8.1",
"description": "wallet sub-package for Sequence",
"repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/wallet",
"source": "src/index.ts",

@@ -16,11 +17,10 @@ "main": "dist/0xsequence-wallet.cjs.js",

"dependencies": {
"@0xsequence/abi": "^0.8.0",
"@0xsequence/api": "^0.8.0",
"@0xsequence/config": "^0.8.0",
"@0xsequence/guard": "^0.8.0",
"@0xsequence/network": "^0.8.0",
"@0xsequence/relayer": "^0.8.0",
"@0xsequence/transactions": "^0.8.0",
"@0xsequence/utils": "^0.8.0",
"@arcadeum/ethauth": "^0.3.0",
"@0xsequence/abi": "^0.8.1",
"@0xsequence/api": "^0.8.1",
"@0xsequence/config": "^0.8.1",
"@0xsequence/guard": "^0.8.1",
"@0xsequence/network": "^0.8.1",
"@0xsequence/relayer": "^0.8.1",
"@0xsequence/transactions": "^0.8.1",
"@0xsequence/utils": "^0.8.1",
"@ethersproject/abi": "^5.0.10",

@@ -35,3 +35,3 @@ "@ethersproject/properties": "^5.0.7",

"devDependencies": {
"@0xsequence/wallet-contracts": "https://github.com/arcadeum/wallet-contracts",
"@0xsequence/wallet-contracts": "https://github.com/0xsequence/wallet-contracts",
"ganache-core": "^2.13.2",

@@ -38,0 +38,0 @@ "web3": "^1.3.1",

@0xsequence/wallet
==================
...
See [0xsequence project page](https://github.com/0xsequence/sequence.js).

@@ -26,3 +26,3 @@ import { ethers, BytesLike, BigNumberish } from 'ethers'

const wallets = await Promise.all([
isValidWalletSignature(address, digest, sig, provider),
isValidContractWalletSignature(address, digest, sig, provider),
isValidSequenceDeployedWalletSignature(address, digest, sig, provider, chainId)

@@ -83,3 +83,3 @@ ])

// Check if valid Smart Contract Wallet signature, via ERC1271
export async function isValidWalletSignature(
export async function isValidContractWalletSignature(
address: string,

@@ -116,3 +116,3 @@ digest: Uint8Array,

const subDigest = ethers.utils.arrayify(ethers.utils.keccak256(packMessageData(address, cid, digest)))
return isValidWalletSignature(address, subDigest, sig, provider)
return isValidContractWalletSignature(address, subDigest, sig, provider)
} catch {

@@ -119,0 +119,0 @@ return false

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