@shapeshiftoss/hdwallet-core
Advanced tools
Comparing version 1.39.0 to 1.40.0
import { Bytes } from "@ethersproject/bytes"; | ||
import { TypedData } from "eip-712"; | ||
import { BIP32Path, HDWallet, HDWalletInfo, PathDescription } from "./wallet"; | ||
@@ -83,2 +84,10 @@ export interface SerializedEthereumRpcError { | ||
} | ||
export interface ETHSignTypedData { | ||
addressNList: BIP32Path; | ||
typedData: TypedData; | ||
} | ||
export interface ETHSignedTypedData { | ||
address: string; | ||
signature: string; | ||
} | ||
export interface ETHVerifyMessage { | ||
@@ -157,2 +166,3 @@ address: string; | ||
ethSignMessage(msg: ETHSignMessage): Promise<ETHSignedMessage | null>; | ||
ethSignTypedData?(msg: ETHSignTypedData): Promise<ETHSignedTypedData | null>; | ||
ethVerifyMessage(msg: ETHVerifyMessage): Promise<boolean | null>; | ||
@@ -159,0 +169,0 @@ } |
{ | ||
"name": "@shapeshiftoss/hdwallet-core", | ||
"version": "1.39.0", | ||
"version": "1.40.0", | ||
"license": "MIT", | ||
@@ -17,2 +17,3 @@ "publishConfig": { | ||
"dependencies": { | ||
"eip-712": "^1.0.0", | ||
"eventemitter2": "^5.0.1", | ||
@@ -32,3 +33,3 @@ "lodash": "^4.17.21", | ||
}, | ||
"gitHead": "9dd4bd9b87ec2e952f425266f3965c8fc009268b" | ||
"gitHead": "ed6bdfc3ed30320900999516e0ac0d7168eec9fb" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
199206
3263
5
+ Addedeip-712@^1.0.0
+ Added@findeth/abi@0.3.1(transitive)
+ Added@noble/hashes@1.7.1(transitive)
+ Addedeip-712@1.0.0(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedkeccak@3.0.4(transitive)
+ Addednode-addon-api@2.0.2(transitive)
+ Addednode-gyp-build@4.8.4(transitive)
+ Addedreadable-stream@3.6.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedsuperstruct@0.15.5(transitive)
+ Addedutil-deprecate@1.0.2(transitive)