aboutsummaryrefslogtreecommitdiffstats
path: root/packages/typescript-typings
diff options
context:
space:
mode:
authorCavan <cavan@radarrelay.com>2018-06-05 06:24:37 +0800
committerFabio Berger <me@fabioberger.com>2018-06-26 01:06:22 +0800
commit235d78565e4d809d3ec1b91174fd0a831c126202 (patch)
tree3098b6883cddade15fe74504e706ebfe35735c45 /packages/typescript-typings
parentdb5880539b7a92a80d79692fbc70d46a326b1462 (diff)
downloaddexon-sol-tools-235d78565e4d809d3ec1b91174fd0a831c126202.tar
dexon-sol-tools-235d78565e4d809d3ec1b91174fd0a831c126202.tar.gz
dexon-sol-tools-235d78565e4d809d3ec1b91174fd0a831c126202.tar.bz2
dexon-sol-tools-235d78565e4d809d3ec1b91174fd0a831c126202.tar.lz
dexon-sol-tools-235d78565e4d809d3ec1b91174fd0a831c126202.tar.xz
dexon-sol-tools-235d78565e4d809d3ec1b91174fd0a831c126202.tar.zst
dexon-sol-tools-235d78565e4d809d3ec1b91174fd0a831c126202.zip
Format subprovider using prettier
Diffstat (limited to 'packages/typescript-typings')
-rw-r--r--packages/typescript-typings/types/eth-lightwallet/index.d.ts24
1 files changed, 6 insertions, 18 deletions
diff --git a/packages/typescript-typings/types/eth-lightwallet/index.d.ts b/packages/typescript-typings/types/eth-lightwallet/index.d.ts
index b871fb289..a226d8049 100644
--- a/packages/typescript-typings/types/eth-lightwallet/index.d.ts
+++ b/packages/typescript-typings/types/eth-lightwallet/index.d.ts
@@ -2,41 +2,29 @@
declare module 'eth-lightwallet' {
import { ECSignatureBuffer } from '@0xproject/types';
- interface signing {
- signTx(
+ export class signing {
+ public static signTx(
keystore: keystore,
pwDerivedKey: Uint8Array,
rawTx: string,
signingAddress: string,
): string;
- signMsg(
+ public static signMsg(
keystore: keystore,
pwDerivedKey: Uint8Array,
rawMsg: string,
signingAddress: string,
): ECSignatureBuffer;
- signMsgHash(
+ public static signMsgHash(
keystore: keystore,
pwDerivedKey: Uint8Array,
msgHash: string,
signingAddress: string,
): ECSignatureBuffer;
- concatSig(signature: any): string;
+ public static concatSig(signature: any): string;
}
- export const signing: signing;
-
- interface VaultOptions {
- password: string;
- seedPhrase: string;
- salt?: string;
- hdPathString: string;
- }
-
export class keystore {
- public static createVault(
- options: VaultOptions,
- callback?: (error: Error, keystore: keystore) => void,
- ): keystore;
+ public static createVault(options: any, callback?: (error: Error, keystore: keystore) => void): keystore;
public static generateRandomSeed(): string;
public static isSeedValid(seed: string): boolean;
public static deserialize(keystore: string): keystore;