chore: cleanup flow and package.json

This commit is contained in:
Justin Starry
2021-02-08 00:57:12 +08:00
committed by Justin Starry
parent c675c67c26
commit f0a8aba2e2
50 changed files with 2167 additions and 285 deletions

View File

@ -1,5 +1,5 @@
// flow-typed signature: 069c76ac6f0b539483367fd95c435241
// flow-typed version: <<STUB>>/@solana/spl-token_v0.0.4/flow_v0.130.0
// flow-typed signature: 31deb8fc07c5ce70371c5efad579a253
// flow-typed version: <<STUB>>/@solana/spl-token_v^0.0.13/flow_v0.130.0
/**
* This is an autogenerated libdef stub for:

32
web3.js/flow-typed/npm/bn.js_vx.x.x.js vendored Normal file
View File

@ -0,0 +1,32 @@
// flow-typed signature: 8da8649cde7e433ccfab3b776be3b79b
// flow-typed version: <<STUB>>/bn.js_v^5.0.0/flow_v0.130.0
/**
* This is an autogenerated libdef stub for:
*
* 'bn.js'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'bn.js' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'bn.js/lib/bn' {
declare module.exports: any;
}
// Filename aliases
declare module 'bn.js/lib/bn.js' {
declare module.exports: $Exports<'bn.js/lib/bn'>;
}

33
web3.js/flow-typed/npm/bs58_vx.x.x.js vendored Normal file
View File

@ -0,0 +1,33 @@
// flow-typed signature: f3d56571af5a1fa4e9a01cf0c8719c35
// flow-typed version: <<STUB>>/bs58_v^4.0.1/flow_v0.130.0
/**
* This is an autogenerated libdef stub for:
*
* 'bs58'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'bs58' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
// Filename aliases
declare module 'bs58/index' {
declare module.exports: $Exports<'bs58'>;
}
declare module 'bs58/index.js' {
declare module.exports: $Exports<'bs58'>;
}

View File

@ -0,0 +1,53 @@
// flow-typed signature: 1d431fcaaa378246e77473538c349228
// flow-typed version: <<STUB>>/buffer-layout_v^1.2.0/flow_v0.130.0
/**
* This is an autogenerated libdef stub for:
*
* 'buffer-layout'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'buffer-layout' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'buffer-layout/jsdoc/custom/local' {
declare module.exports: any;
}
declare module 'buffer-layout/lib/Layout' {
declare module.exports: any;
}
declare module 'buffer-layout/test/examples' {
declare module.exports: any;
}
declare module 'buffer-layout/test/LayoutTest' {
declare module.exports: any;
}
// Filename aliases
declare module 'buffer-layout/jsdoc/custom/local.js' {
declare module.exports: $Exports<'buffer-layout/jsdoc/custom/local'>;
}
declare module 'buffer-layout/lib/Layout.js' {
declare module.exports: $Exports<'buffer-layout/lib/Layout'>;
}
declare module 'buffer-layout/test/examples.js' {
declare module.exports: $Exports<'buffer-layout/test/examples'>;
}
declare module 'buffer-layout/test/LayoutTest.js' {
declare module.exports: $Exports<'buffer-layout/test/LayoutTest'>;
}

33
web3.js/flow-typed/npm/buffer_vx.x.x.js vendored Normal file
View File

@ -0,0 +1,33 @@
// flow-typed signature: 8dedcebf9a48fa95d40824e83a7eef7d
// flow-typed version: <<STUB>>/buffer_v6.0.1/flow_v0.130.0
/**
* This is an autogenerated libdef stub for:
*
* 'buffer'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'buffer' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
// Filename aliases
declare module 'buffer/index' {
declare module.exports: $Exports<'buffer'>;
}
declare module 'buffer/index.js' {
declare module.exports: $Exports<'buffer'>;
}

View File

@ -0,0 +1,32 @@
// flow-typed signature: 70e0166de5b4ddabe4c61a208b761844
// flow-typed version: <<STUB>>/chai-as-promised_v^7.1.1/flow_v0.130.0
/**
* This is an autogenerated libdef stub for:
*
* 'chai-as-promised'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'chai-as-promised' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'chai-as-promised/lib/chai-as-promised' {
declare module.exports: any;
}
// Filename aliases
declare module 'chai-as-promised/lib/chai-as-promised.js' {
declare module.exports: $Exports<'chai-as-promised/lib/chai-as-promised'>;
}

304
web3.js/flow-typed/npm/chai_v4.x.x.js vendored Normal file
View File

@ -0,0 +1,304 @@
// flow-typed signature: 055d97c4302b7989c7221251421dca7c
// flow-typed version: 673c7738c2/chai_v4.x.x/flow_>=v0.104.x
declare module "chai" {
declare type ExpectChain<T> = {
and: ExpectChain<T>,
at: ExpectChain<T>,
be: ExpectChain<T>,
been: ExpectChain<T>,
have: ExpectChain<T>,
has: ExpectChain<T>,
is: ExpectChain<T>,
of: ExpectChain<T>,
same: ExpectChain<T>,
that: ExpectChain<T>,
to: ExpectChain<T>,
which: ExpectChain<T>,
with: ExpectChain<T>,
not: ExpectChain<T>,
deep: ExpectChain<T>,
any: ExpectChain<T>,
all: ExpectChain<T>,
own: ExpectChain<T>,
a: ExpectChain<T> & ((type: string, message?: string) => ExpectChain<T>),
an: ExpectChain<T> & ((type: string, message?: string) => ExpectChain<T>),
include: ExpectChain<T> & ((value: mixed, message?: string) => ExpectChain<T>),
includes: ExpectChain<T> & ((value: mixed, message?: string) => ExpectChain<T>),
contain: ExpectChain<T> & ((value: mixed, message?: string) => ExpectChain<T>),
contains: ExpectChain<T> & ((value: mixed, message?: string) => ExpectChain<T>),
eq: (value: T, message?: string) => ExpectChain<T>,
eql: (value: T, message?: string) => ExpectChain<T>,
equal: (value: T, message?: string) => ExpectChain<T>,
equals: (value: T, message?: string) => ExpectChain<T>,
above: (value: T & number, message?: string) => ExpectChain<T>,
gt: (value: T & number, message?: string) => ExpectChain<T>,
greaterThan: (value: T & number, message?: string) => ExpectChain<T>,
least: (value: T & number, message?: string) => ExpectChain<T>,
below: (value: T & number, message?: string) => ExpectChain<T>,
lessThan: (value: T & number, message?: string) => ExpectChain<T>,
lt: (value: T & number, message?: string) => ExpectChain<T>,
most: (value: T & number, message?: string) => ExpectChain<T>,
within: (start: T & number, finish: T & number, message?: string) => ExpectChain<T>,
instanceof: (constructor: mixed, message?: string) => ExpectChain<T>,
instanceOf: (constructor: mixed, message?: string) => ExpectChain<T>,
nested: ExpectChain<T>,
property: <P>(
name: string,
value?: P,
message?: string
) => ExpectChain<P> & ((name: string) => ExpectChain<mixed>),
length: ExpectChain<number> & ((value: number, message?: string) => ExpectChain<T>),
lengthOf: (value: number, message?: string) => ExpectChain<T>,
match: (regex: RegExp, message?: string) => ExpectChain<T>,
matches: (regex: RegExp, message?: string) => ExpectChain<T>,
string: (string: string, message?: string) => ExpectChain<T>,
key: (key: string) => ExpectChain<T>,
keys: (
key: string | Array<string>,
...keys: Array<string>
) => ExpectChain<T>,
throw: <E>(
err?: Class<E> | Error | RegExp | string,
errMsgMatcher?: RegExp | string,
msg?: string
) => ExpectChain<T>,
respondTo: (method: string, message?: string) => ExpectChain<T>,
itself: ExpectChain<T>,
satisfy: (method: (value: T) => boolean, message?: string) => ExpectChain<T>,
closeTo: (expected: T & number, delta: number, message?: string) => ExpectChain<T>,
members: (set: mixed, message?: string) => ExpectChain<T>,
oneOf: (list: Array<T>, message?: string) => ExpectChain<T>,
change: (obj: mixed, key: string, message?: string) => ExpectChain<T>,
increase: (obj: mixed, key: string, message?: string) => ExpectChain<T>,
decrease: (obj: mixed, key: string, message?: string) => ExpectChain<T>,
by: (delta: number, message?: string) => ExpectChain<T>,
ordered: ExpectChain<T>,
// dirty-chai
ok: () => ExpectChain<T>,
true: () => ExpectChain<T>,
false: () => ExpectChain<T>,
null: () => ExpectChain<T>,
undefined: () => ExpectChain<T>,
exist: () => ExpectChain<T>,
empty: () => ExpectChain<T>,
extensible: () => ExpectChain<T>,
sealed: () => ExpectChain<T>,
frozen: () => ExpectChain<T>,
NaN: () => ExpectChain<T>,
// chai-immutable
size: (n: number) => ExpectChain<T>,
// sinon-chai
called: () => ExpectChain<T>,
callCount: (n: number) => ExpectChain<T>,
calledOnce: () => ExpectChain<T>,
calledTwice: () => ExpectChain<T>,
calledThrice: () => ExpectChain<T>,
calledBefore: (spy: mixed) => ExpectChain<T>,
calledAfter: (spy: mixed) => ExpectChain<T>,
calledImmediatelyBefore: (spy: mixed) => ExpectChain<T>,
calledImmediatelyAfter: (spy: mixed) => ExpectChain<T>,
calledWith: (...args: Array<mixed>) => ExpectChain<T>,
calledOnceWith: (...args: Array<mixed>) => ExpectChain<T>,
calledWithMatch: (...args: Array<mixed>) => ExpectChain<T>,
calledWithExactly: (...args: Array<mixed>) => ExpectChain<T>,
calledOnceWithExactly: (...args: Array<mixed>) => ExpectChain<T>,
returned: (returnVal: mixed) => ExpectChain<T>,
alwaysReturned: (returnVal: mixed) => ExpectChain<T>,
// chai-as-promised
eventually: ExpectChain<T>,
resolvedWith: (value: mixed) => Promise<mixed> & ExpectChain<T>,
resolved: () => Promise<mixed> & ExpectChain<T>,
rejectedWith: (
value: mixed,
errMsgMatcher?: RegExp | string,
msg?: string
) => Promise<mixed> & ExpectChain<T>,
rejected: () => Promise<mixed> & ExpectChain<T>,
notify: (callback: () => mixed) => ExpectChain<T>,
fulfilled: () => Promise<mixed> & ExpectChain<T>,
// chai-subset
containSubset: (obj: {...} | Array< {...} >) => ExpectChain<T>,
// chai-redux-mock-store
dispatchedActions: (
actions: Array<{...} | ((action: {...}) => any)>
) => ExpectChain<T>,
dispatchedTypes: (actions: Array<string>) => ExpectChain<T>,
// chai-enzyme
attr: (key: string, val?: any) => ExpectChain<T>,
data: (key: string, val?: any) => ExpectChain<T>,
prop: (key: string, val?: any) => ExpectChain<T>,
state: (key: string, val?: any) => ExpectChain<T>,
value: (val: string) => ExpectChain<T>,
className: (val: string) => ExpectChain<T>,
text: (val: string) => ExpectChain<T>,
// chai-karma-snapshot
matchSnapshot: (lang?: any, update?: boolean, msg?: any) => ExpectChain<T>,
...
};
declare var expect: {
<T>(actual: T, message?: string): ExpectChain<T>,
fail: ((message?: string) => void) & ((actual: any, expected: any, message?: string, operator?: string) => void),
...
};
declare function use(plugin: (chai: Object, utils: Object) => void): void;
declare class assert {
static (expression: mixed, message?: string): void;
static fail(
actual: mixed,
expected: mixed,
message?: string,
operator?: string
): void;
static isOk(object: mixed, message?: string): void;
static isNotOk(object: mixed, message?: string): void;
static empty(object: mixed, message?: string): void;
static isEmpty(object: mixed, message?: string): void;
static notEmpty(object: mixed, message?: string): void;
static isNotEmpty(object: mixed, message?: string): void;
static equal(actual: mixed, expected: mixed, message?: string): void;
static notEqual(actual: mixed, expected: mixed, message?: string): void;
static strictEqual(act: mixed, exp: mixed, msg?: string): void;
static notStrictEqual(act: mixed, exp: mixed, msg?: string): void;
static deepEqual(act: mixed, exp: mixed, msg?: string): void;
static notDeepEqual(act: mixed, exp: mixed, msg?: string): void;
static ok(val: mixed, msg?: string): void;
static isTrue(val: mixed, msg?: string): void;
static isNotTrue(val: mixed, msg?: string): void;
static isFalse(val: mixed, msg?: string): void;
static isNotFalse(val: mixed, msg?: string): void;
static isNull(val: mixed, msg?: string): void;
static isNotNull(val: mixed, msg?: string): void;
static isUndefined(val: mixed, msg?: string): void;
static isDefined(val: mixed, msg?: string): void;
static isNaN(val: mixed, msg?: string): void;
static isNotNaN(val: mixed, msg?: string): void;
static isAbove(val: number, abv: number, msg?: string): void;
static isBelow(val: number, blw: number, msg?: string): void;
static exists(val : mixed, msg? : string) : void;
static notExists(val : mixed, msg? : string) : void;
static isAtMost(val: number, atmst: number, msg?: string): void;
static isAtLeast(val: number, atlst: number, msg?: string): void;
static isFunction(val: mixed, msg?: string): void;
static isNotFunction(val: mixed, msg?: string): void;
static isObject(val: mixed, msg?: string): void;
static isNotObject(val: mixed, msg?: string): void;
static isArray(val: mixed, msg?: string): void;
static isNotArray(val: mixed, msg?: string): void;
static isString(val: mixed, msg?: string): void;
static isNotString(val: mixed, msg?: string): void;
static isNumber(val: mixed, msg?: string): void;
static isNotNumber(val: mixed, msg?: string): void;
static isBoolean(val: mixed, msg?: string): void;
static isNotBoolean(val: mixed, msg?: string): void;
static typeOf(val: mixed, type: string, msg?: string): void;
static notTypeOf(val: mixed, type: string, msg?: string): void;
static instanceOf(val: mixed, constructor: Class< * >, msg?: string): void;
static notInstanceOf(val: mixed, constructor: Class< * >, msg?: string): void;
static include(exp: string, inc: mixed, msg?: string): void;
static include<T>(exp: Array<T>, inc: T, msg?: string): void;
static notInclude(exp: string, inc: mixed, msg?: string): void;
static notInclude<T>(exp: Array<T>, inc: T, msg?: string): void;
static deepInclude<T>(haystack : T[] | string, needle : $Shape<T>, msg?: string) : void;
static notDeepInclude<T>(haystack : T[] | string, needle : $Shape<T>, msg?: string) : void;
static match(exp: mixed, re: RegExp, msg?: string): void;
static notMatch(exp: mixed, re: RegExp, msg?: string): void;
static property(obj: Object, prop: string, msg?: string): void;
static notProperty(obj: Object, prop: string, msg?: string): void;
static deepProperty(obj: Object, prop: string, msg?: string): void;
static notDeepProperty(obj: Object, prop: string, msg?: string): void;
static propertyVal(
obj: Object,
prop: string,
val: mixed,
msg?: string
): void;
static propertyNotVal(
obj: Object,
prop: string,
val: mixed,
msg?: string
): void;
static deepPropertyVal(
obj: Object,
prop: string,
val: mixed,
msg?: string
): void;
static deepPropertyNotVal(
obj: Object,
prop: string,
val: mixed,
msg?: string
): void;
static lengthOf(exp: mixed, len: number, msg?: string): void;
static throws<E>(
func: () => any,
err?: Class<E> | Error | RegExp | string,
errorMsgMatcher?: string | RegExp,
msg?: string
): void;
static doesNotThrow<E>(
func: () => any,
err?: Class<E> | Error | RegExp | string,
errorMsgMatcher?: string | RegExp,
msg?: string
): void;
static closeTo(
actual: number,
expected: number,
delta: number,
msg?: string
): void;
static approximately(
actual: number,
expected: number,
delta: number,
msg?: string
): void;
// chai-immutable
static sizeOf(val: mixed, length: number): void;
}
declare var config: {
includeStack: boolean,
showDiff: boolean,
truncateThreshold: number,
...
};
}

View File

@ -1,5 +1,5 @@
// flow-typed signature: bd59b655ec89c675a5f5c2188a37c49d
// flow-typed version: <<STUB>>/crypto-hash_v1.2.2/flow_v0.120.1
// flow-typed signature: c51ef53d90f82520f7f635d7c316e3ad
// flow-typed version: <<STUB>>/crypto-hash_v^1.2.2/flow_v0.130.0
/**
* This is an autogenerated libdef stub for:

251
web3.js/flow-typed/npm/jayson_vx.x.x.js vendored Normal file
View File

@ -0,0 +1,251 @@
// flow-typed signature: 8403af7bdb08869a610e6cf3c8467ca2
// flow-typed version: <<STUB>>/jayson_v^3.4.4/flow_v0.130.0
/**
* This is an autogenerated libdef stub for:
*
* 'jayson'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'jayson' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'jayson/bin/jayson' {
declare module.exports: any;
}
declare module 'jayson/lib/client/browser' {
declare module.exports: any;
}
declare module 'jayson/lib/client/http' {
declare module.exports: any;
}
declare module 'jayson/lib/client/https' {
declare module.exports: any;
}
declare module 'jayson/lib/client' {
declare module.exports: any;
}
declare module 'jayson/lib/client/tcp' {
declare module.exports: any;
}
declare module 'jayson/lib/client/tls' {
declare module.exports: any;
}
declare module 'jayson/lib/generateRequest' {
declare module.exports: any;
}
declare module 'jayson/lib' {
declare module.exports: any;
}
declare module 'jayson/lib/method' {
declare module.exports: any;
}
declare module 'jayson/lib/server/http' {
declare module.exports: any;
}
declare module 'jayson/lib/server/https' {
declare module.exports: any;
}
declare module 'jayson/lib/server' {
declare module.exports: any;
}
declare module 'jayson/lib/server/middleware' {
declare module.exports: any;
}
declare module 'jayson/lib/server/tcp' {
declare module.exports: any;
}
declare module 'jayson/lib/server/tls' {
declare module.exports: any;
}
declare module 'jayson/lib/utils' {
declare module.exports: any;
}
declare module 'jayson/promise' {
declare module.exports: any;
}
declare module 'jayson/promise/lib/client/browser' {
declare module.exports: any;
}
declare module 'jayson/promise/lib/client/http' {
declare module.exports: any;
}
declare module 'jayson/promise/lib/client/https' {
declare module.exports: any;
}
declare module 'jayson/promise/lib/client' {
declare module.exports: any;
}
declare module 'jayson/promise/lib/client/tcp' {
declare module.exports: any;
}
declare module 'jayson/promise/lib/client/tls' {
declare module.exports: any;
}
declare module 'jayson/promise/lib' {
declare module.exports: any;
}
declare module 'jayson/promise/lib/method' {
declare module.exports: any;
}
declare module 'jayson/promise/lib/server' {
declare module.exports: any;
}
declare module 'jayson/promise/lib/utils' {
declare module.exports: any;
}
// Filename aliases
declare module 'jayson/bin/jayson.js' {
declare module.exports: $Exports<'jayson/bin/jayson'>;
}
declare module 'jayson/index' {
declare module.exports: $Exports<'jayson'>;
}
declare module 'jayson/index.js' {
declare module.exports: $Exports<'jayson'>;
}
declare module 'jayson/lib/client/browser/index' {
declare module.exports: $Exports<'jayson/lib/client/browser'>;
}
declare module 'jayson/lib/client/browser/index.js' {
declare module.exports: $Exports<'jayson/lib/client/browser'>;
}
declare module 'jayson/lib/client/http.js' {
declare module.exports: $Exports<'jayson/lib/client/http'>;
}
declare module 'jayson/lib/client/https.js' {
declare module.exports: $Exports<'jayson/lib/client/https'>;
}
declare module 'jayson/lib/client/index' {
declare module.exports: $Exports<'jayson/lib/client'>;
}
declare module 'jayson/lib/client/index.js' {
declare module.exports: $Exports<'jayson/lib/client'>;
}
declare module 'jayson/lib/client/tcp.js' {
declare module.exports: $Exports<'jayson/lib/client/tcp'>;
}
declare module 'jayson/lib/client/tls.js' {
declare module.exports: $Exports<'jayson/lib/client/tls'>;
}
declare module 'jayson/lib/generateRequest.js' {
declare module.exports: $Exports<'jayson/lib/generateRequest'>;
}
declare module 'jayson/lib/index' {
declare module.exports: $Exports<'jayson/lib'>;
}
declare module 'jayson/lib/index.js' {
declare module.exports: $Exports<'jayson/lib'>;
}
declare module 'jayson/lib/method.js' {
declare module.exports: $Exports<'jayson/lib/method'>;
}
declare module 'jayson/lib/server/http.js' {
declare module.exports: $Exports<'jayson/lib/server/http'>;
}
declare module 'jayson/lib/server/https.js' {
declare module.exports: $Exports<'jayson/lib/server/https'>;
}
declare module 'jayson/lib/server/index' {
declare module.exports: $Exports<'jayson/lib/server'>;
}
declare module 'jayson/lib/server/index.js' {
declare module.exports: $Exports<'jayson/lib/server'>;
}
declare module 'jayson/lib/server/middleware.js' {
declare module.exports: $Exports<'jayson/lib/server/middleware'>;
}
declare module 'jayson/lib/server/tcp.js' {
declare module.exports: $Exports<'jayson/lib/server/tcp'>;
}
declare module 'jayson/lib/server/tls.js' {
declare module.exports: $Exports<'jayson/lib/server/tls'>;
}
declare module 'jayson/lib/utils.js' {
declare module.exports: $Exports<'jayson/lib/utils'>;
}
declare module 'jayson/promise/index' {
declare module.exports: $Exports<'jayson/promise'>;
}
declare module 'jayson/promise/index.js' {
declare module.exports: $Exports<'jayson/promise'>;
}
declare module 'jayson/promise/lib/client/browser/index' {
declare module.exports: $Exports<'jayson/promise/lib/client/browser'>;
}
declare module 'jayson/promise/lib/client/browser/index.js' {
declare module.exports: $Exports<'jayson/promise/lib/client/browser'>;
}
declare module 'jayson/promise/lib/client/http.js' {
declare module.exports: $Exports<'jayson/promise/lib/client/http'>;
}
declare module 'jayson/promise/lib/client/https.js' {
declare module.exports: $Exports<'jayson/promise/lib/client/https'>;
}
declare module 'jayson/promise/lib/client/index' {
declare module.exports: $Exports<'jayson/promise/lib/client'>;
}
declare module 'jayson/promise/lib/client/index.js' {
declare module.exports: $Exports<'jayson/promise/lib/client'>;
}
declare module 'jayson/promise/lib/client/tcp.js' {
declare module.exports: $Exports<'jayson/promise/lib/client/tcp'>;
}
declare module 'jayson/promise/lib/client/tls.js' {
declare module.exports: $Exports<'jayson/promise/lib/client/tls'>;
}
declare module 'jayson/promise/lib/index' {
declare module.exports: $Exports<'jayson/promise/lib'>;
}
declare module 'jayson/promise/lib/index.js' {
declare module.exports: $Exports<'jayson/promise/lib'>;
}
declare module 'jayson/promise/lib/method.js' {
declare module.exports: $Exports<'jayson/promise/lib/method'>;
}
declare module 'jayson/promise/lib/server.js' {
declare module.exports: $Exports<'jayson/promise/lib/server'>;
}
declare module 'jayson/promise/lib/utils.js' {
declare module.exports: $Exports<'jayson/promise/lib/utils'>;
}

View File

@ -0,0 +1,39 @@
// flow-typed signature: 3f5253ee300391e662d9c724d020a98e
// flow-typed version: <<STUB>>/js-sha3_v^0.8.0/flow_v0.130.0
/**
* This is an autogenerated libdef stub for:
*
* 'js-sha3'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'js-sha3' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'js-sha3/build/sha3.min' {
declare module.exports: any;
}
declare module 'js-sha3/src/sha3' {
declare module.exports: any;
}
// Filename aliases
declare module 'js-sha3/build/sha3.min.js' {
declare module.exports: $Exports<'js-sha3/build/sha3.min'>;
}
declare module 'js-sha3/src/sha3.js' {
declare module.exports: $Exports<'js-sha3/src/sha3'>;
}

238
web3.js/flow-typed/npm/mocha_v8.x.x.js vendored Normal file
View File

@ -0,0 +1,238 @@
// flow-typed signature: 195cec6dc98ab7533f0eb927ee493f99
// flow-typed version: 1a6d5d1968/mocha_v8.x.x/flow_>=v0.104.x
declare interface $npm$mocha$SetupOptions {
slow?: number;
timeout?: number;
ui?: string;
globals?: Array<any>;
reporter?: any;
bail?: boolean;
ignoreLeaks?: boolean;
grep?: any;
}
declare type $npm$mocha$done = (error?: any) => any;
// declare interface $npm$mocha$SuiteCallbackContext {
// timeout(ms: number): void;
// retries(n: number): void;
// slow(ms: number): void;
// }
// declare interface $npm$mocha$TestCallbackContext {
// skip(): void;
// timeout(ms: number): void;
// retries(n: number): void;
// slow(ms: number): void;
// [index: string]: any;
// }
declare interface $npm$mocha$Suite {
parent: $npm$mocha$Suite;
title: string;
fullTitle(): string;
}
declare type $npm$mocha$ContextDefinition = {|
(description: string, callback: (/* this: $npm$mocha$SuiteCallbackContext */) => void): $npm$mocha$Suite;
only(description: string, callback: (/* this: $npm$mocha$SuiteCallbackContext */) => void): $npm$mocha$Suite;
skip(description: string, callback: (/* this: $npm$mocha$SuiteCallbackContext */) => void): void;
timeout(ms: number): void;
|}
declare type $npm$mocha$TestDefinition = {|
(expectation: string, callback?: (/* this: $npm$mocha$TestCallbackContext, */ done: $npm$mocha$done) => mixed): $npm$mocha$Test;
only(expectation: string, callback?: (/* this: $npm$mocha$TestCallbackContext, */ done: $npm$mocha$done) => mixed): $npm$mocha$Test;
skip(expectation: string, callback?: (/* this: $npm$mocha$TestCallbackContext, */ done: $npm$mocha$done) => mixed): void;
timeout(ms: number): void;
state: 'failed' | 'passed';
|}
declare interface $npm$mocha$Runner {}
declare class $npm$mocha$BaseReporter {
stats: {
suites: number,
tests: number,
passes: number,
pending: number,
failures: number,
...
};
constructor(runner: $npm$mocha$Runner): $npm$mocha$BaseReporter;
}
declare class $npm$mocha$DocReporter extends $npm$mocha$BaseReporter {}
declare class $npm$mocha$DotReporter extends $npm$mocha$BaseReporter {}
declare class $npm$mocha$HTMLReporter extends $npm$mocha$BaseReporter {}
declare class $npm$mocha$HTMLCovReporter extends $npm$mocha$BaseReporter {}
declare class $npm$mocha$JSONReporter extends $npm$mocha$BaseReporter {}
declare class $npm$mocha$JSONCovReporter extends $npm$mocha$BaseReporter {}
declare class $npm$mocha$JSONStreamReporter extends $npm$mocha$BaseReporter {}
declare class $npm$mocha$LandingReporter extends $npm$mocha$BaseReporter {}
declare class $npm$mocha$ListReporter extends $npm$mocha$BaseReporter {}
declare class $npm$mocha$MarkdownReporter extends $npm$mocha$BaseReporter {}
declare class $npm$mocha$MinReporter extends $npm$mocha$BaseReporter {}
declare class $npm$mocha$NyanReporter extends $npm$mocha$BaseReporter {}
declare class $npm$mocha$ProgressReporter extends $npm$mocha$BaseReporter {
constructor(runner: $npm$mocha$Runner, options?: {
open?: string,
complete?: string,
incomplete?: string,
close?: string,
...
}): $npm$mocha$ProgressReporter;
}
declare class $npm$mocha$SpecReporter extends $npm$mocha$BaseReporter {}
declare class $npm$mocha$TAPReporter extends $npm$mocha$BaseReporter {}
declare class $npm$mocha$XUnitReporter extends $npm$mocha$BaseReporter {
constructor(runner: $npm$mocha$Runner, options?: any): $npm$mocha$XUnitReporter;
}
declare class $npm$mocha$Mocha {
currentTest: $npm$mocha$TestDefinition;
constructor(options?: {
grep?: RegExp,
ui?: string,
reporter?: string,
timeout?: number,
reporterOptions?: any,
slow?: number,
bail?: boolean,
...
}): $npm$mocha$Mocha;
setup(options: $npm$mocha$SetupOptions): this;
bail(value?: boolean): this;
addFile(file: string): this;
reporter(name: string): this;
reporter(reporter: (runner: $npm$mocha$Runner, options: any) => any): this;
ui(value: string): this;
grep(value: string): this;
grep(value: RegExp): this;
invert(): this;
ignoreLeaks(value: boolean): this;
checkLeaks(): this;
throwError(error: Error): void;
growl(): this;
globals(value: string): this;
globals(values: Array<string>): this;
useColors(value: boolean): this;
useInlineDiffs(value: boolean): this;
timeout(value: number): this;
slow(value: number): this;
enableTimeouts(value: boolean): this;
asyncOnly(value: boolean): this;
noHighlighting(value: boolean): this;
run(onComplete?: (failures: number) => void): $npm$mocha$Runner;
static reporters: {
Doc: $npm$mocha$DocReporter,
Dot: $npm$mocha$DotReporter,
HTML: $npm$mocha$HTMLReporter,
HTMLCov: $npm$mocha$HTMLCovReporter,
JSON: $npm$mocha$JSONReporter,
JSONCov: $npm$mocha$JSONCovReporter,
JSONStream: $npm$mocha$JSONStreamReporter,
Landing: $npm$mocha$LandingReporter,
List: $npm$mocha$ListReporter,
Markdown: $npm$mocha$MarkdownReporter,
Min: $npm$mocha$MinReporter,
Nyan: $npm$mocha$NyanReporter,
Progress: $npm$mocha$ProgressReporter,
...
};
}
// declare interface $npm$mocha$HookCallbackContext {
// skip(): void;
// timeout(ms: number): void;
// [index: string]: any;
// }
declare interface $npm$mocha$Runnable {
title: string;
fn: Function;
async: boolean;
sync: boolean;
timedOut: boolean;
}
declare interface $npm$mocha$Test extends $npm$mocha$Runnable {
parent: $npm$mocha$Suite;
pending: boolean;
state: 'failed' | 'passed' | void;
fullTitle(): string;
timeout(ms: number): void;
}
// declare interface $npm$mocha$BeforeAndAfterContext extends $npm$mocha$HookCallbackContext {
// currentTest: $npm$mocha$Test;
// }
declare var mocha: $npm$mocha$Mocha;
declare var describe: $npm$mocha$ContextDefinition;
declare var xdescribe: $npm$mocha$ContextDefinition;
declare var context: $npm$mocha$ContextDefinition;
declare var suite: $npm$mocha$ContextDefinition;
declare var it: $npm$mocha$TestDefinition;
declare var xit: $npm$mocha$TestDefinition;
declare var test: $npm$mocha$TestDefinition;
declare var specify: $npm$mocha$TestDefinition;
type Run = () => void;
declare var run: Run;
type Setup = (callback: (/* this: $npm$mocha$BeforeAndAfterContext, */ done: $npm$mocha$done) => mixed) => void;
type Teardown = (callback: (/* this: $npm$mocha$BeforeAndAfterContext, */ done: $npm$mocha$done) => mixed) => void;
type SuiteSetup = (callback: (/* this: $npm$mocha$HookCallbackContext, */ done: $npm$mocha$done) => mixed) => void;
type SuiteTeardown = (callback: (/* this: $npm$mocha$HookCallbackContext, */ done: $npm$mocha$done) => mixed) => void;
type Before =
| (callback: (/* this: $npm$mocha$HookCallbackContext, */ done: $npm$mocha$done) => mixed) => void
| (description: string, callback: (/* this: $npm$mocha$HookCallbackContext, */ done: $npm$mocha$done) => mixed) => void;
type After =
| (callback: (/* this: $npm$mocha$HookCallbackContext, */ done: $npm$mocha$done) => mixed) => void
| (description: string, callback: (/* this: $npm$mocha$HookCallbackContext, */ done: $npm$mocha$done) => mixed) => void;
type BeforeEach =
| (callback: (/* this: $npm$mocha$BeforeAndAfterContext, */ done: $npm$mocha$done) => mixed) => void
| (description: string, callback: (/* this: $npm$mocha$BeforeAndAfterContext, */ done: $npm$mocha$done) => mixed) => void;
type AfterEach =
| (callback: (/* this: $npm$mocha$BeforeAndAfterContext, */ done: $npm$mocha$done) => mixed) => void
| (description: string, callback: (/* this: $npm$mocha$BeforeAndAfterContext, */ done: $npm$mocha$done) => mixed) => void;
declare var setup: Setup;
declare var teardown: Teardown;
declare var suiteSetup: SuiteSetup;
declare var suiteTeardown;
declare var before: Before
declare var after: After;
declare var beforeEach: BeforeEach;
declare var afterEach: AfterEach;
declare module "mocha" {
declare export var mocha: $npm$mocha$TestDefinition;
declare export var describe: $npm$mocha$ContextDefinition;
declare export var xdescribe: $npm$mocha$ContextDefinition;
declare export var context: $npm$mocha$ContextDefinition;
declare export var suite: $npm$mocha$ContextDefinition;
declare export var it: $npm$mocha$TestDefinition;
declare export var xit: $npm$mocha$TestDefinition;
declare export var test: $npm$mocha$TestDefinition;
declare export var specify: $npm$mocha$TestDefinition;
declare export var run: Run;
declare export var setup: Setup;
declare export var teardown: Teardown;
declare export var suiteSetup: SuiteSetup;
declare export var suiteTeardown: SuiteTeardown;
declare export var before: Before;
declare export var after: After;
declare export var beforeEach: BeforeEach;
declare export var afterEach: AfterEach;
declare export default $npm$mocha$Mocha;
}

263
web3.js/flow-typed/npm/mockttp_vx.x.x.js vendored Normal file
View File

@ -0,0 +1,263 @@
// flow-typed signature: e6c04a408e31a0534a8f15ba158400d1
// flow-typed version: <<STUB>>/mockttp_v^1.1.0/flow_v0.130.0
/**
* This is an autogenerated libdef stub for:
*
* 'mockttp'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'mockttp' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'mockttp/dist/client/introspection-query' {
declare module.exports: any;
}
declare module 'mockttp/dist/client/mocked-endpoint-client' {
declare module.exports: any;
}
declare module 'mockttp/dist/client/mockttp-client' {
declare module.exports: any;
}
declare module 'mockttp/dist/main-browser' {
declare module.exports: any;
}
declare module 'mockttp/dist/main' {
declare module.exports: any;
}
declare module 'mockttp/dist/mockttp' {
declare module.exports: any;
}
declare module 'mockttp/dist/rules/base-rule-builder' {
declare module.exports: any;
}
declare module 'mockttp/dist/rules/completion-checkers' {
declare module.exports: any;
}
declare module 'mockttp/dist/rules/matchers' {
declare module.exports: any;
}
declare module 'mockttp/dist/rules/requests/request-handlers' {
declare module.exports: any;
}
declare module 'mockttp/dist/rules/requests/request-rule-builder' {
declare module.exports: any;
}
declare module 'mockttp/dist/rules/requests/request-rule' {
declare module.exports: any;
}
declare module 'mockttp/dist/rules/rule-serialization' {
declare module.exports: any;
}
declare module 'mockttp/dist/rules/websockets/websocket-handlers' {
declare module.exports: any;
}
declare module 'mockttp/dist/rules/websockets/websocket-rule-builder' {
declare module.exports: any;
}
declare module 'mockttp/dist/rules/websockets/websocket-rule' {
declare module.exports: any;
}
declare module 'mockttp/dist/server/http-combo-server' {
declare module.exports: any;
}
declare module 'mockttp/dist/server/mocked-endpoint' {
declare module.exports: any;
}
declare module 'mockttp/dist/server/mockttp-server' {
declare module.exports: any;
}
declare module 'mockttp/dist/standalone/mockttp-standalone' {
declare module.exports: any;
}
declare module 'mockttp/dist/standalone/standalone-bin' {
declare module.exports: any;
}
declare module 'mockttp/dist/standalone/standalone-model' {
declare module.exports: any;
}
declare module 'mockttp/dist/types' {
declare module.exports: any;
}
declare module 'mockttp/dist/util/destroyable-server' {
declare module.exports: any;
}
declare module 'mockttp/dist/util/fs' {
declare module.exports: any;
}
declare module 'mockttp/dist/util/normalize-url' {
declare module.exports: any;
}
declare module 'mockttp/dist/util/promise' {
declare module.exports: any;
}
declare module 'mockttp/dist/util/request-utils' {
declare module.exports: any;
}
declare module 'mockttp/dist/util/serialization' {
declare module.exports: any;
}
declare module 'mockttp/dist/util/socket-util' {
declare module.exports: any;
}
declare module 'mockttp/dist/util/tls' {
declare module.exports: any;
}
declare module 'mockttp/dist/util/type-utils' {
declare module.exports: any;
}
declare module 'mockttp/dist/util/util' {
declare module.exports: any;
}
declare module 'mockttp/docs/runkitExample' {
declare module.exports: any;
}
// Filename aliases
declare module 'mockttp/dist/client/introspection-query.js' {
declare module.exports: $Exports<'mockttp/dist/client/introspection-query'>;
}
declare module 'mockttp/dist/client/mocked-endpoint-client.js' {
declare module.exports: $Exports<'mockttp/dist/client/mocked-endpoint-client'>;
}
declare module 'mockttp/dist/client/mockttp-client.js' {
declare module.exports: $Exports<'mockttp/dist/client/mockttp-client'>;
}
declare module 'mockttp/dist/main-browser.js' {
declare module.exports: $Exports<'mockttp/dist/main-browser'>;
}
declare module 'mockttp/dist/main.js' {
declare module.exports: $Exports<'mockttp/dist/main'>;
}
declare module 'mockttp/dist/mockttp.js' {
declare module.exports: $Exports<'mockttp/dist/mockttp'>;
}
declare module 'mockttp/dist/rules/base-rule-builder.js' {
declare module.exports: $Exports<'mockttp/dist/rules/base-rule-builder'>;
}
declare module 'mockttp/dist/rules/completion-checkers.js' {
declare module.exports: $Exports<'mockttp/dist/rules/completion-checkers'>;
}
declare module 'mockttp/dist/rules/matchers.js' {
declare module.exports: $Exports<'mockttp/dist/rules/matchers'>;
}
declare module 'mockttp/dist/rules/requests/request-handlers.js' {
declare module.exports: $Exports<'mockttp/dist/rules/requests/request-handlers'>;
}
declare module 'mockttp/dist/rules/requests/request-rule-builder.js' {
declare module.exports: $Exports<'mockttp/dist/rules/requests/request-rule-builder'>;
}
declare module 'mockttp/dist/rules/requests/request-rule.js' {
declare module.exports: $Exports<'mockttp/dist/rules/requests/request-rule'>;
}
declare module 'mockttp/dist/rules/rule-serialization.js' {
declare module.exports: $Exports<'mockttp/dist/rules/rule-serialization'>;
}
declare module 'mockttp/dist/rules/websockets/websocket-handlers.js' {
declare module.exports: $Exports<'mockttp/dist/rules/websockets/websocket-handlers'>;
}
declare module 'mockttp/dist/rules/websockets/websocket-rule-builder.js' {
declare module.exports: $Exports<'mockttp/dist/rules/websockets/websocket-rule-builder'>;
}
declare module 'mockttp/dist/rules/websockets/websocket-rule.js' {
declare module.exports: $Exports<'mockttp/dist/rules/websockets/websocket-rule'>;
}
declare module 'mockttp/dist/server/http-combo-server.js' {
declare module.exports: $Exports<'mockttp/dist/server/http-combo-server'>;
}
declare module 'mockttp/dist/server/mocked-endpoint.js' {
declare module.exports: $Exports<'mockttp/dist/server/mocked-endpoint'>;
}
declare module 'mockttp/dist/server/mockttp-server.js' {
declare module.exports: $Exports<'mockttp/dist/server/mockttp-server'>;
}
declare module 'mockttp/dist/standalone/mockttp-standalone.js' {
declare module.exports: $Exports<'mockttp/dist/standalone/mockttp-standalone'>;
}
declare module 'mockttp/dist/standalone/standalone-bin.js' {
declare module.exports: $Exports<'mockttp/dist/standalone/standalone-bin'>;
}
declare module 'mockttp/dist/standalone/standalone-model.js' {
declare module.exports: $Exports<'mockttp/dist/standalone/standalone-model'>;
}
declare module 'mockttp/dist/types.js' {
declare module.exports: $Exports<'mockttp/dist/types'>;
}
declare module 'mockttp/dist/util/destroyable-server.js' {
declare module.exports: $Exports<'mockttp/dist/util/destroyable-server'>;
}
declare module 'mockttp/dist/util/fs.js' {
declare module.exports: $Exports<'mockttp/dist/util/fs'>;
}
declare module 'mockttp/dist/util/normalize-url.js' {
declare module.exports: $Exports<'mockttp/dist/util/normalize-url'>;
}
declare module 'mockttp/dist/util/promise.js' {
declare module.exports: $Exports<'mockttp/dist/util/promise'>;
}
declare module 'mockttp/dist/util/request-utils.js' {
declare module.exports: $Exports<'mockttp/dist/util/request-utils'>;
}
declare module 'mockttp/dist/util/serialization.js' {
declare module.exports: $Exports<'mockttp/dist/util/serialization'>;
}
declare module 'mockttp/dist/util/socket-util.js' {
declare module.exports: $Exports<'mockttp/dist/util/socket-util'>;
}
declare module 'mockttp/dist/util/tls.js' {
declare module.exports: $Exports<'mockttp/dist/util/tls'>;
}
declare module 'mockttp/dist/util/type-utils.js' {
declare module.exports: $Exports<'mockttp/dist/util/type-utils'>;
}
declare module 'mockttp/dist/util/util.js' {
declare module.exports: $Exports<'mockttp/dist/util/util'>;
}
declare module 'mockttp/docs/runkitExample.js' {
declare module.exports: $Exports<'mockttp/docs/runkitExample'>;
}

73
web3.js/flow-typed/npm/mz_vx.x.x.js vendored Normal file
View File

@ -0,0 +1,73 @@
// flow-typed signature: 13be1c0af46f0b45a9b2f67afe924e06
// flow-typed version: <<STUB>>/mz_v^2.7.0/flow_v0.130.0
/**
* This is an autogenerated libdef stub for:
*
* 'mz'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'mz' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'mz/child_process' {
declare module.exports: any;
}
declare module 'mz/crypto' {
declare module.exports: any;
}
declare module 'mz/dns' {
declare module.exports: any;
}
declare module 'mz/fs' {
declare module.exports: any;
}
declare module 'mz/readline' {
declare module.exports: any;
}
declare module 'mz/zlib' {
declare module.exports: any;
}
// Filename aliases
declare module 'mz/child_process.js' {
declare module.exports: $Exports<'mz/child_process'>;
}
declare module 'mz/crypto.js' {
declare module.exports: $Exports<'mz/crypto'>;
}
declare module 'mz/dns.js' {
declare module.exports: $Exports<'mz/dns'>;
}
declare module 'mz/fs.js' {
declare module.exports: $Exports<'mz/fs'>;
}
declare module 'mz/index' {
declare module.exports: $Exports<'mz'>;
}
declare module 'mz/index.js' {
declare module.exports: $Exports<'mz'>;
}
declare module 'mz/readline.js' {
declare module.exports: $Exports<'mz/readline'>;
}
declare module 'mz/zlib.js' {
declare module.exports: $Exports<'mz/zlib'>;
}

View File

@ -0,0 +1,133 @@
// flow-typed signature: 800c99f4687ac083d3ed2dd6b9ee9457
// flow-typed version: 711a5f887a/node-fetch_v2.x.x/flow_>=v0.104.x
declare module 'node-fetch' {
import type http from 'http';
import type https from 'https';
import type { URL } from 'url';
import type { Readable } from 'stream';
declare export type AbortSignal = {
+aborted: boolean;
+onabort: (event?: { ... }) => void;
+addEventListener: (name: string, cb: () => mixed) => void;
+removeEventListener: (name: string, cb: () => mixed) => void;
+dispatchEvent: (event: { ... }) => void;
...,
}
declare export class Request mixins Body {
constructor(input: string | { href: string, ... } | Request, init?: RequestInit): this;
context: RequestContext;
headers: Headers;
method: string;
redirect: RequestRedirect;
referrer: string;
url: string;
// node-fetch extensions
agent: http.Agent | https.Agent;
compress: boolean;
counter: number;
follow: number;
hostname: string;
port: number;
protocol: string;
size: number;
timeout: number;
}
declare type HeaderObject = { [index: string]: string, ... }
declare type RequestInit = {|
body?: BodyInit,
headers?: HeaderObject,
method?: string,
redirect?: RequestRedirect,
signal?: AbortSignal | null,
// node-fetch extensions
agent?: (URL => (http.Agent | https.Agent)) | http.Agent | https.Agent | null;
compress?: boolean,
follow?: number,
size?: number,
timeout?: number,
|};
declare export interface FetchError extends Error {
name: 'FetchError';
type: string;
code: ?number;
errno: ?number;
}
declare export interface AbortError extends Error {
name: 'AbortError';
type: 'aborted';
}
declare type RequestContext =
'audio' | 'beacon' | 'cspreport' | 'download' | 'embed' |
'eventsource' | 'favicon' | 'fetch' | 'font' | 'form' | 'frame' |
'hyperlink' | 'iframe' | 'image' | 'imageset' | 'import' |
'internal' | 'location' | 'manifest' | 'object' | 'ping' | 'plugin' |
'prefetch' | 'script' | 'serviceworker' | 'sharedworker' |
'subresource' | 'style' | 'track' | 'video' | 'worker' |
'xmlhttprequest' | 'xslt';
declare type RequestRedirect = 'error' | 'follow' | 'manual';
declare export class Headers {
append(name: string, value: string): void;
delete(name: string): void;
forEach(callback: (value: string, name: string) => void): void;
get(name: string): string;
getAll(name: string): Array<string>;
has(name: string): boolean;
raw(): { [k: string]: string[], ... };
set(name: string, value: string): void;
}
declare export class Body {
buffer(): Promise<Buffer>;
json(): Promise<any>;
json<T>(): Promise<T>;
text(): Promise<string>;
body: stream$Readable;
bodyUsed: boolean;
}
declare export class Response mixins Body {
constructor(body?: BodyInit, init?: ResponseInit): this;
clone(): Response;
error(): Response;
redirect(url: string, status: number): Response;
headers: Headers;
ok: boolean;
status: number;
statusText: string;
size: number;
timeout: number;
type: ResponseType;
url: string;
}
declare type ResponseType =
| 'basic'
| 'cors'
| 'default'
| 'error'
| 'opaque'
| 'opaqueredirect';
declare interface ResponseInit {
headers?: HeaderInit,
status: number,
statusText?: string,
}
declare type HeaderInit = Headers | Array<string>;
declare type BodyInit = string | null | Buffer | Blob | Readable;
declare export default function fetch(url: string | Request, init?: RequestInit): Promise<Response>
}

View File

@ -0,0 +1,150 @@
// flow-typed signature: f1593e42a1e3a50eb251415b72e1305b
// flow-typed version: <<STUB>>/rpc-websockets_v^7.4.2/flow_v0.130.0
/**
* This is an autogenerated libdef stub for:
*
* 'rpc-websockets'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'rpc-websockets' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'rpc-websockets/build-ts/index.browser' {
declare module.exports: any;
}
declare module 'rpc-websockets/build-ts' {
declare module.exports: any;
}
declare module 'rpc-websockets/build-ts/lib/client' {
declare module.exports: any;
}
declare module 'rpc-websockets/build-ts/lib/client/client.types' {
declare module.exports: any;
}
declare module 'rpc-websockets/build-ts/lib/client/websocket.browser' {
declare module.exports: any;
}
declare module 'rpc-websockets/build-ts/lib/client/websocket' {
declare module.exports: any;
}
declare module 'rpc-websockets/build-ts/lib/server' {
declare module.exports: any;
}
declare module 'rpc-websockets/build-ts/lib/utils' {
declare module.exports: any;
}
declare module 'rpc-websockets/dist/index.browser-bundle' {
declare module.exports: any;
}
declare module 'rpc-websockets/dist/index.browser' {
declare module.exports: any;
}
declare module 'rpc-websockets/dist' {
declare module.exports: any;
}
declare module 'rpc-websockets/dist/lib/client' {
declare module.exports: any;
}
declare module 'rpc-websockets/dist/lib/client/client.types' {
declare module.exports: any;
}
declare module 'rpc-websockets/dist/lib/client/websocket.browser' {
declare module.exports: any;
}
declare module 'rpc-websockets/dist/lib/client/websocket' {
declare module.exports: any;
}
declare module 'rpc-websockets/dist/lib/server' {
declare module.exports: any;
}
declare module 'rpc-websockets/dist/lib/utils' {
declare module.exports: any;
}
// Filename aliases
declare module 'rpc-websockets/build-ts/index.browser.js' {
declare module.exports: $Exports<'rpc-websockets/build-ts/index.browser'>;
}
declare module 'rpc-websockets/build-ts/index' {
declare module.exports: $Exports<'rpc-websockets/build-ts'>;
}
declare module 'rpc-websockets/build-ts/index.js' {
declare module.exports: $Exports<'rpc-websockets/build-ts'>;
}
declare module 'rpc-websockets/build-ts/lib/client.js' {
declare module.exports: $Exports<'rpc-websockets/build-ts/lib/client'>;
}
declare module 'rpc-websockets/build-ts/lib/client/client.types.js' {
declare module.exports: $Exports<'rpc-websockets/build-ts/lib/client/client.types'>;
}
declare module 'rpc-websockets/build-ts/lib/client/websocket.browser.js' {
declare module.exports: $Exports<'rpc-websockets/build-ts/lib/client/websocket.browser'>;
}
declare module 'rpc-websockets/build-ts/lib/client/websocket.js' {
declare module.exports: $Exports<'rpc-websockets/build-ts/lib/client/websocket'>;
}
declare module 'rpc-websockets/build-ts/lib/server.js' {
declare module.exports: $Exports<'rpc-websockets/build-ts/lib/server'>;
}
declare module 'rpc-websockets/build-ts/lib/utils.js' {
declare module.exports: $Exports<'rpc-websockets/build-ts/lib/utils'>;
}
declare module 'rpc-websockets/dist/index.browser-bundle.js' {
declare module.exports: $Exports<'rpc-websockets/dist/index.browser-bundle'>;
}
declare module 'rpc-websockets/dist/index.browser.js' {
declare module.exports: $Exports<'rpc-websockets/dist/index.browser'>;
}
declare module 'rpc-websockets/dist/index' {
declare module.exports: $Exports<'rpc-websockets/dist'>;
}
declare module 'rpc-websockets/dist/index.js' {
declare module.exports: $Exports<'rpc-websockets/dist'>;
}
declare module 'rpc-websockets/dist/lib/client.js' {
declare module.exports: $Exports<'rpc-websockets/dist/lib/client'>;
}
declare module 'rpc-websockets/dist/lib/client/client.types.js' {
declare module.exports: $Exports<'rpc-websockets/dist/lib/client/client.types'>;
}
declare module 'rpc-websockets/dist/lib/client/websocket.browser.js' {
declare module.exports: $Exports<'rpc-websockets/dist/lib/client/websocket.browser'>;
}
declare module 'rpc-websockets/dist/lib/client/websocket.js' {
declare module.exports: $Exports<'rpc-websockets/dist/lib/client/websocket'>;
}
declare module 'rpc-websockets/dist/lib/server.js' {
declare module.exports: $Exports<'rpc-websockets/dist/lib/server'>;
}
declare module 'rpc-websockets/dist/lib/utils.js' {
declare module.exports: $Exports<'rpc-websockets/dist/lib/utils'>;
}

View File

@ -0,0 +1,62 @@
// flow-typed signature: 010ed80dfa77343a07cd101a9453f460
// flow-typed version: <<STUB>>/secp256k1_v^4.0.2/flow_v0.130.0
/**
* This is an autogenerated libdef stub for:
*
* 'secp256k1'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'secp256k1' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'secp256k1/bindings' {
declare module.exports: any;
}
declare module 'secp256k1/elliptic' {
declare module.exports: any;
}
declare module 'secp256k1/lib/elliptic' {
declare module.exports: any;
}
declare module 'secp256k1/lib' {
declare module.exports: any;
}
// Filename aliases
declare module 'secp256k1/bindings.js' {
declare module.exports: $Exports<'secp256k1/bindings'>;
}
declare module 'secp256k1/elliptic.js' {
declare module.exports: $Exports<'secp256k1/elliptic'>;
}
declare module 'secp256k1/index' {
declare module.exports: $Exports<'secp256k1'>;
}
declare module 'secp256k1/index.js' {
declare module.exports: $Exports<'secp256k1'>;
}
declare module 'secp256k1/lib/elliptic.js' {
declare module.exports: $Exports<'secp256k1/lib/elliptic'>;
}
declare module 'secp256k1/lib/index' {
declare module.exports: $Exports<'secp256k1/lib'>;
}
declare module 'secp256k1/lib/index.js' {
declare module.exports: $Exports<'secp256k1/lib'>;
}

340
web3.js/flow-typed/npm/sinon_vx.x.x.js vendored Normal file
View File

@ -0,0 +1,340 @@
// flow-typed signature: be25eb3acc001250afea0eb7dacd26f6
// flow-typed version: <<STUB>>/sinon_v^9.2.4/flow_v0.130.0
/**
* This is an autogenerated libdef stub for:
*
* 'sinon'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'sinon' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'sinon/lib/sinon-esm' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/assert' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/behavior' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/blob' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/collect-own-methods' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/color' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/create-sandbox' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/default-behaviors' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/fake' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/mock-expectation' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/mock' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/proxy-call-util' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/proxy-call' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/proxy-invoke' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/proxy' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/restore-object' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/sandbox' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/spy-formatters' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/spy' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/stub' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/throw-on-falsy-object' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/util/core/default-config' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/util/core/export-async-behaviors' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/util/core/extend' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/util/core/format' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/util/core/function-to-string' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/util/core/get-config' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/util/core/get-next-tick' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/util/core/get-property-descriptor' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/util/core/is-es-module' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/util/core/is-non-existent-property' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/util/core/is-property-configurable' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/util/core/is-restorable' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/util/core/next-tick' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/util/core/restore' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/util/core/times-in-words' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/util/core/use-promise-library' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/util/core/walk-object' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/util/core/walk' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/util/core/wrap-method' {
declare module.exports: any;
}
declare module 'sinon/lib/sinon/util/fake-timers' {
declare module.exports: any;
}
declare module 'sinon/pkg/sinon-esm' {
declare module.exports: any;
}
declare module 'sinon/pkg/sinon-no-sourcemaps' {
declare module.exports: any;
}
declare module 'sinon/pkg/sinon' {
declare module.exports: any;
}
// Filename aliases
declare module 'sinon/lib/sinon-esm.js' {
declare module.exports: $Exports<'sinon/lib/sinon-esm'>;
}
declare module 'sinon/lib/sinon.js' {
declare module.exports: $Exports<'sinon/lib/sinon'>;
}
declare module 'sinon/lib/sinon/assert.js' {
declare module.exports: $Exports<'sinon/lib/sinon/assert'>;
}
declare module 'sinon/lib/sinon/behavior.js' {
declare module.exports: $Exports<'sinon/lib/sinon/behavior'>;
}
declare module 'sinon/lib/sinon/blob.js' {
declare module.exports: $Exports<'sinon/lib/sinon/blob'>;
}
declare module 'sinon/lib/sinon/collect-own-methods.js' {
declare module.exports: $Exports<'sinon/lib/sinon/collect-own-methods'>;
}
declare module 'sinon/lib/sinon/color.js' {
declare module.exports: $Exports<'sinon/lib/sinon/color'>;
}
declare module 'sinon/lib/sinon/create-sandbox.js' {
declare module.exports: $Exports<'sinon/lib/sinon/create-sandbox'>;
}
declare module 'sinon/lib/sinon/default-behaviors.js' {
declare module.exports: $Exports<'sinon/lib/sinon/default-behaviors'>;
}
declare module 'sinon/lib/sinon/fake.js' {
declare module.exports: $Exports<'sinon/lib/sinon/fake'>;
}
declare module 'sinon/lib/sinon/mock-expectation.js' {
declare module.exports: $Exports<'sinon/lib/sinon/mock-expectation'>;
}
declare module 'sinon/lib/sinon/mock.js' {
declare module.exports: $Exports<'sinon/lib/sinon/mock'>;
}
declare module 'sinon/lib/sinon/proxy-call-util.js' {
declare module.exports: $Exports<'sinon/lib/sinon/proxy-call-util'>;
}
declare module 'sinon/lib/sinon/proxy-call.js' {
declare module.exports: $Exports<'sinon/lib/sinon/proxy-call'>;
}
declare module 'sinon/lib/sinon/proxy-invoke.js' {
declare module.exports: $Exports<'sinon/lib/sinon/proxy-invoke'>;
}
declare module 'sinon/lib/sinon/proxy.js' {
declare module.exports: $Exports<'sinon/lib/sinon/proxy'>;
}
declare module 'sinon/lib/sinon/restore-object.js' {
declare module.exports: $Exports<'sinon/lib/sinon/restore-object'>;
}
declare module 'sinon/lib/sinon/sandbox.js' {
declare module.exports: $Exports<'sinon/lib/sinon/sandbox'>;
}
declare module 'sinon/lib/sinon/spy-formatters.js' {
declare module.exports: $Exports<'sinon/lib/sinon/spy-formatters'>;
}
declare module 'sinon/lib/sinon/spy.js' {
declare module.exports: $Exports<'sinon/lib/sinon/spy'>;
}
declare module 'sinon/lib/sinon/stub.js' {
declare module.exports: $Exports<'sinon/lib/sinon/stub'>;
}
declare module 'sinon/lib/sinon/throw-on-falsy-object.js' {
declare module.exports: $Exports<'sinon/lib/sinon/throw-on-falsy-object'>;
}
declare module 'sinon/lib/sinon/util/core/default-config.js' {
declare module.exports: $Exports<'sinon/lib/sinon/util/core/default-config'>;
}
declare module 'sinon/lib/sinon/util/core/export-async-behaviors.js' {
declare module.exports: $Exports<'sinon/lib/sinon/util/core/export-async-behaviors'>;
}
declare module 'sinon/lib/sinon/util/core/extend.js' {
declare module.exports: $Exports<'sinon/lib/sinon/util/core/extend'>;
}
declare module 'sinon/lib/sinon/util/core/format.js' {
declare module.exports: $Exports<'sinon/lib/sinon/util/core/format'>;
}
declare module 'sinon/lib/sinon/util/core/function-to-string.js' {
declare module.exports: $Exports<'sinon/lib/sinon/util/core/function-to-string'>;
}
declare module 'sinon/lib/sinon/util/core/get-config.js' {
declare module.exports: $Exports<'sinon/lib/sinon/util/core/get-config'>;
}
declare module 'sinon/lib/sinon/util/core/get-next-tick.js' {
declare module.exports: $Exports<'sinon/lib/sinon/util/core/get-next-tick'>;
}
declare module 'sinon/lib/sinon/util/core/get-property-descriptor.js' {
declare module.exports: $Exports<'sinon/lib/sinon/util/core/get-property-descriptor'>;
}
declare module 'sinon/lib/sinon/util/core/is-es-module.js' {
declare module.exports: $Exports<'sinon/lib/sinon/util/core/is-es-module'>;
}
declare module 'sinon/lib/sinon/util/core/is-non-existent-property.js' {
declare module.exports: $Exports<'sinon/lib/sinon/util/core/is-non-existent-property'>;
}
declare module 'sinon/lib/sinon/util/core/is-property-configurable.js' {
declare module.exports: $Exports<'sinon/lib/sinon/util/core/is-property-configurable'>;
}
declare module 'sinon/lib/sinon/util/core/is-restorable.js' {
declare module.exports: $Exports<'sinon/lib/sinon/util/core/is-restorable'>;
}
declare module 'sinon/lib/sinon/util/core/next-tick.js' {
declare module.exports: $Exports<'sinon/lib/sinon/util/core/next-tick'>;
}
declare module 'sinon/lib/sinon/util/core/restore.js' {
declare module.exports: $Exports<'sinon/lib/sinon/util/core/restore'>;
}
declare module 'sinon/lib/sinon/util/core/times-in-words.js' {
declare module.exports: $Exports<'sinon/lib/sinon/util/core/times-in-words'>;
}
declare module 'sinon/lib/sinon/util/core/use-promise-library.js' {
declare module.exports: $Exports<'sinon/lib/sinon/util/core/use-promise-library'>;
}
declare module 'sinon/lib/sinon/util/core/walk-object.js' {
declare module.exports: $Exports<'sinon/lib/sinon/util/core/walk-object'>;
}
declare module 'sinon/lib/sinon/util/core/walk.js' {
declare module.exports: $Exports<'sinon/lib/sinon/util/core/walk'>;
}
declare module 'sinon/lib/sinon/util/core/wrap-method.js' {
declare module.exports: $Exports<'sinon/lib/sinon/util/core/wrap-method'>;
}
declare module 'sinon/lib/sinon/util/fake-timers.js' {
declare module.exports: $Exports<'sinon/lib/sinon/util/fake-timers'>;
}
declare module 'sinon/pkg/sinon-esm.js' {
declare module.exports: $Exports<'sinon/pkg/sinon-esm'>;
}
declare module 'sinon/pkg/sinon-no-sourcemaps.js' {
declare module.exports: $Exports<'sinon/pkg/sinon-no-sourcemaps'>;
}
declare module 'sinon/pkg/sinon.js' {
declare module.exports: $Exports<'sinon/pkg/sinon'>;
}

View File

@ -0,0 +1,56 @@
// flow-typed signature: 93e1c7b898500d4a0bfe05d7e7bdd0b9
// flow-typed version: <<STUB>>/superstruct_v^0.8.3/flow_v0.130.0
/**
* This is an autogenerated libdef stub for:
*
* 'superstruct'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'superstruct' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'superstruct/lib/index.es' {
declare module.exports: any;
}
declare module 'superstruct/lib' {
declare module.exports: any;
}
declare module 'superstruct/umd/superstruct' {
declare module.exports: any;
}
declare module 'superstruct/umd/superstruct.min' {
declare module.exports: any;
}
// Filename aliases
declare module 'superstruct/lib/index.es.js' {
declare module.exports: $Exports<'superstruct/lib/index.es'>;
}
declare module 'superstruct/lib/index' {
declare module.exports: $Exports<'superstruct/lib'>;
}
declare module 'superstruct/lib/index.js' {
declare module.exports: $Exports<'superstruct/lib'>;
}
declare module 'superstruct/umd/superstruct.js' {
declare module.exports: $Exports<'superstruct/umd/superstruct'>;
}
declare module 'superstruct/umd/superstruct.min.js' {
declare module.exports: $Exports<'superstruct/umd/superstruct.min'>;
}

View File

@ -0,0 +1,53 @@
// flow-typed signature: 607d90b805d229d69250b382713c4087
// flow-typed version: <<STUB>>/tweetnacl_v^1.0.0/flow_v0.130.0
/**
* This is an autogenerated libdef stub for:
*
* 'tweetnacl'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'tweetnacl' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'tweetnacl/nacl-fast' {
declare module.exports: any;
}
declare module 'tweetnacl/nacl-fast.min' {
declare module.exports: any;
}
declare module 'tweetnacl/nacl' {
declare module.exports: any;
}
declare module 'tweetnacl/nacl.min' {
declare module.exports: any;
}
// Filename aliases
declare module 'tweetnacl/nacl-fast.js' {
declare module.exports: $Exports<'tweetnacl/nacl-fast'>;
}
declare module 'tweetnacl/nacl-fast.min.js' {
declare module.exports: $Exports<'tweetnacl/nacl-fast.min'>;
}
declare module 'tweetnacl/nacl.js' {
declare module.exports: $Exports<'tweetnacl/nacl'>;
}
declare module 'tweetnacl/nacl.min.js' {
declare module.exports: $Exports<'tweetnacl/nacl.min'>;
}