Merge branch 'development' into sol-doc

This commit is contained in:
F. Eugene Aumson
2018-09-11 19:00:11 -04:00
committed by GitHub
259 changed files with 29841 additions and 108076 deletions

View File

@@ -1,3 +0,0 @@
declare module 'detect-node' {
export const isNode: boolean;
}

View File

@@ -1,54 +0,0 @@
// eth-lightwallet declarations
interface ECSignatureBuffer {
v: number;
r: Buffer;
s: Buffer;
}
declare module 'eth-lightwallet' {
// tslint:disable-next-line:class-name
export class signing {
public static signTx(
keystore: keystore,
pwDerivedKey: Uint8Array,
rawTx: string,
signingAddress: string,
): string;
public static signMsg(
keystore: keystore,
pwDerivedKey: Uint8Array,
rawMsg: string,
signingAddress: string,
): ECSignatureBuffer;
public static signMsgHash(
keystore: keystore,
pwDerivedKey: Uint8Array,
msgHash: string,
signingAddress: string,
): ECSignatureBuffer;
public static concatSig(signature: any): string;
}
// tslint:disable-next-line:class-name
export class 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;
public serialize(): string;
public keyFromPassword(
password: string,
callback?: (error: Error, pwDerivedKey: Uint8Array) => void,
): Uint8Array;
public isDerivedKeyCorrect(pwDerivedKey: Uint8Array): boolean;
public generateNewAddress(pwDerivedKey: Uint8Array, numberOfAddresses: number): void;
public getSeed(pwDerivedKey: Uint8Array): string;
public exportPrivateKey(address: string, pwDerivedKey: Uint8Array): string;
public getAddresses(): string[];
}
interface VaultOptions {
password: string;
seedPhrase: string;
salt?: string;
hdPathString: string;
}
}

View File

@@ -1,16 +0,0 @@
declare module 'ganache-core' {
import { Provider } from 'ethereum-types';
export interface GanacheOpts {
verbose?: boolean;
logger?: {
log(msg: string): void;
};
port?: number;
network_id?: number;
networkId?: number;
mnemonic?: string;
gasLimit?: number;
}
// tslint:disable-next-line:completed-docs
export function provider(opts: GanacheOpts): Provider;
}

View File

@@ -1,24 +0,0 @@
declare module 'newman' {
export interface NewmanRunSummary {
run: NewmanRun;
}
export interface NewmanRun {
executions: NewmanRunExecution[];
}
export interface NewmanRunExecution {
item: NewmanRunExecutionItem;
assertions: NewmanRunExecutionAssertion[];
}
export interface NewmanRunExecutionItem {
name: string;
}
export interface NewmanRunExecutionAssertion {
assertion: string;
error: NewmanRunExecutionAssertionError;
}
export interface NewmanRunExecutionAssertionError {
message: string;
}
// tslint:disable-next-line:completed-docs
export function run(options: any, callback?: (err: Error | null, summary: NewmanRunSummary) => void): void;
}

View File

@@ -1,62 +0,0 @@
declare module 'web3-provider-engine' {
import { Provider, JSONRPCRequestPayload, JSONRPCResponsePayload } from 'ethereum-types';
interface Web3ProviderEngineOptions {
pollingInterval?: number;
blockTracker?: any;
blockTrackerProvider?: any;
}
class Web3ProviderEngine implements Provider {
constructor(options?: Web3ProviderEngineOptions);
public on(event: string, handler: () => void): void;
public send(payload: JSONRPCRequestPayload): void;
public sendAsync(
payload: JSONRPCRequestPayload,
callback: (error: null | Error, response: JSONRPCResponsePayload) => void,
): void;
public addProvider(provider: any): void;
// start block polling
public start(callback?: () => void): void;
// stop block polling
public stop(): void;
}
export = Web3ProviderEngine;
}
declare module 'web3-provider-engine/subproviders/nonce-tracker';
declare module 'web3-provider-engine/subproviders/hooked-wallet';
declare module 'web3-provider-engine/subproviders/filters';
// web3-provider-engine declarations
declare module 'web3-provider-engine/subproviders/subprovider' {
class Subprovider {}
export = Subprovider;
}
declare module 'web3-provider-engine/subproviders/rpc' {
import { JSONRPCRequestPayload, JSONRPCResponsePayload } from 'ethereum-types';
class RpcSubprovider {
constructor(options: { rpcUrl: string });
public handleRequest(
payload: JSONRPCRequestPayload,
next: () => void,
end: (err: Error | null, data?: JSONRPCResponsePayload) => void,
): void;
}
export = RpcSubprovider;
}
declare module 'web3-provider-engine/util/rpc-cache-utils' {
class ProviderEngineRpcUtils {
public static blockTagForPayload(payload: any): string | null;
}
export = ProviderEngineRpcUtils;
}
declare module 'web3-provider-engine/subproviders/fixture' {
import { JSONRPCRequestPayload, JSONRPCResponsePayload } from 'ethereum-types';
class FixtureSubprovider {
constructor(staticResponses: any);
public handleRequest(
payload: JSONRPCRequestPayload,
next: () => void,
end: (err: Error | null, data?: JSONRPCResponsePayload) => void,
): void;
}
export = FixtureSubprovider;
}