@0xsequence/wallet
Advanced tools
Comparing version 0.8.0 to 0.8.1
# @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 @@ |
@@ -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 |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
216721
14
- Removed@arcadeum/ethauth@^0.3.0
- Removed@arcadeum/ethauth@0.3.0(transitive)
- Removedbase64url@3.0.1(transitive)
- Removedethers-eip712@0.2.0(transitive)
Updated@0xsequence/abi@^0.8.1
Updated@0xsequence/api@^0.8.1
Updated@0xsequence/config@^0.8.1
Updated@0xsequence/guard@^0.8.1
Updated@0xsequence/network@^0.8.1
Updated@0xsequence/relayer@^0.8.1
Updated@0xsequence/utils@^0.8.1