,
- property: (
- name: string,
- value?: P,
- message?: string
- ) => ExpectChain
& ((name: string) => ExpectChain),
- length: ExpectChain & ((value: number, message?: string) => ExpectChain),
- lengthOf: (value: number, message?: string) => ExpectChain,
- match: (regex: RegExp, message?: string) => ExpectChain,
- matches: (regex: RegExp, message?: string) => ExpectChain,
- string: (string: string, message?: string) => ExpectChain,
- key: (key: string) => ExpectChain,
- keys: (
- key: string | Array,
- ...keys: Array
- ) => ExpectChain,
- throw: (
- err?: Class | Error | RegExp | string,
- errMsgMatcher?: RegExp | string,
- msg?: string
- ) => ExpectChain,
- respondTo: (method: string, message?: string) => ExpectChain,
- itself: ExpectChain,
- satisfy: (method: (value: T) => boolean, message?: string) => ExpectChain,
- closeTo: (expected: T & number, delta: number, message?: string) => ExpectChain,
- members: (set: mixed, message?: string) => ExpectChain,
- oneOf: (list: Array, message?: string) => ExpectChain,
- change: (obj: mixed, key: string, message?: string) => ExpectChain,
- increase: (obj: mixed, key: string, message?: string) => ExpectChain,
- decrease: (obj: mixed, key: string, message?: string) => ExpectChain,
- by: (delta: number, message?: string) => ExpectChain,
- ordered: ExpectChain,
- // dirty-chai
- ok: () => ExpectChain,
- true: () => ExpectChain,
- false: () => ExpectChain,
- null: () => ExpectChain,
- undefined: () => ExpectChain,
- exist: () => ExpectChain,
- empty: () => ExpectChain,
- extensible: () => ExpectChain,
- sealed: () => ExpectChain,
- frozen: () => ExpectChain,
- NaN: () => ExpectChain,
- // chai-immutable
- size: (n: number) => ExpectChain,
- // sinon-chai
- called: () => ExpectChain,
- callCount: (n: number) => ExpectChain,
- calledOnce: () => ExpectChain,
- calledTwice: () => ExpectChain,
- calledThrice: () => ExpectChain,
- calledBefore: (spy: mixed) => ExpectChain,
- calledAfter: (spy: mixed) => ExpectChain,
- calledImmediatelyBefore: (spy: mixed) => ExpectChain,
- calledImmediatelyAfter: (spy: mixed) => ExpectChain,
- calledWith: (...args: Array) => ExpectChain,
- calledOnceWith: (...args: Array) => ExpectChain,
- calledWithMatch: (...args: Array) => ExpectChain,
- calledWithExactly: (...args: Array) => ExpectChain,
- calledOnceWithExactly: (...args: Array) => ExpectChain,
- returned: (returnVal: mixed) => ExpectChain,
- alwaysReturned: (returnVal: mixed) => ExpectChain,
- // chai-as-promised
- eventually: ExpectChain,
- resolvedWith: (value: mixed) => Promise & ExpectChain,
- resolved: () => Promise & ExpectChain,
- rejectedWith: (
- value: mixed,
- errMsgMatcher?: RegExp | string,
- msg?: string
- ) => Promise & ExpectChain,
- rejected: () => Promise & ExpectChain,
- notify: (callback: () => mixed) => ExpectChain,
- fulfilled: () => Promise & ExpectChain,
- // chai-subset
- containSubset: (obj: {...} | Array< {...} >) => ExpectChain,
- // chai-redux-mock-store
- dispatchedActions: (
- actions: Array<{...} | ((action: {...}) => any)>
- ) => ExpectChain,
- dispatchedTypes: (actions: Array) => ExpectChain,
- // chai-enzyme
- attr: (key: string, val?: any) => ExpectChain,
- data: (key: string, val?: any) => ExpectChain,
- prop: (key: string, val?: any) => ExpectChain,
- state: (key: string, val?: any) => ExpectChain,
- value: (val: string) => ExpectChain,
- className: (val: string) => ExpectChain,
- text: (val: string) => ExpectChain,
- // chai-karma-snapshot
- matchSnapshot: (lang?: any, update?: boolean, msg?: any) => ExpectChain,
- ...
- };
-
-
- declare var expect: {
- (actual: T, message?: string): ExpectChain,
- 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(exp: Array, inc: T, msg?: string): void;
-
- static notInclude(exp: string, inc: mixed, msg?: string): void;
- static notInclude(exp: Array, inc: T, msg?: string): void;
-
- static deepInclude(haystack : T[] | string, needle : $Shape, msg?: string) : void;
- static notDeepInclude(haystack : T[] | string, needle : $Shape, 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(
- func: () => any,
- err?: Class | Error | RegExp | string,
- errorMsgMatcher?: string | RegExp,
- msg?: string
- ): void;
- static doesNotThrow(
- func: () => any,
- err?: Class | 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,
- ...
- };
-}
diff --git a/web3.js/flow-typed/npm/crypto-hash_vx.x.x.js b/web3.js/flow-typed/npm/crypto-hash_vx.x.x.js
deleted file mode 100644
index 9df2f839dd..0000000000
--- a/web3.js/flow-typed/npm/crypto-hash_vx.x.x.js
+++ /dev/null
@@ -1,45 +0,0 @@
-// flow-typed signature: c51ef53d90f82520f7f635d7c316e3ad
-// flow-typed version: <>/crypto-hash_v^1.2.2/flow_v0.130.0
-
-/**
- * This is an autogenerated libdef stub for:
- *
- * 'crypto-hash'
- *
- * 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 'crypto-hash' {
- 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 'crypto-hash/browser' {
- declare module.exports: any;
-}
-
-declare module 'crypto-hash/thread' {
- declare module.exports: any;
-}
-
-// Filename aliases
-declare module 'crypto-hash/browser.js' {
- declare module.exports: $Exports<'crypto-hash/browser'>;
-}
-declare module 'crypto-hash/index' {
- declare module.exports: $Exports<'crypto-hash'>;
-}
-declare module 'crypto-hash/index.js' {
- declare module.exports: $Exports<'crypto-hash'>;
-}
-declare module 'crypto-hash/thread.js' {
- declare module.exports: $Exports<'crypto-hash/thread'>;
-}
diff --git a/web3.js/flow-typed/npm/jayson_vx.x.x.js b/web3.js/flow-typed/npm/jayson_vx.x.x.js
deleted file mode 100644
index 5b04577b7e..0000000000
--- a/web3.js/flow-typed/npm/jayson_vx.x.x.js
+++ /dev/null
@@ -1,251 +0,0 @@
-// flow-typed signature: 8403af7bdb08869a610e6cf3c8467ca2
-// flow-typed version: <>/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'>;
-}
diff --git a/web3.js/flow-typed/npm/js-sha3_vx.x.x.js b/web3.js/flow-typed/npm/js-sha3_vx.x.x.js
deleted file mode 100644
index 54aaec2c29..0000000000
--- a/web3.js/flow-typed/npm/js-sha3_vx.x.x.js
+++ /dev/null
@@ -1,39 +0,0 @@
-// flow-typed signature: 3f5253ee300391e662d9c724d020a98e
-// flow-typed version: <>/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'>;
-}
diff --git a/web3.js/flow-typed/npm/mocha_v8.x.x.js b/web3.js/flow-typed/npm/mocha_v8.x.x.js
deleted file mode 100644
index 7affb5c0c2..0000000000
--- a/web3.js/flow-typed/npm/mocha_v8.x.x.js
+++ /dev/null
@@ -1,238 +0,0 @@
-// 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;
- 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): 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;
-}
diff --git a/web3.js/flow-typed/npm/mockttp_vx.x.x.js b/web3.js/flow-typed/npm/mockttp_vx.x.x.js
deleted file mode 100644
index 801bffe046..0000000000
--- a/web3.js/flow-typed/npm/mockttp_vx.x.x.js
+++ /dev/null
@@ -1,263 +0,0 @@
-// flow-typed signature: e6c04a408e31a0534a8f15ba158400d1
-// flow-typed version: <>/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'>;
-}
diff --git a/web3.js/flow-typed/npm/mz_vx.x.x.js b/web3.js/flow-typed/npm/mz_vx.x.x.js
deleted file mode 100644
index aadd70d977..0000000000
--- a/web3.js/flow-typed/npm/mz_vx.x.x.js
+++ /dev/null
@@ -1,73 +0,0 @@
-// flow-typed signature: 13be1c0af46f0b45a9b2f67afe924e06
-// flow-typed version: <>/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'>;
-}
diff --git a/web3.js/flow-typed/npm/node-fetch_v2.x.x.js b/web3.js/flow-typed/npm/node-fetch_v2.x.x.js
deleted file mode 100644
index 3f37f21b73..0000000000
--- a/web3.js/flow-typed/npm/node-fetch_v2.x.x.js
+++ /dev/null
@@ -1,133 +0,0 @@
-// 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;
- has(name: string): boolean;
- raw(): { [k: string]: string[], ... };
- set(name: string, value: string): void;
- }
-
- declare export class Body {
- buffer(): Promise;
- json(): Promise;
- json(): Promise;
- text(): Promise;
- 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;
- declare type BodyInit = string | null | Buffer | Blob | Readable;
-
- declare export default function fetch(url: string | Request, init?: RequestInit): Promise
-}
diff --git a/web3.js/flow-typed/npm/rpc-websockets_vx.x.x.js b/web3.js/flow-typed/npm/rpc-websockets_vx.x.x.js
deleted file mode 100644
index dfdcebe135..0000000000
--- a/web3.js/flow-typed/npm/rpc-websockets_vx.x.x.js
+++ /dev/null
@@ -1,150 +0,0 @@
-// flow-typed signature: f1593e42a1e3a50eb251415b72e1305b
-// flow-typed version: <>/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'>;
-}
diff --git a/web3.js/flow-typed/npm/secp256k1_vx.x.x.js b/web3.js/flow-typed/npm/secp256k1_vx.x.x.js
deleted file mode 100644
index 389c5887cb..0000000000
--- a/web3.js/flow-typed/npm/secp256k1_vx.x.x.js
+++ /dev/null
@@ -1,62 +0,0 @@
-// flow-typed signature: 010ed80dfa77343a07cd101a9453f460
-// flow-typed version: <>/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'>;
-}
diff --git a/web3.js/flow-typed/npm/sinon_vx.x.x.js b/web3.js/flow-typed/npm/sinon_vx.x.x.js
deleted file mode 100644
index 877d495832..0000000000
--- a/web3.js/flow-typed/npm/sinon_vx.x.x.js
+++ /dev/null
@@ -1,340 +0,0 @@
-// flow-typed signature: be25eb3acc001250afea0eb7dacd26f6
-// flow-typed version: <>/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'>;
-}
diff --git a/web3.js/flow-typed/npm/superstruct_vx.x.x.js b/web3.js/flow-typed/npm/superstruct_vx.x.x.js
deleted file mode 100644
index 079264dba2..0000000000
--- a/web3.js/flow-typed/npm/superstruct_vx.x.x.js
+++ /dev/null
@@ -1,56 +0,0 @@
-// flow-typed signature: 93e1c7b898500d4a0bfe05d7e7bdd0b9
-// flow-typed version: <>/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'>;
-}
diff --git a/web3.js/flow-typed/npm/tweetnacl_vx.x.x.js b/web3.js/flow-typed/npm/tweetnacl_vx.x.x.js
deleted file mode 100644
index 55012a5051..0000000000
--- a/web3.js/flow-typed/npm/tweetnacl_vx.x.x.js
+++ /dev/null
@@ -1,53 +0,0 @@
-// flow-typed signature: 607d90b805d229d69250b382713c4087
-// flow-typed version: <>/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'>;
-}
diff --git a/web3.js/module.d.ts b/web3.js/module.d.ts
deleted file mode 100644
index dfcca026f5..0000000000
--- a/web3.js/module.d.ts
+++ /dev/null
@@ -1,1132 +0,0 @@
-declare module '@solana/web3.js' {
- import {Buffer} from 'buffer';
- import * as BufferLayout from 'buffer-layout';
-
- // === src/publickey.js ===
- export const MAX_SEED_LENGTH: number;
- export type PublicKeyNonce = [PublicKey, number];
- export class PublicKey {
- constructor(value: number | string | Buffer | Uint8Array | Array);
- static isPublicKey(o: object): boolean;
- static createWithSeed(
- fromPublicKey: PublicKey,
- seed: string,
- programId: PublicKey,
- ): Promise;
- static createProgramAddress(
- seeds: Array,
- programId: PublicKey,
- ): Promise;
- static findProgramAddress(
- seeds: Array,
- programId: PublicKey,
- ): Promise;
- equals(publickey: PublicKey): boolean;
- toBase58(): string;
- toBuffer(): Buffer;
- toString(): string;
- }
-
- // === src/blockhash.js ===
- export type Blockhash = string;
-
- // === src/account.js ===
- export class Account {
- constructor(secretKey?: Buffer | Uint8Array | Array);
- publicKey: PublicKey;
- secretKey: Buffer;
- }
-
- // === src/fee-calculator.js ===
- export type FeeCalculator = {
- lamportsPerSignature: number;
- };
-
- // === src/connection.js ===
- export type Context = {
- slot: number;
- };
-
- export type SendOptions = {
- skipPreflight?: boolean;
- preflightCommitment?: Commitment;
- };
-
- export type ConfirmOptions = {
- commitment?: Commitment;
- skipPreflight?: boolean;
- preflightCommitment?: Commitment;
- };
-
- export type ConfirmedSignaturesForAddress2Options = {
- before?: TransactionSignature;
- limit?: number;
- };
-
- export type TokenAccountsFilter =
- | {
- mint: PublicKey;
- }
- | {
- programId: PublicKey;
- };
-
- export type RpcResponseAndContext = {
- context: Context;
- value: T;
- };
-
- export type Commitment =
- | 'processed'
- | 'confirmed'
- | 'finalized'
- | 'recent' // Deprecated as of v1.5.5
- | 'single' // Deprecated as of v1.5.5
- | 'singleGossip' // Deprecated as of v1.5.5
- | 'root' // Deprecated as of v1.5.5
- | 'max'; // Deprecated as of v1.5.5
-
- export type LargestAccountsFilter = 'circulating' | 'nonCirculating';
-
- export type GetLargestAccountsConfig = {
- commitment?: Commitment;
- filter?: LargestAccountsFilter;
- };
-
- export type SignatureStatusConfig = {
- searchTransactionHistory: boolean;
- };
-
- export type TransactionConfirmationStatus =
- | 'processed'
- | 'confirmed'
- | 'finalized';
-
- export type SignatureStatus = {
- slot: number;
- err: TransactionError | null;
- confirmations: number | null;
- confirmationStatus?: TransactionConfirmationStatus;
- };
-
- export type ConfirmedSignatureInfo = {
- signature: string;
- slot: number;
- err: TransactionError | null;
- memo: string | null;
- blockTime?: number | null;
- };
-
- export type BlockhashAndFeeCalculator = {
- blockhash: Blockhash;
- feeCalculator: FeeCalculator;
- };
-
- export type PublicKeyAndAccount = {
- pubkey: PublicKey;
- account: AccountInfo;
- };
-
- export type AccountInfo = {
- executable: boolean;
- owner: PublicKey;
- lamports: number;
- data: T;
- rentEpoch?: number;
- };
-
- export type ContactInfo = {
- pubkey: string;
- gossip?: string;
- tpu?: string;
- rpc?: string;
- version?: string;
- };
-
- export type SimulatedTransactionResponse = {
- err: TransactionError | string | null;
- logs: Array | null;
- };
-
- export type CompiledInnerInstruction = {
- index: number;
- instructions: CompiledInstruction[];
- };
-
- export type TokenBalance = {
- accountIndex: number;
- mint: string;
- uiTokenAmount: TokenAmount;
- };
-
- export type ConfirmedTransactionMeta = {
- fee: number;
- innerInstructions?: CompiledInnerInstruction[];
- preBalances: Array;
- postBalances: Array;
- logMessages?: Array;
- preTokenBalances?: Array;
- postTokenBalances?: Array;
- err: TransactionError | null;
- };
-
- export type ParsedInnerInstruction = {
- index: number;
- instructions: (ParsedInstruction | PartiallyDecodedInstruction)[];
- };
-
- export type ParsedConfirmedTransactionMeta = {
- fee: number;
- innerInstructions?: ParsedInnerInstruction[];
- preBalances: Array;
- postBalances: Array;
- logMessages?: Array;
- preTokenBalances?: Array;
- postTokenBalances?: Array;
- err: TransactionError | null;
- };
-
- export type ConfirmedBlock = {
- blockhash: Blockhash;
- previousBlockhash: Blockhash;
- parentSlot: number;
- transactions: Array<{
- transaction: Transaction;
- meta: ConfirmedTransactionMeta | null;
- }>;
- rewards: Array<{
- pubkey: string;
- lamports: number;
- postBalance: number | null;
- rewardType: string | null;
- }>;
- };
-
- export type PerfSample = {
- slot: number;
- numTransactions: number;
- numSlots: number;
- samplePeriodSecs: number;
- };
-
- export type ConfirmedTransaction = {
- slot: number;
- transaction: Transaction;
- meta: ConfirmedTransactionMeta | null;
- blockTime?: number | null;
- };
-
- export type ParsedMessageAccount = {
- pubkey: PublicKey;
- signer: boolean;
- writable: boolean;
- };
-
- export type ParsedInstruction = {
- programId: PublicKey;
- program: string;
- parsed: string;
- };
-
- export type PartiallyDecodedInstruction = {
- programId: PublicKey;
- accounts: Array;
- data: string;
- };
-
- export type ParsedTransaction = {
- signatures: Array;
- message: {
- accountKeys: ParsedMessageAccount[];
- instructions: (ParsedInstruction | PartiallyDecodedInstruction)[];
- recentBlockhash: string;
- };
- };
-
- export type ParsedConfirmedTransaction = {
- slot: number;
- transaction: ParsedTransaction;
- meta: ParsedConfirmedTransactionMeta | null;
- };
-
- export type ParsedAccountData = {
- program: string;
- parsed: any;
- space: number;
- };
-
- export type StakeActivationData = {
- state: 'active' | 'inactive' | 'activating' | 'deactivating';
- active: number;
- inactive: number;
- };
-
- export type KeyedAccountInfo = {
- accountId: PublicKey;
- accountInfo: AccountInfo;
- };
-
- export type Version = {
- 'solana-core': string;
- 'feature-set'?: number;
- };
-
- export type VoteAccountInfo = {
- votePubkey: string;
- nodePubkey: string;
- stake: number;
- commission: number;
- };
-
- export type SlotInfo = {
- parent: number;
- slot: number;
- root: number;
- };
-
- export type TokenAmount = {
- uiAmount: number | null;
- decimals: number;
- amount: string;
- uiAmountString?: string;
- };
-
- export type TokenAccountBalancePair = {
- address: PublicKey;
- amount: string;
- decimals: number;
- uiAmount: number | null;
- uiAmountString?: string;
- };
-
- export type AccountChangeCallback = (
- accountInfo: AccountInfo,
- context: Context,
- ) => void;
- export type ProgramAccountChangeCallback = (
- keyedAccountInfo: KeyedAccountInfo,
- context: Context,
- ) => void;
- export type SlotChangeCallback = (slotInfo: SlotInfo) => void;
- export type SignatureResultCallback = (
- signatureResult: SignatureResult,
- context: Context,
- ) => void;
- export type RootChangeCallback = (root: number) => void;
-
- export type TransactionError = object;
- export type SignatureResult = {
- err: TransactionError | null;
- };
-
- export type InflationGovernor = {
- foundation: number;
- foundationTerm: number;
- initial: number;
- taper: number;
- terminal: number;
- };
-
- export type EpochInfo = {
- epoch: number;
- slotIndex: number;
- slotsInEpoch: number;
- absoluteSlot: number;
- blockHeight?: number;
- };
-
- export type EpochSchedule = {
- slotsPerEpoch: number;
- leaderScheduleSlotOffset: number;
- warmup: boolean;
- firstNormalEpoch: number;
- firstNormalSlot: number;
- };
-
- export type LeaderSchedule = {
- [address: string]: number[];
- };
-
- export type Supply = {
- total: number;
- circulating: number;
- nonCirculating: number;
- nonCirculatingAccounts: Array;
- };
-
- export type AccountBalancePair = {
- address: PublicKey;
- lamports: number;
- };
-
- export type VoteAccountStatus = {
- current: Array;
- delinquent: Array;
- };
-
- export class Connection {
- constructor(endpoint: string, commitment?: Commitment);
- commitment?: Commitment;
- getAccountInfoAndContext(
- publicKey: PublicKey,
- commitment?: Commitment,
- ): Promise | null>>;
- getAccountInfo(
- publicKey: PublicKey,
- commitment?: Commitment,
- ): Promise | null>;
- getParsedAccountInfo(
- publicKey: PublicKey,
- commitment?: Commitment,
- ): Promise<
- RpcResponseAndContext | null>
- >;
- getStakeActivation(
- publicKey: PublicKey,
- commitment?: Commitment,
- epoch?: number,
- ): Promise;
- getProgramAccounts(
- programId: PublicKey,
- commitment?: Commitment,
- ): Promise>>;
- getParsedProgramAccounts(
- programId: PublicKey,
- commitment?: Commitment,
- ): Promise>>;
- getBalanceAndContext(
- publicKey: PublicKey,
- commitment?: Commitment,
- ): Promise>;
- getBalance(publicKey: PublicKey, commitment?: Commitment): Promise;
- getBlockTime(slot: number): Promise;
- getMinimumLedgerSlot(): Promise;
- getFirstAvailableBlock(): Promise;
- getSupply(commitment?: Commitment): Promise>;
- getTokenSupply(
- tokenMintAddress: PublicKey,
- commitment?: Commitment,
- ): Promise>;
- getTokenAccountBalance(
- tokenAddress: PublicKey,
- commitment?: Commitment,
- ): Promise>;
- getTokenAccountsByOwner(
- ownerAddress: PublicKey,
- filter: TokenAccountsFilter,
- commitment?: Commitment,
- ): Promise<
- RpcResponseAndContext<
- Array<{pubkey: PublicKey; account: AccountInfo}>
- >
- >;
- getParsedTokenAccountsByOwner(
- ownerAddress: PublicKey,
- filter: TokenAccountsFilter,
- commitment?: Commitment,
- ): Promise<
- RpcResponseAndContext<
- Array<{pubkey: PublicKey; account: AccountInfo}>
- >
- >;
- getLargestAccounts(
- config?: GetLargestAccountsConfig,
- ): Promise>>;
- getTokenLargestAccounts(
- mintAddress: PublicKey,
- commitment?: Commitment,
- ): Promise>>;
- getClusterNodes(): Promise>;
- getConfirmedBlock(slot: number): Promise;
- getConfirmedTransaction(
- signature: TransactionSignature,
- ): Promise;
- getParsedConfirmedTransaction(
- signature: TransactionSignature,
- ): Promise;
- getConfirmedSignaturesForAddress(
- address: PublicKey,
- startSlot: number,
- endSlot: number,
- ): Promise>;
- getConfirmedSignaturesForAddress2(
- address: PublicKey,
- options?: ConfirmedSignaturesForAddress2Options,
- ): Promise>;
- getVoteAccounts(commitment?: Commitment): Promise;
- confirmTransaction(
- signature: TransactionSignature,
- commitment?: Commitment,
- ): Promise>;
- getSlot(commitment?: Commitment): Promise;
- getSlotLeader(commitment?: Commitment): Promise;
- getSignatureStatus(
- signature: TransactionSignature,
- config?: SignatureStatusConfig,
- ): Promise>;
- getSignatureStatuses(
- signatures: Array,
- config?: SignatureStatusConfig,
- ): Promise>>;
- getTransactionCount(commitment?: Commitment): Promise;
- getTotalSupply(commitment?: Commitment): Promise;
- getVersion(): Promise;
- getInflationGovernor(commitment?: Commitment): Promise;
- getLeaderSchedule(): Promise;
- getEpochSchedule(): Promise;
- getEpochInfo(commitment?: Commitment): Promise;
- getRecentBlockhashAndContext(
- commitment?: Commitment,
- ): Promise>;
- getRecentPerformanceSamples(limit?: number): Promise>;
- getFeeCalculatorForBlockhash(
- blockhash: Blockhash,
- commitment?: Commitment,
- ): Promise>;
- getRecentBlockhash(
- commitment?: Commitment,
- ): Promise;
- requestAirdrop(
- to: PublicKey,
- amount: number,
- ): Promise;
- sendTransaction(
- transaction: Transaction,
- signers: Array,
- options?: SendOptions,
- ): Promise;
- sendEncodedTransaction(
- encodedTransaction: string,
- options?: SendOptions,
- ): Promise;
- sendRawTransaction(
- wireTransaction: Buffer | Uint8Array | Array,
- options?: SendOptions,
- ): Promise;
- simulateTransaction(
- transaction: Transaction,
- signers?: Array,
- ): Promise>;
- onAccountChange(
- publickey: PublicKey,
- callback: AccountChangeCallback,
- commitment?: Commitment,
- ): number;
- removeAccountChangeListener(id: number): Promise;
- onProgramAccountChange(
- programId: PublicKey,
- callback: ProgramAccountChangeCallback,
- commitment?: Commitment,
- ): number;
- removeProgramAccountChangeListener(id: number): Promise;
- onSlotChange(callback: SlotChangeCallback): number;
- removeSlotChangeListener(id: number): Promise;
- onSignature(
- signature: TransactionSignature,
- callback: SignatureResultCallback,
- commitment?: Commitment,
- ): number;
- removeSignatureListener(id: number): Promise;
- onRootChange(callback: RootChangeCallback): number;
- removeRootChangeListener(id: number): Promise