Merge branch 'development' into sol-doc
This commit is contained in:
@@ -1,4 +1,14 @@
|
||||
[
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"changes": [
|
||||
{
|
||||
"note": "Remove types for web3-provider-engine, newman, ganache-core, detect-node, eth-lightwallet",
|
||||
"pr": "1052"
|
||||
}
|
||||
],
|
||||
"timestamp": 1536142250
|
||||
},
|
||||
{
|
||||
"timestamp": 1535133899,
|
||||
"version": "1.0.5",
|
||||
|
@@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
|
||||
|
||||
CHANGELOG
|
||||
|
||||
## v2.0.0 - _September 5, 2018_
|
||||
|
||||
* Remove types for web3-provider-engine, newman, ganache-core, detect-node, eth-lightwallet (#1052)
|
||||
|
||||
## v1.0.5 - _August 24, 2018_
|
||||
|
||||
* Dependencies updated
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@0xproject/typescript-typings",
|
||||
"version": "1.0.5",
|
||||
"version": "2.0.0",
|
||||
"engines": {
|
||||
"node": ">=6.12"
|
||||
},
|
||||
@@ -26,13 +26,13 @@
|
||||
"@types/bn.js": "^4.11.0",
|
||||
"@types/react": "*",
|
||||
"bignumber.js": "~4.1.0",
|
||||
"ethereum-types": "^1.0.5",
|
||||
"ethereum-types": "^1.0.6",
|
||||
"popper.js": "1.14.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"copyfiles": "^2.0.0",
|
||||
"typescript": "3.0.1",
|
||||
"shx": "^0.2.2"
|
||||
"shx": "^0.2.2",
|
||||
"typescript": "3.0.1"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
|
@@ -1,3 +0,0 @@
|
||||
declare module 'detect-node' {
|
||||
export const isNode: boolean;
|
||||
}
|
@@ -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;
|
||||
}
|
||||
}
|
@@ -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;
|
||||
}
|
@@ -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;
|
||||
}
|
@@ -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;
|
||||
}
|
Reference in New Issue
Block a user