diff options
author | Jacob Evans <jacob@dekz.net> | 2018-04-10 09:58:12 +0800 |
---|---|---|
committer | Jacob Evans <jacob@dekz.net> | 2018-04-10 09:58:12 +0800 |
commit | 5b69cd4a22ce1720f4441aaa74c86f895015c0fd (patch) | |
tree | 2a38d521a8b4a944d3e7c3634a56583b3960b354 /packages/subproviders/src/types.ts | |
parent | 0e8f5004d6a53929a4cc1de9231c43899c8b6eeb (diff) | |
download | dexon-0x-contracts-5b69cd4a22ce1720f4441aaa74c86f895015c0fd.tar dexon-0x-contracts-5b69cd4a22ce1720f4441aaa74c86f895015c0fd.tar.gz dexon-0x-contracts-5b69cd4a22ce1720f4441aaa74c86f895015c0fd.tar.bz2 dexon-0x-contracts-5b69cd4a22ce1720f4441aaa74c86f895015c0fd.tar.lz dexon-0x-contracts-5b69cd4a22ce1720f4441aaa74c86f895015c0fd.tar.xz dexon-0x-contracts-5b69cd4a22ce1720f4441aaa74c86f895015c0fd.tar.zst dexon-0x-contracts-5b69cd4a22ce1720f4441aaa74c86f895015c0fd.zip |
Added walletUtils and address in signMessage
Diffstat (limited to 'packages/subproviders/src/types.ts')
-rw-r--r-- | packages/subproviders/src/types.ts | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/packages/subproviders/src/types.ts b/packages/subproviders/src/types.ts index de04499ce..105ffa7cc 100644 --- a/packages/subproviders/src/types.ts +++ b/packages/subproviders/src/types.ts @@ -1,4 +1,5 @@ import { ECSignature, JSONRPCRequestPayload } from '@0xproject/types'; +import HDNode = require('hdkey'); import * as _ from 'lodash'; export interface LedgerCommunicationClient { @@ -95,10 +96,8 @@ export interface ResponseWithTxParams { tx: PartialTxParams; } -export enum MnemonicSubproviderErrors { - AddressSearchExhausted = 'ADDRESS_SEARCH_EXHAUSTED', -} export enum WalletSubproviderErrors { + AddressNotFound = 'ADDRESS_NOT_FOUND', DataMissingForSignPersonalMessage = 'DATA_MISSING_FOR_SIGN_PERSONAL_MESSAGE', SenderInvalidOrNotSupplied = 'SENDER_INVALID_OR_NOT_SUPPLIED', } @@ -112,6 +111,11 @@ export enum NonceSubproviderErrors { EmptyParametersFound = 'EMPTY_PARAMETERS_FOUND', CannotDetermineAddressFromPayload = 'CANNOT_DETERMINE_ADDRESS_FROM_PAYLOAD', } +export interface DerivedHDKey { + address: string; + derivationPath: string; + hdKey: HDNode; +} export type ErrorCallback = (err: Error | null, data?: any) => void; export type Callback = () => void; |