@0xsequence/wallet
Advanced tools
Comparing version 0.8.1 to 0.8.2
# @0xsequence/wallet | ||
## 0.8.2 | ||
### Patch Changes | ||
- - field rename and ethauth dependency bump | ||
- Updated dependencies [undefined] | ||
- @0xsequence/abi@0.8.2 | ||
- @0xsequence/api@0.8.2 | ||
- @0xsequence/config@0.8.2 | ||
- @0xsequence/guard@0.8.2 | ||
- @0xsequence/network@0.8.2 | ||
- @0xsequence/relayer@0.8.2 | ||
- @0xsequence/transactions@0.8.2 | ||
- @0xsequence/utils@0.8.2 | ||
## 0.8.1 | ||
@@ -4,0 +19,0 @@ |
@@ -594,3 +594,3 @@ 'use strict'; | ||
async signTypedData(domain, types, value, chainId, allSigners) { | ||
async signTypedData(domain, types, message, chainId, allSigners) { | ||
const signChainId = await this.getChainIdNumber(chainId); | ||
@@ -610,9 +610,9 @@ const domainChainId = domain.chainId ? ethers.BigNumber.from(domain.chainId).toNumber() : undefined; | ||
const digest = ethers.ethers.utils._TypedDataEncoder.hash(domain, types, value); | ||
const hash = ethers.ethers.utils._TypedDataEncoder.hash(domain, types, message); | ||
return this.signMessage(ethers.ethers.utils.arrayify(digest), signChainId, allSigners); | ||
return this.signMessage(ethers.ethers.utils.arrayify(hash), signChainId, allSigners); | ||
} | ||
async _signTypedData(domain, types, value, chainId, allSigners) { | ||
return this.signTypedData(domain, types, value, chainId, allSigners); | ||
async _signTypedData(domain, types, message, chainId, allSigners) { | ||
return this.signTypedData(domain, types, message, chainId, allSigners); | ||
} // sign is a helper method to sign a payload with the wallet signers | ||
@@ -943,12 +943,12 @@ | ||
return wallet.signMessage(message); | ||
return wallet.signMessage(message, undefined, allSigners); | ||
} | ||
async signTypedData(domain, types, value, chainId, allSigners) { | ||
async signTypedData(domain, types, message, chainId, allSigners = true) { | ||
const wallet = chainId ? this.getWalletByNetwork(chainId).wallet : this.mainWallet(); | ||
return wallet.signTypedData(domain, types, value, chainId, allSigners); | ||
return wallet.signTypedData(domain, types, message, chainId, allSigners); | ||
} | ||
async _signTypedData(domain, types, value, chainId, allSigners) { | ||
return this.signTypedData(domain, types, value, chainId, allSigners); | ||
async _signTypedData(domain, types, message, chainId, allSigners = true) { | ||
return this.signTypedData(domain, types, message, chainId, allSigners); | ||
} | ||
@@ -955,0 +955,0 @@ |
@@ -594,3 +594,3 @@ 'use strict'; | ||
async signTypedData(domain, types, value, chainId, allSigners) { | ||
async signTypedData(domain, types, message, chainId, allSigners) { | ||
const signChainId = await this.getChainIdNumber(chainId); | ||
@@ -610,9 +610,9 @@ const domainChainId = domain.chainId ? ethers.BigNumber.from(domain.chainId).toNumber() : undefined; | ||
const digest = ethers.ethers.utils._TypedDataEncoder.hash(domain, types, value); | ||
const hash = ethers.ethers.utils._TypedDataEncoder.hash(domain, types, message); | ||
return this.signMessage(ethers.ethers.utils.arrayify(digest), signChainId, allSigners); | ||
return this.signMessage(ethers.ethers.utils.arrayify(hash), signChainId, allSigners); | ||
} | ||
async _signTypedData(domain, types, value, chainId, allSigners) { | ||
return this.signTypedData(domain, types, value, chainId, allSigners); | ||
async _signTypedData(domain, types, message, chainId, allSigners) { | ||
return this.signTypedData(domain, types, message, chainId, allSigners); | ||
} // sign is a helper method to sign a payload with the wallet signers | ||
@@ -943,12 +943,12 @@ | ||
return wallet.signMessage(message); | ||
return wallet.signMessage(message, undefined, allSigners); | ||
} | ||
async signTypedData(domain, types, value, chainId, allSigners) { | ||
async signTypedData(domain, types, message, chainId, allSigners = true) { | ||
const wallet = chainId ? this.getWalletByNetwork(chainId).wallet : this.mainWallet(); | ||
return wallet.signTypedData(domain, types, value, chainId, allSigners); | ||
return wallet.signTypedData(domain, types, message, chainId, allSigners); | ||
} | ||
async _signTypedData(domain, types, value, chainId, allSigners) { | ||
return this.signTypedData(domain, types, value, chainId, allSigners); | ||
async _signTypedData(domain, types, message, chainId, allSigners = true) { | ||
return this.signTypedData(domain, types, message, chainId, allSigners); | ||
} | ||
@@ -955,0 +955,0 @@ |
@@ -586,3 +586,3 @@ import { Signer as Signer$1, Contract, ethers, BigNumber } from 'ethers'; | ||
async signTypedData(domain, types, value, chainId, allSigners) { | ||
async signTypedData(domain, types, message, chainId, allSigners) { | ||
const signChainId = await this.getChainIdNumber(chainId); | ||
@@ -602,9 +602,9 @@ const domainChainId = domain.chainId ? BigNumber.from(domain.chainId).toNumber() : undefined; | ||
const digest = ethers.utils._TypedDataEncoder.hash(domain, types, value); | ||
const hash = ethers.utils._TypedDataEncoder.hash(domain, types, message); | ||
return this.signMessage(ethers.utils.arrayify(digest), signChainId, allSigners); | ||
return this.signMessage(ethers.utils.arrayify(hash), signChainId, allSigners); | ||
} | ||
async _signTypedData(domain, types, value, chainId, allSigners) { | ||
return this.signTypedData(domain, types, value, chainId, allSigners); | ||
async _signTypedData(domain, types, message, chainId, allSigners) { | ||
return this.signTypedData(domain, types, message, chainId, allSigners); | ||
} // sign is a helper method to sign a payload with the wallet signers | ||
@@ -935,12 +935,12 @@ | ||
return wallet.signMessage(message); | ||
return wallet.signMessage(message, undefined, allSigners); | ||
} | ||
async signTypedData(domain, types, value, chainId, allSigners) { | ||
async signTypedData(domain, types, message, chainId, allSigners = true) { | ||
const wallet = chainId ? this.getWalletByNetwork(chainId).wallet : this.mainWallet(); | ||
return wallet.signTypedData(domain, types, value, chainId, allSigners); | ||
return wallet.signTypedData(domain, types, message, chainId, allSigners); | ||
} | ||
async _signTypedData(domain, types, value, chainId, allSigners) { | ||
return this.signTypedData(domain, types, value, chainId, allSigners); | ||
async _signTypedData(domain, types, message, chainId, allSigners = true) { | ||
return this.signTypedData(domain, types, message, chainId, allSigners); | ||
} | ||
@@ -947,0 +947,0 @@ |
@@ -34,4 +34,4 @@ import { TransactionResponse, TransactionRequest, JsonRpcProvider, Provider } from '@ethersproject/providers'; | ||
signMessage(message: BytesLike, target?: Wallet | ChainId, allSigners?: boolean): Promise<string>; | ||
signTypedData(domain: TypedDataDomain, types: Record<string, Array<TypedDataField>>, value: Record<string, any>, chainId?: ChainId, allSigners?: boolean): Promise<string>; | ||
_signTypedData(domain: TypedDataDomain, types: Record<string, Array<TypedDataField>>, value: Record<string, any>, chainId?: ChainId, allSigners?: boolean): Promise<string>; | ||
signTypedData(domain: TypedDataDomain, types: Record<string, Array<TypedDataField>>, message: Record<string, any>, chainId?: ChainId, allSigners?: boolean): Promise<string>; | ||
_signTypedData(domain: TypedDataDomain, types: Record<string, Array<TypedDataField>>, message: Record<string, any>, chainId?: ChainId, allSigners?: boolean): Promise<string>; | ||
sendTransaction(dtransactionish: Deferrable<Transactionish>, chainId?: ChainId, allSigners?: boolean): Promise<TransactionResponse>; | ||
@@ -38,0 +38,0 @@ signTransactions(txs: Deferrable<Transactionish>, chainId?: ChainId, allSigners?: boolean): Promise<SignedTransactions>; |
@@ -20,3 +20,3 @@ import { Signer as AbstractSigner } from 'ethers'; | ||
abstract signMessage(message: BytesLike, chainId?: ChainId, allSigners?: boolean): Promise<string>; | ||
abstract signTypedData(domain: TypedDataDomain, types: Record<string, Array<TypedDataField>>, value: Record<string, any>, chainId?: ChainId, allSigners?: boolean): Promise<string>; | ||
abstract signTypedData(domain: TypedDataDomain, types: Record<string, Array<TypedDataField>>, message: Record<string, any>, chainId?: ChainId, allSigners?: boolean): Promise<string>; | ||
abstract sendTransaction(transaction: Deferrable<Transactionish>, chainId?: ChainId, allSigners?: boolean): Promise<TransactionResponse>; | ||
@@ -23,0 +23,0 @@ abstract signTransactions(txs: Deferrable<Transactionish>, chainId?: ChainId, allSigners?: boolean): Promise<SignedTransactions>; |
@@ -49,4 +49,4 @@ import { Provider, TransactionResponse, BlockTag, JsonRpcProvider } from '@ethersproject/providers'; | ||
signMessage(message: BytesLike, chainId?: ChainId, allSigners?: boolean): Promise<string>; | ||
signTypedData(domain: TypedDataDomain, types: Record<string, Array<TypedDataField>>, value: Record<string, any>, chainId?: ChainId, allSigners?: boolean): Promise<string>; | ||
_signTypedData(domain: TypedDataDomain, types: Record<string, Array<TypedDataField>>, value: Record<string, any>, chainId?: ChainId, allSigners?: boolean): Promise<string>; | ||
signTypedData(domain: TypedDataDomain, types: Record<string, Array<TypedDataField>>, message: Record<string, any>, chainId?: ChainId, allSigners?: boolean): Promise<string>; | ||
_signTypedData(domain: TypedDataDomain, types: Record<string, Array<TypedDataField>>, message: Record<string, any>, chainId?: ChainId, allSigners?: boolean): Promise<string>; | ||
sign(msg: BytesLike, isDigest?: boolean, chainId?: ChainId, allSigners?: boolean): Promise<string>; | ||
@@ -53,0 +53,0 @@ signWeight(): Promise<BigNumber>; |
{ | ||
"name": "@0xsequence/wallet", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"description": "wallet sub-package for Sequence", | ||
@@ -17,10 +17,10 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/wallet", | ||
"dependencies": { | ||
"@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", | ||
"@0xsequence/abi": "^0.8.2", | ||
"@0xsequence/api": "^0.8.2", | ||
"@0xsequence/config": "^0.8.2", | ||
"@0xsequence/guard": "^0.8.2", | ||
"@0xsequence/network": "^0.8.2", | ||
"@0xsequence/relayer": "^0.8.2", | ||
"@0xsequence/transactions": "^0.8.2", | ||
"@0xsequence/utils": "^0.8.2", | ||
"@ethersproject/abi": "^5.0.10", | ||
@@ -27,0 +27,0 @@ "@ethersproject/properties": "^5.0.7", |
@@ -150,12 +150,12 @@ import { TransactionResponse, TransactionRequest, JsonRpcProvider, Provider } from '@ethersproject/providers' | ||
return wallet.signMessage(message) | ||
return wallet.signMessage(message, undefined, allSigners) | ||
} | ||
async signTypedData(domain: TypedDataDomain, types: Record<string, Array<TypedDataField>>, value: Record<string, any>, chainId?: ChainId, allSigners?: boolean): Promise<string> { | ||
async signTypedData(domain: TypedDataDomain, types: Record<string, Array<TypedDataField>>, message: Record<string, any>, chainId?: ChainId, allSigners: boolean = true): Promise<string> { | ||
const wallet = chainId ? this.getWalletByNetwork(chainId).wallet : this.mainWallet() | ||
return wallet.signTypedData(domain, types, value, chainId, allSigners) | ||
return wallet.signTypedData(domain, types, message, chainId, allSigners) | ||
} | ||
async _signTypedData(domain: TypedDataDomain, types: Record<string, Array<TypedDataField>>, value: Record<string, any>, chainId?: ChainId, allSigners?: boolean): Promise<string> { | ||
return this.signTypedData(domain, types, value, chainId, allSigners) | ||
async _signTypedData(domain: TypedDataDomain, types: Record<string, Array<TypedDataField>>, message: Record<string, any>, chainId?: ChainId, allSigners: boolean = true): Promise<string> { | ||
return this.signTypedData(domain, types, message, chainId, allSigners) | ||
} | ||
@@ -162,0 +162,0 @@ |
@@ -33,3 +33,3 @@ import { Signer as AbstractSigner } from 'ethers' | ||
// signTypedData .. | ||
abstract signTypedData(domain: TypedDataDomain, types: Record<string, Array<TypedDataField>>, value: Record<string, any>, chainId?: ChainId, allSigners?: boolean): Promise<string> | ||
abstract signTypedData(domain: TypedDataDomain, types: Record<string, Array<TypedDataField>>, message: Record<string, any>, chainId?: ChainId, allSigners?: boolean): Promise<string> | ||
@@ -36,0 +36,0 @@ // sendTransaction takes an unsigned transaction, or list of unsigned transactions, and then has it signed by |
@@ -366,3 +366,3 @@ import { | ||
async signTypedData(domain: TypedDataDomain, types: Record<string, Array<TypedDataField>>, value: Record<string, any>, chainId?: ChainId, allSigners?: boolean): Promise<string> { | ||
async signTypedData(domain: TypedDataDomain, types: Record<string, Array<TypedDataField>>, message: Record<string, any>, chainId?: ChainId, allSigners?: boolean): Promise<string> { | ||
const signChainId = await this.getChainIdNumber(chainId) | ||
@@ -381,8 +381,8 @@ | ||
const digest = ethers.utils._TypedDataEncoder.hash(domain, types, value) | ||
return this.signMessage(ethers.utils.arrayify(digest), signChainId, allSigners) | ||
const hash = ethers.utils._TypedDataEncoder.hash(domain, types, message) | ||
return this.signMessage(ethers.utils.arrayify(hash), signChainId, allSigners) | ||
} | ||
async _signTypedData(domain: TypedDataDomain, types: Record<string, Array<TypedDataField>>, value: Record<string, any>, chainId?: ChainId, allSigners?: boolean): Promise<string> { | ||
return this.signTypedData(domain, types, value, chainId, allSigners) | ||
async _signTypedData(domain: TypedDataDomain, types: Record<string, Array<TypedDataField>>, message: Record<string, any>, chainId?: ChainId, allSigners?: boolean): Promise<string> { | ||
return this.signTypedData(domain, types, message, chainId, allSigners) | ||
} | ||
@@ -389,0 +389,0 @@ |
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
217269
Updated@0xsequence/abi@^0.8.2
Updated@0xsequence/api@^0.8.2
Updated@0xsequence/config@^0.8.2
Updated@0xsequence/guard@^0.8.2
Updated@0xsequence/network@^0.8.2
Updated@0xsequence/relayer@^0.8.2
Updated@0xsequence/utils@^0.8.2