feat: adding react components (#74)
* feat: adding react components * fix: ignore react files on build
This commit is contained in:
parent
97c1131fc5
commit
a0bf6d0764
|
@ -22,6 +22,8 @@ module.exports = api => {
|
|||
corejs: 3
|
||||
}
|
||||
],
|
||||
"@babel/plugin-transform-react-jsx",
|
||||
"@babel/plugin-proposal-export-default-from",
|
||||
"@babel/plugin-proposal-class-properties",
|
||||
"@babel/plugin-proposal-private-methods",
|
||||
"@babel/plugin-proposal-nullish-coalescing-operator",
|
||||
|
@ -49,6 +51,8 @@ module.exports = api => {
|
|||
useESModules: true
|
||||
}
|
||||
],
|
||||
"@babel/plugin-transform-react-jsx",
|
||||
"@babel/plugin-proposal-export-default-from",
|
||||
"@babel/plugin-proposal-class-properties",
|
||||
"@babel/plugin-proposal-private-methods",
|
||||
"@babel/plugin-proposal-nullish-coalescing-operator",
|
||||
|
@ -76,6 +80,8 @@ module.exports = api => {
|
|||
useESModules: true
|
||||
}
|
||||
],
|
||||
"@babel/plugin-transform-react-jsx",
|
||||
"@babel/plugin-proposal-export-default-from",
|
||||
"@babel/plugin-proposal-class-properties",
|
||||
"@babel/plugin-proposal-private-methods",
|
||||
"@babel/plugin-proposal-nullish-coalescing-operator",
|
||||
|
|
17
package.json
17
package.json
|
@ -30,10 +30,10 @@
|
|||
"scripts": {
|
||||
"lint": "eslint 'src/**/*.js'",
|
||||
"clean": "rimraf dist; rimraf lib; rimraf module; rimraf react;",
|
||||
"build:browser": "cross-env BABEL_ENV=browser babel ./src --out-dir ./lib --source-maps --copy-files --ignore src/react/*",
|
||||
"build:browser": "cross-env BABEL_ENV=browser babel ./src --out-dir ./lib --source-maps --copy-files --ignore ./src/react/**/*",
|
||||
"build:react": "cross-env BABEL_ENV=browser babel ./src/react --out-dir ./react --source-maps --copy-files",
|
||||
"build:module": "cross-env BABEL_ENV=module babel ./src --out-dir ./module --source-maps --copy-files",
|
||||
"build:node": "babel ./src --out-dir ./dist --source-maps --copy-files",
|
||||
"build:module": "cross-env BABEL_ENV=module babel ./src --out-dir ./module --source-maps --copy-files --ignore ./src/react/**/*",
|
||||
"build:node": "babel ./src --out-dir ./dist --source-maps --copy-files --ignore ./src/react/**/*",
|
||||
"build": "npm-run-all clean build:*",
|
||||
"test": "jest"
|
||||
},
|
||||
|
@ -41,10 +41,12 @@
|
|||
"@babel/cli": "^7.8.4",
|
||||
"@babel/core": "^7.8.4",
|
||||
"@babel/plugin-proposal-class-properties": "^7.8.3",
|
||||
"@babel/plugin-proposal-export-default-from": "^7.8.3",
|
||||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",
|
||||
"@babel/plugin-proposal-optional-chaining": "^7.8.3",
|
||||
"@babel/plugin-proposal-private-methods": "^7.8.3",
|
||||
"@babel/plugin-transform-runtime": "^7.8.3",
|
||||
"@babel/plugin-transform-react-jsx": "^7.8.3",
|
||||
"@babel/preset-env": "^7.8.4",
|
||||
"babel-eslint": "^10.0.3",
|
||||
"babel-jest": "24.9.0",
|
||||
|
@ -64,16 +66,17 @@
|
|||
"hex2dec": "^1.1.2",
|
||||
"keccak": "^3.0.0",
|
||||
"lokijs": "^1.5.6",
|
||||
"object-hash": "^2.0.1",
|
||||
"rxjs": "^6.5.2",
|
||||
"web3-eth": "^1.2.6"
|
||||
"object-hash": "^2.0.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"graphql": "^14.4.2",
|
||||
"graphql-tag": "^2.10.1",
|
||||
"graphql-tools": "^4.0.5",
|
||||
"react": "^16.9.0",
|
||||
"reactive-graphql": "^3.0.2"
|
||||
"react-dom": "^16.9.0",
|
||||
"reactive-graphql": "^3.0.2",
|
||||
"rxjs": "^6.5.2",
|
||||
"web3": "^1.2.1"
|
||||
},
|
||||
"jest": {
|
||||
"collectCoverage": true,
|
||||
|
|
|
@ -0,0 +1,30 @@
|
|||
import React, {useState, useEffect} from "react";
|
||||
import PropTypes from "prop-types";
|
||||
import Subspace from "../index";
|
||||
import SubspaceContext from "./subspaceContext";
|
||||
|
||||
const SubspaceProvider = ({children, provider}) => {
|
||||
const [subspace, setSubspace] = useState();
|
||||
|
||||
useEffect(() => {
|
||||
const s = new Subspace(provider);
|
||||
s.init();
|
||||
|
||||
setSubspace(s);
|
||||
}, [provider]);
|
||||
|
||||
if (!subspace) return null;
|
||||
|
||||
return <SubspaceContext.Provider value={subspace}>{children}</SubspaceContext.Provider>;
|
||||
};
|
||||
|
||||
SubspaceProvider.defaultProps = {
|
||||
children: null
|
||||
};
|
||||
|
||||
SubspaceProvider.propTypes = {
|
||||
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),
|
||||
provider: PropTypes.object.isRequired
|
||||
};
|
||||
|
||||
export default SubspaceProvider;
|
|
@ -1,81 +1,4 @@
|
|||
import React, {Component} from "react";
|
||||
import {isObservable} from "rxjs";
|
||||
|
||||
export function observe(WrappedComponent) {
|
||||
return class extends Component {
|
||||
state = {
|
||||
observedValues: {},
|
||||
subscriptions: {}
|
||||
};
|
||||
|
||||
unsubscribe = prop => {
|
||||
const subscriptions = {...this.state.subscriptions};
|
||||
if (subscriptions[prop]) subscriptions[prop].unsubscribe();
|
||||
delete subscriptions[prop];
|
||||
|
||||
this.setState({subscriptions});
|
||||
};
|
||||
|
||||
subscribeToProp = prop => {
|
||||
if (!isObservable(this.props[prop])) return;
|
||||
|
||||
const subscription = this.props[prop].subscribe(
|
||||
value => {
|
||||
this.setState(state => ({
|
||||
observedValues: {
|
||||
...state.observedValues,
|
||||
[prop]: value
|
||||
}
|
||||
}));
|
||||
},
|
||||
err => {
|
||||
// TODO: pass the error to the wrapped component
|
||||
console.error(err);
|
||||
}
|
||||
);
|
||||
|
||||
this.setState({
|
||||
subscriptions: {
|
||||
...this.state.subscriptions,
|
||||
[prop]: subscription
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
componentDidMount() {
|
||||
Object.keys(this.props).forEach(this.subscribeToProp);
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
Object.keys(this.state.subscriptions).forEach(subscription => {
|
||||
this.unsubscribe(subscription);
|
||||
});
|
||||
}
|
||||
|
||||
componentDidUpdate(prevProps) {
|
||||
Object.keys(prevProps).forEach(prop => {
|
||||
if (!prevProps[prop] && this.props[prop]) {
|
||||
this.subscribeToProp(prop);
|
||||
} else if (prevProps[prop] !== this.props[prop]) {
|
||||
this.unsubscribe(prop);
|
||||
this.subscribeToProp(prop);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
render() {
|
||||
const props = Object.keys(this.props).reduce((accum, curr) => {
|
||||
if (!isObservable(this.props[curr])) {
|
||||
accum[curr] = this.props[curr];
|
||||
return accum;
|
||||
}
|
||||
return accum;
|
||||
}, {});
|
||||
|
||||
return React.createElement(WrappedComponent, {
|
||||
...props,
|
||||
...this.state.observedValues
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
||||
export SubspaceProvider from "./SubspaceProvider";
|
||||
export withSubspace from "./withSubspace";
|
||||
export useSubspace from "./useSubspace";
|
||||
export observe from "./observe";
|
||||
|
|
|
@ -0,0 +1,81 @@
|
|||
import React, {Component} from "react";
|
||||
import {isObservable} from "rxjs";
|
||||
|
||||
export function observe(WrappedComponent) {
|
||||
return class extends Component {
|
||||
state = {
|
||||
observedValues: {},
|
||||
subscriptions: {}
|
||||
};
|
||||
|
||||
unsubscribe = prop => {
|
||||
const subscriptions = {...this.state.subscriptions};
|
||||
if (subscriptions[prop]) subscriptions[prop].unsubscribe();
|
||||
delete subscriptions[prop];
|
||||
|
||||
this.setState({subscriptions});
|
||||
};
|
||||
|
||||
subscribeToProp = prop => {
|
||||
if (!isObservable(this.props[prop])) return;
|
||||
|
||||
const subscription = this.props[prop].subscribe(
|
||||
value => {
|
||||
this.setState(state => ({
|
||||
observedValues: {
|
||||
...state.observedValues,
|
||||
[prop]: value
|
||||
}
|
||||
}));
|
||||
},
|
||||
err => {
|
||||
// TODO: pass the error to the wrapped component
|
||||
console.error(err);
|
||||
}
|
||||
);
|
||||
|
||||
this.setState({
|
||||
subscriptions: {
|
||||
...this.state.subscriptions,
|
||||
[prop]: subscription
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
componentDidMount() {
|
||||
Object.keys(this.props).forEach(this.subscribeToProp);
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
Object.keys(this.state.subscriptions).forEach(subscription => {
|
||||
this.unsubscribe(subscription);
|
||||
});
|
||||
}
|
||||
|
||||
componentDidUpdate(prevProps) {
|
||||
Object.keys(prevProps).forEach(prop => {
|
||||
if (!prevProps[prop] && this.props[prop]) {
|
||||
this.subscribeToProp(prop);
|
||||
} else if (prevProps[prop] !== this.props[prop]) {
|
||||
this.unsubscribe(prop);
|
||||
this.subscribeToProp(prop);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
render() {
|
||||
const props = Object.keys(this.props).reduce((accum, curr) => {
|
||||
if (!isObservable(this.props[curr])) {
|
||||
accum[curr] = this.props[curr];
|
||||
return accum;
|
||||
}
|
||||
return accum;
|
||||
}, {});
|
||||
|
||||
return React.createElement(WrappedComponent, {
|
||||
...props,
|
||||
...this.state.observedValues
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
import React from "react";
|
||||
|
||||
const SubspaceContext = React.createContext();
|
||||
|
||||
export default SubspaceContext;
|
|
@ -0,0 +1,16 @@
|
|||
import {useContext} from "react";
|
||||
import SubspaceContext from "./subspaceContext";
|
||||
|
||||
const useSubspace = () => {
|
||||
const subspace = useContext(SubspaceContext);
|
||||
|
||||
if (!subspace) {
|
||||
throw new Error(
|
||||
"could not find subspace context value; please ensure the component is wrapped in a <SubspaceProvider>"
|
||||
);
|
||||
}
|
||||
|
||||
return subspace;
|
||||
};
|
||||
|
||||
export default useSubspace;
|
|
@ -0,0 +1,11 @@
|
|||
import React from "react";
|
||||
import SubspaceContext from "./subspaceContext";
|
||||
|
||||
/* eslint-disable react/display-name */
|
||||
const withSubspace = WrappedComponent => props => (
|
||||
<SubspaceContext.Consumer>
|
||||
{subspace => <WrappedComponent subspace={subspace} {...props} />}
|
||||
</SubspaceContext.Consumer>
|
||||
);
|
||||
|
||||
export default withSubspace;
|
256
yarn.lock
256
yarn.lock
|
@ -80,6 +80,14 @@
|
|||
"@babel/helper-explode-assignable-expression" "^7.8.3"
|
||||
"@babel/types" "^7.8.3"
|
||||
|
||||
"@babel/helper-builder-react-jsx@^7.8.3":
|
||||
version "7.8.3"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-builder-react-jsx/-/helper-builder-react-jsx-7.8.3.tgz#dee98d7d79cc1f003d80b76fe01c7f8945665ff6"
|
||||
integrity sha512-JT8mfnpTkKNCboTqZsQTdGo3l3Ik3l7QIt9hh0O9DYiwVel37VoJpILKM4YFbP2euF32nkQSb+F9cUk9b7DDXQ==
|
||||
dependencies:
|
||||
"@babel/types" "^7.8.3"
|
||||
esutils "^2.0.0"
|
||||
|
||||
"@babel/helper-call-delegate@^7.8.3":
|
||||
version "7.8.3"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-call-delegate/-/helper-call-delegate-7.8.3.tgz#de82619898aa605d409c42be6ffb8d7204579692"
|
||||
|
@ -299,6 +307,14 @@
|
|||
"@babel/helper-plugin-utils" "^7.8.3"
|
||||
"@babel/plugin-syntax-dynamic-import" "^7.8.0"
|
||||
|
||||
"@babel/plugin-proposal-export-default-from@^7.8.3":
|
||||
version "7.8.3"
|
||||
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.8.3.tgz#4cb7c2fdeaed490b60d9bfd3dc8a20f81f9c2e7c"
|
||||
integrity sha512-PYtv2S2OdCdp7GSPDg5ndGZFm9DmWFvuLoS5nBxZCgOBggluLnhTScspJxng96alHQzPyrrHxvC9/w4bFuspeA==
|
||||
dependencies:
|
||||
"@babel/helper-plugin-utils" "^7.8.3"
|
||||
"@babel/plugin-syntax-export-default-from" "^7.8.3"
|
||||
|
||||
"@babel/plugin-proposal-json-strings@^7.8.3":
|
||||
version "7.8.3"
|
||||
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.8.3.tgz#da5216b238a98b58a1e05d6852104b10f9a70d6b"
|
||||
|
@ -369,6 +385,13 @@
|
|||
dependencies:
|
||||
"@babel/helper-plugin-utils" "^7.8.0"
|
||||
|
||||
"@babel/plugin-syntax-export-default-from@^7.8.3":
|
||||
version "7.8.3"
|
||||
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-export-default-from/-/plugin-syntax-export-default-from-7.8.3.tgz#f1e55ce850091442af4ba9c2550106035b29d678"
|
||||
integrity sha512-a1qnnsr73KLNIQcQlcQ4ZHxqqfBKM6iNQZW2OMTyxNbA2WC7SHWHtGVpFzWtQAuS2pspkWVzdEBXXx8Ik0Za4w==
|
||||
dependencies:
|
||||
"@babel/helper-plugin-utils" "^7.8.3"
|
||||
|
||||
"@babel/plugin-syntax-json-strings@^7.8.0":
|
||||
version "7.8.3"
|
||||
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz#01ca21b668cd8218c9e640cb6dd88c5412b2c96a"
|
||||
|
@ -376,6 +399,13 @@
|
|||
dependencies:
|
||||
"@babel/helper-plugin-utils" "^7.8.0"
|
||||
|
||||
"@babel/plugin-syntax-jsx@^7.8.3":
|
||||
version "7.8.3"
|
||||
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.8.3.tgz#521b06c83c40480f1e58b4fd33b92eceb1d6ea94"
|
||||
integrity sha512-WxdW9xyLgBdefoo0Ynn3MRSkhe5tFVxxKNVdnZSh318WrG2e2jH+E9wd/++JsqcLJZPfz87njQJ8j2Upjm0M0A==
|
||||
dependencies:
|
||||
"@babel/helper-plugin-utils" "^7.8.3"
|
||||
|
||||
"@babel/plugin-syntax-nullish-coalescing-operator@^7.8.0":
|
||||
version "7.8.3"
|
||||
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz#167ed70368886081f74b5c36c65a88c03b66d1a9"
|
||||
|
@ -597,6 +627,15 @@
|
|||
dependencies:
|
||||
"@babel/helper-plugin-utils" "^7.8.3"
|
||||
|
||||
"@babel/plugin-transform-react-jsx@^7.8.3":
|
||||
version "7.8.3"
|
||||
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.8.3.tgz#4220349c0390fdefa505365f68c103562ab2fc4a"
|
||||
integrity sha512-r0h+mUiyL595ikykci+fbwm9YzmuOrUBi0b+FDIKmi3fPQyFokWVEMJnRWHJPPQEjyFJyna9WZC6Viv6UHSv1g==
|
||||
dependencies:
|
||||
"@babel/helper-builder-react-jsx" "^7.8.3"
|
||||
"@babel/helper-plugin-utils" "^7.8.3"
|
||||
"@babel/plugin-syntax-jsx" "^7.8.3"
|
||||
|
||||
"@babel/plugin-transform-regenerator@^7.8.3":
|
||||
version "7.8.3"
|
||||
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.8.3.tgz#b31031e8059c07495bf23614c97f3d9698bc6ec8"
|
||||
|
@ -3491,7 +3530,7 @@ estraverse@^4.0.0, estraverse@^4.1.0, estraverse@^4.1.1, estraverse@^4.2.0:
|
|||
resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d"
|
||||
integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==
|
||||
|
||||
esutils@^2.0.2:
|
||||
esutils@^2.0.0, esutils@^2.0.2:
|
||||
version "2.0.3"
|
||||
resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64"
|
||||
integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==
|
||||
|
@ -3572,15 +3611,6 @@ eth-lib@^0.1.26:
|
|||
ws "^3.0.0"
|
||||
xhr-request-promise "^0.1.2"
|
||||
|
||||
eth-lib@^0.2.8:
|
||||
version "0.2.8"
|
||||
resolved "https://registry.yarnpkg.com/eth-lib/-/eth-lib-0.2.8.tgz#b194058bef4b220ad12ea497431d6cb6aa0623c8"
|
||||
integrity sha512-ArJ7x1WcWOlSpzdoTBX8vkwlkSQ85CjjifSZtV4co64vWxSV8geWfPI9x4SVYu3DSxnX4yWFVTtGL+j9DUFLNw==
|
||||
dependencies:
|
||||
bn.js "^4.11.6"
|
||||
elliptic "^6.4.0"
|
||||
xhr-request-promise "^0.1.2"
|
||||
|
||||
eth-query@^2.0.2, eth-query@^2.1.0, eth-query@^2.1.2:
|
||||
version "2.1.2"
|
||||
resolved "https://registry.yarnpkg.com/eth-query/-/eth-query-2.1.2.tgz#d6741d9000106b51510c72db92d6365456a6da5e"
|
||||
|
@ -7896,7 +7926,7 @@ rustbn.js@~0.2.0:
|
|||
resolved "https://registry.yarnpkg.com/rustbn.js/-/rustbn.js-0.2.0.tgz#8082cb886e707155fd1cb6f23bd591ab8d55d0ca"
|
||||
integrity sha512-4VlvkRUuCJvr2J6Y0ImW7NvTCriMi7ErOAqWk1y69vAdoNIzCF3yPmgeNzx+RQTLEDFq5sHfscn1MwHxP9hNfA==
|
||||
|
||||
rxjs@^6.5.2, rxjs@^6.5.3:
|
||||
rxjs@^6.5.3:
|
||||
version "6.5.4"
|
||||
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.5.4.tgz#e0777fe0d184cec7872df147f303572d414e211c"
|
||||
integrity sha512-naMQXcgEo3csAEGvw/NydRA0fuS2nDZJiw1YUWFKU7aPPAPGZEsD4Iimit96qwCieH6y614MCLYwdkrWx7z/7Q==
|
||||
|
@ -9203,15 +9233,6 @@ web3-core-helpers@1.2.4:
|
|||
web3-eth-iban "1.2.4"
|
||||
web3-utils "1.2.4"
|
||||
|
||||
web3-core-helpers@1.2.6:
|
||||
version "1.2.6"
|
||||
resolved "https://registry.yarnpkg.com/web3-core-helpers/-/web3-core-helpers-1.2.6.tgz#7aacd25bf8015adcdfc0f3243d0dcfdff0373f7d"
|
||||
integrity sha512-gYKWmC2HmO7RcDzpo4L1K8EIoy5L8iubNDuTC6q69UxczwqKF/Io0kbK/1Z10Av++NlzOSiuyGp2gc4t4UOsDw==
|
||||
dependencies:
|
||||
underscore "1.9.1"
|
||||
web3-eth-iban "1.2.6"
|
||||
web3-utils "1.2.6"
|
||||
|
||||
web3-core-method@1.2.4:
|
||||
version "1.2.4"
|
||||
resolved "https://registry.yarnpkg.com/web3-core-method/-/web3-core-method-1.2.4.tgz#a0fbc50b8ff5fd214021435cc2c6d1e115807aed"
|
||||
|
@ -9223,17 +9244,6 @@ web3-core-method@1.2.4:
|
|||
web3-core-subscriptions "1.2.4"
|
||||
web3-utils "1.2.4"
|
||||
|
||||
web3-core-method@1.2.6:
|
||||
version "1.2.6"
|
||||
resolved "https://registry.yarnpkg.com/web3-core-method/-/web3-core-method-1.2.6.tgz#f5a3e4d304abaf382923c8ab88ec8eeef45c1b3b"
|
||||
integrity sha512-r2dzyPEonqkBg7Mugq5dknhV5PGaZTHBZlS/C+aMxNyQs3T3eaAsCTqlQDitwNUh/sUcYPEGF0Vo7ahYK4k91g==
|
||||
dependencies:
|
||||
underscore "1.9.1"
|
||||
web3-core-helpers "1.2.6"
|
||||
web3-core-promievent "1.2.6"
|
||||
web3-core-subscriptions "1.2.6"
|
||||
web3-utils "1.2.6"
|
||||
|
||||
web3-core-promievent@1.2.4:
|
||||
version "1.2.4"
|
||||
resolved "https://registry.yarnpkg.com/web3-core-promievent/-/web3-core-promievent-1.2.4.tgz#75e5c0f2940028722cdd21ba503ebd65272df6cb"
|
||||
|
@ -9242,14 +9252,6 @@ web3-core-promievent@1.2.4:
|
|||
any-promise "1.3.0"
|
||||
eventemitter3 "3.1.2"
|
||||
|
||||
web3-core-promievent@1.2.6:
|
||||
version "1.2.6"
|
||||
resolved "https://registry.yarnpkg.com/web3-core-promievent/-/web3-core-promievent-1.2.6.tgz#b1550a3a4163e48b8b704c1fe4b0084fc2dad8f5"
|
||||
integrity sha512-km72kJef/qtQNiSjDJJVHIZvoVOm6ytW3FCYnOcCs7RIkviAb5JYlPiye0o4pJOLzCXYID7DK7Q9bhY8qWb1lw==
|
||||
dependencies:
|
||||
any-promise "1.3.0"
|
||||
eventemitter3 "3.1.2"
|
||||
|
||||
web3-core-requestmanager@1.2.4:
|
||||
version "1.2.4"
|
||||
resolved "https://registry.yarnpkg.com/web3-core-requestmanager/-/web3-core-requestmanager-1.2.4.tgz#0a7020a23fb91c6913c611dfd3d8c398d1e4b4a8"
|
||||
|
@ -9261,17 +9263,6 @@ web3-core-requestmanager@1.2.4:
|
|||
web3-providers-ipc "1.2.4"
|
||||
web3-providers-ws "1.2.4"
|
||||
|
||||
web3-core-requestmanager@1.2.6:
|
||||
version "1.2.6"
|
||||
resolved "https://registry.yarnpkg.com/web3-core-requestmanager/-/web3-core-requestmanager-1.2.6.tgz#5808c0edc0d6e2991a87b65508b3a1ab065b68ec"
|
||||
integrity sha512-QU2cbsj9Dm0r6om40oSwk8Oqbp3wTa08tXuMpSmeOTkGZ3EMHJ1/4LiJ8shwg1AvPMrKVU0Nri6+uBNCdReZ+g==
|
||||
dependencies:
|
||||
underscore "1.9.1"
|
||||
web3-core-helpers "1.2.6"
|
||||
web3-providers-http "1.2.6"
|
||||
web3-providers-ipc "1.2.6"
|
||||
web3-providers-ws "1.2.6"
|
||||
|
||||
web3-core-subscriptions@1.2.4:
|
||||
version "1.2.4"
|
||||
resolved "https://registry.yarnpkg.com/web3-core-subscriptions/-/web3-core-subscriptions-1.2.4.tgz#0dc095b5cfd82baa527a39796e3515a846b21b99"
|
||||
|
@ -9281,15 +9272,6 @@ web3-core-subscriptions@1.2.4:
|
|||
underscore "1.9.1"
|
||||
web3-core-helpers "1.2.4"
|
||||
|
||||
web3-core-subscriptions@1.2.6:
|
||||
version "1.2.6"
|
||||
resolved "https://registry.yarnpkg.com/web3-core-subscriptions/-/web3-core-subscriptions-1.2.6.tgz#9d44189e2321f8f1abc31f6c09103b5283461b57"
|
||||
integrity sha512-M0PzRrP2Ct13x3wPulFtc5kENH4UtnPxO9YxkfQlX2WRKENWjt4Rfq+BCVGYEk3rTutDfWrjfzjmqMRvXqEY5Q==
|
||||
dependencies:
|
||||
eventemitter3 "3.1.2"
|
||||
underscore "1.9.1"
|
||||
web3-core-helpers "1.2.6"
|
||||
|
||||
web3-core@1.2.4:
|
||||
version "1.2.4"
|
||||
resolved "https://registry.yarnpkg.com/web3-core/-/web3-core-1.2.4.tgz#2df13b978dcfc59c2abaa887d27f88f21ad9a9d6"
|
||||
|
@ -9303,18 +9285,6 @@ web3-core@1.2.4:
|
|||
web3-core-requestmanager "1.2.4"
|
||||
web3-utils "1.2.4"
|
||||
|
||||
web3-core@1.2.6:
|
||||
version "1.2.6"
|
||||
resolved "https://registry.yarnpkg.com/web3-core/-/web3-core-1.2.6.tgz#bb42a1d7ae49a7258460f0d95ddb00906f59ef92"
|
||||
integrity sha512-y/QNBFtr5cIR8vxebnotbjWJpOnO8LDYEAzZjeRRUJh2ijmhjoYk7dSNx9ExgC0UCfNFRoNCa9dGRu/GAxwRlw==
|
||||
dependencies:
|
||||
"@types/bn.js" "^4.11.4"
|
||||
"@types/node" "^12.6.1"
|
||||
web3-core-helpers "1.2.6"
|
||||
web3-core-method "1.2.6"
|
||||
web3-core-requestmanager "1.2.6"
|
||||
web3-utils "1.2.6"
|
||||
|
||||
web3-eth-abi@1.2.4:
|
||||
version "1.2.4"
|
||||
resolved "https://registry.yarnpkg.com/web3-eth-abi/-/web3-eth-abi-1.2.4.tgz#5b73e5ef70b03999227066d5d1310b168845e2b8"
|
||||
|
@ -9324,15 +9294,6 @@ web3-eth-abi@1.2.4:
|
|||
underscore "1.9.1"
|
||||
web3-utils "1.2.4"
|
||||
|
||||
web3-eth-abi@1.2.6:
|
||||
version "1.2.6"
|
||||
resolved "https://registry.yarnpkg.com/web3-eth-abi/-/web3-eth-abi-1.2.6.tgz#b495383cc5c0d8e2857b26e7fe25606685983b25"
|
||||
integrity sha512-w9GAyyikn8nSifSDZxAvU9fxtQSX+W2xQWMmrtTXmBGCaE4/ywKOSPAO78gq8AoU4Wq5yqVGKZLLbfpt7/sHlA==
|
||||
dependencies:
|
||||
ethers "4.0.0-beta.3"
|
||||
underscore "1.9.1"
|
||||
web3-utils "1.2.6"
|
||||
|
||||
web3-eth-accounts@1.2.4:
|
||||
version "1.2.4"
|
||||
resolved "https://registry.yarnpkg.com/web3-eth-accounts/-/web3-eth-accounts-1.2.4.tgz#ada6edc49542354328a85cafab067acd7f88c288"
|
||||
|
@ -9351,24 +9312,6 @@ web3-eth-accounts@1.2.4:
|
|||
web3-core-method "1.2.4"
|
||||
web3-utils "1.2.4"
|
||||
|
||||
web3-eth-accounts@1.2.6:
|
||||
version "1.2.6"
|
||||
resolved "https://registry.yarnpkg.com/web3-eth-accounts/-/web3-eth-accounts-1.2.6.tgz#a1ba4bf75fa8102a3ec6cddd0eccd72462262720"
|
||||
integrity sha512-cDVtonHRgzqi/ZHOOf8kfCQWFEipcfQNAMzXIaKZwc0UUD9mgSI5oJrN45a89Ze+E6Lz9m77cDG5Ax9zscSkcw==
|
||||
dependencies:
|
||||
"@web3-js/scrypt-shim" "^0.1.0"
|
||||
any-promise "1.3.0"
|
||||
crypto-browserify "3.12.0"
|
||||
eth-lib "^0.2.8"
|
||||
ethereumjs-common "^1.3.2"
|
||||
ethereumjs-tx "^2.1.1"
|
||||
underscore "1.9.1"
|
||||
uuid "3.3.2"
|
||||
web3-core "1.2.6"
|
||||
web3-core-helpers "1.2.6"
|
||||
web3-core-method "1.2.6"
|
||||
web3-utils "1.2.6"
|
||||
|
||||
web3-eth-contract@1.2.4:
|
||||
version "1.2.4"
|
||||
resolved "https://registry.yarnpkg.com/web3-eth-contract/-/web3-eth-contract-1.2.4.tgz#68ef7cc633232779b0a2c506a810fbe903575886"
|
||||
|
@ -9384,21 +9327,6 @@ web3-eth-contract@1.2.4:
|
|||
web3-eth-abi "1.2.4"
|
||||
web3-utils "1.2.4"
|
||||
|
||||
web3-eth-contract@1.2.6:
|
||||
version "1.2.6"
|
||||
resolved "https://registry.yarnpkg.com/web3-eth-contract/-/web3-eth-contract-1.2.6.tgz#39111543960035ed94c597a239cf5aa1da796741"
|
||||
integrity sha512-ak4xbHIhWgsbdPCkSN+HnQc1SH4c856y7Ly+S57J/DQVzhFZemK5HvWdpwadJrQTcHET3ZeId1vq3kmW7UYodw==
|
||||
dependencies:
|
||||
"@types/bn.js" "^4.11.4"
|
||||
underscore "1.9.1"
|
||||
web3-core "1.2.6"
|
||||
web3-core-helpers "1.2.6"
|
||||
web3-core-method "1.2.6"
|
||||
web3-core-promievent "1.2.6"
|
||||
web3-core-subscriptions "1.2.6"
|
||||
web3-eth-abi "1.2.6"
|
||||
web3-utils "1.2.6"
|
||||
|
||||
web3-eth-ens@1.2.4:
|
||||
version "1.2.4"
|
||||
resolved "https://registry.yarnpkg.com/web3-eth-ens/-/web3-eth-ens-1.2.4.tgz#b95b3aa99fb1e35c802b9e02a44c3046a3fa065e"
|
||||
|
@ -9413,20 +9341,6 @@ web3-eth-ens@1.2.4:
|
|||
web3-eth-contract "1.2.4"
|
||||
web3-utils "1.2.4"
|
||||
|
||||
web3-eth-ens@1.2.6:
|
||||
version "1.2.6"
|
||||
resolved "https://registry.yarnpkg.com/web3-eth-ens/-/web3-eth-ens-1.2.6.tgz#bf86a624c4c72bc59913c2345180d3ea947e110d"
|
||||
integrity sha512-8UEqt6fqR/dji/jBGPFAyBs16OJjwi0t2dPWXPyGXmty/fH+osnXwWXE4HRUyj4xuafiM5P1YkXMsPhKEadjiw==
|
||||
dependencies:
|
||||
eth-ens-namehash "2.0.8"
|
||||
underscore "1.9.1"
|
||||
web3-core "1.2.6"
|
||||
web3-core-helpers "1.2.6"
|
||||
web3-core-promievent "1.2.6"
|
||||
web3-eth-abi "1.2.6"
|
||||
web3-eth-contract "1.2.6"
|
||||
web3-utils "1.2.6"
|
||||
|
||||
web3-eth-iban@1.2.4:
|
||||
version "1.2.4"
|
||||
resolved "https://registry.yarnpkg.com/web3-eth-iban/-/web3-eth-iban-1.2.4.tgz#8e0550fd3fd8e47a39357d87fe27dee9483ee476"
|
||||
|
@ -9435,14 +9349,6 @@ web3-eth-iban@1.2.4:
|
|||
bn.js "4.11.8"
|
||||
web3-utils "1.2.4"
|
||||
|
||||
web3-eth-iban@1.2.6:
|
||||
version "1.2.6"
|
||||
resolved "https://registry.yarnpkg.com/web3-eth-iban/-/web3-eth-iban-1.2.6.tgz#0b22191fd1aa6e27f7ef0820df75820bfb4ed46b"
|
||||
integrity sha512-TPMc3BW9Iso7H+9w+ytbqHK9wgOmtocyCD3PaAe5Eie50KQ/j7ThA60dGJnxItVo6yyRv5pZAYxPVob9x/fJlg==
|
||||
dependencies:
|
||||
bn.js "4.11.8"
|
||||
web3-utils "1.2.6"
|
||||
|
||||
web3-eth-personal@1.2.4:
|
||||
version "1.2.4"
|
||||
resolved "https://registry.yarnpkg.com/web3-eth-personal/-/web3-eth-personal-1.2.4.tgz#3224cca6851c96347d9799b12c1b67b2a6eb232b"
|
||||
|
@ -9455,18 +9361,6 @@ web3-eth-personal@1.2.4:
|
|||
web3-net "1.2.4"
|
||||
web3-utils "1.2.4"
|
||||
|
||||
web3-eth-personal@1.2.6:
|
||||
version "1.2.6"
|
||||
resolved "https://registry.yarnpkg.com/web3-eth-personal/-/web3-eth-personal-1.2.6.tgz#47a0a0657ec04dd77f95451a6869d4751d324b6b"
|
||||
integrity sha512-T2NUkh1plY8d7wePXSoHnaiKOd8dLNFaQfgBl9JHU6S7IJrG9jnYD9bVxLEgRUfHs9gKf9tQpDf7AcPFdq/A8g==
|
||||
dependencies:
|
||||
"@types/node" "^12.6.1"
|
||||
web3-core "1.2.6"
|
||||
web3-core-helpers "1.2.6"
|
||||
web3-core-method "1.2.6"
|
||||
web3-net "1.2.6"
|
||||
web3-utils "1.2.6"
|
||||
|
||||
web3-eth@1.2.4:
|
||||
version "1.2.4"
|
||||
resolved "https://registry.yarnpkg.com/web3-eth/-/web3-eth-1.2.4.tgz#24c3b1f1ac79351bbfb808b2ab5c585fa57cdd00"
|
||||
|
@ -9486,25 +9380,6 @@ web3-eth@1.2.4:
|
|||
web3-net "1.2.4"
|
||||
web3-utils "1.2.4"
|
||||
|
||||
web3-eth@^1.2.6:
|
||||
version "1.2.6"
|
||||
resolved "https://registry.yarnpkg.com/web3-eth/-/web3-eth-1.2.6.tgz#15a8c65fdde0727872848cae506758d302d8d046"
|
||||
integrity sha512-ROWlDPzh4QX6tlGGGlAK6X4kA2n0/cNj/4kb0nNVWkRouGmYO0R8k6s47YxYHvGiXt0s0++FUUv5vAbWovtUQw==
|
||||
dependencies:
|
||||
underscore "1.9.1"
|
||||
web3-core "1.2.6"
|
||||
web3-core-helpers "1.2.6"
|
||||
web3-core-method "1.2.6"
|
||||
web3-core-subscriptions "1.2.6"
|
||||
web3-eth-abi "1.2.6"
|
||||
web3-eth-accounts "1.2.6"
|
||||
web3-eth-contract "1.2.6"
|
||||
web3-eth-ens "1.2.6"
|
||||
web3-eth-iban "1.2.6"
|
||||
web3-eth-personal "1.2.6"
|
||||
web3-net "1.2.6"
|
||||
web3-utils "1.2.6"
|
||||
|
||||
web3-net@1.2.4:
|
||||
version "1.2.4"
|
||||
resolved "https://registry.yarnpkg.com/web3-net/-/web3-net-1.2.4.tgz#1d246406d3aaffbf39c030e4e98bce0ca5f25458"
|
||||
|
@ -9514,15 +9389,6 @@ web3-net@1.2.4:
|
|||
web3-core-method "1.2.4"
|
||||
web3-utils "1.2.4"
|
||||
|
||||
web3-net@1.2.6:
|
||||
version "1.2.6"
|
||||
resolved "https://registry.yarnpkg.com/web3-net/-/web3-net-1.2.6.tgz#035ca0fbe55282fda848ca17ebb4c8966147e5ea"
|
||||
integrity sha512-hsNHAPddrhgjWLmbESW0KxJi2GnthPcow0Sqpnf4oB6+/+ZnQHU9OsIyHb83bnC1OmunrK2vf9Ye2mLPdFIu3A==
|
||||
dependencies:
|
||||
web3-core "1.2.6"
|
||||
web3-core-method "1.2.6"
|
||||
web3-utils "1.2.6"
|
||||
|
||||
web3-provider-engine@14.2.1:
|
||||
version "14.2.1"
|
||||
resolved "https://registry.yarnpkg.com/web3-provider-engine/-/web3-provider-engine-14.2.1.tgz#ef351578797bf170e08d529cb5b02f8751329b95"
|
||||
|
@ -9557,14 +9423,6 @@ web3-providers-http@1.2.4:
|
|||
web3-core-helpers "1.2.4"
|
||||
xhr2-cookies "1.1.0"
|
||||
|
||||
web3-providers-http@1.2.6:
|
||||
version "1.2.6"
|
||||
resolved "https://registry.yarnpkg.com/web3-providers-http/-/web3-providers-http-1.2.6.tgz#3c7b1252751fb37e53b873fce9dbb6340f5e31d9"
|
||||
integrity sha512-2+SaFCspb5f82QKuHB3nEPQOF9iSWxRf7c18fHtmnLNVkfG9SwLN1zh67bYn3tZGUdOI3gj8aX4Uhfpwx9Ezpw==
|
||||
dependencies:
|
||||
web3-core-helpers "1.2.6"
|
||||
xhr2-cookies "1.1.0"
|
||||
|
||||
web3-providers-ipc@1.2.4:
|
||||
version "1.2.4"
|
||||
resolved "https://registry.yarnpkg.com/web3-providers-ipc/-/web3-providers-ipc-1.2.4.tgz#9d6659f8d44943fb369b739f48df09092be459bd"
|
||||
|
@ -9574,15 +9432,6 @@ web3-providers-ipc@1.2.4:
|
|||
underscore "1.9.1"
|
||||
web3-core-helpers "1.2.4"
|
||||
|
||||
web3-providers-ipc@1.2.6:
|
||||
version "1.2.6"
|
||||
resolved "https://registry.yarnpkg.com/web3-providers-ipc/-/web3-providers-ipc-1.2.6.tgz#adabab5ac66b3ff8a26c7dc97af3f1a6a7609701"
|
||||
integrity sha512-b0Es+/GTZyk5FG3SgUDW+2/mBwJAXWt5LuppODptiOas8bB2khLjG6+Gm1K4uwOb+1NJGPt5mZZ8Wi7vibtQ+A==
|
||||
dependencies:
|
||||
oboe "2.1.4"
|
||||
underscore "1.9.1"
|
||||
web3-core-helpers "1.2.6"
|
||||
|
||||
web3-providers-ws@1.2.4:
|
||||
version "1.2.4"
|
||||
resolved "https://registry.yarnpkg.com/web3-providers-ws/-/web3-providers-ws-1.2.4.tgz#099ee271ee03f6ea4f5df9cfe969e83f4ce0e36f"
|
||||
|
@ -9592,15 +9441,6 @@ web3-providers-ws@1.2.4:
|
|||
underscore "1.9.1"
|
||||
web3-core-helpers "1.2.4"
|
||||
|
||||
web3-providers-ws@1.2.6:
|
||||
version "1.2.6"
|
||||
resolved "https://registry.yarnpkg.com/web3-providers-ws/-/web3-providers-ws-1.2.6.tgz#3cecc49f7c99f07a75076d3c54247050bc4f7e11"
|
||||
integrity sha512-20waSYX+gb5M5yKhug5FIwxBBvkKzlJH7sK6XEgdOx6BZ9YYamLmvg9wcRVtnSZO8hV/3cWenO/tRtTrHVvIgQ==
|
||||
dependencies:
|
||||
"@web3-js/websocket" "^1.0.29"
|
||||
underscore "1.9.1"
|
||||
web3-core-helpers "1.2.6"
|
||||
|
||||
web3-shh@1.2.4:
|
||||
version "1.2.4"
|
||||
resolved "https://registry.yarnpkg.com/web3-shh/-/web3-shh-1.2.4.tgz#5c8ff5ab624a3b14f08af0d24d2b16c10e9f70dd"
|
||||
|
@ -9625,20 +9465,6 @@ web3-utils@1.2.4:
|
|||
underscore "1.9.1"
|
||||
utf8 "3.0.0"
|
||||
|
||||
web3-utils@1.2.6:
|
||||
version "1.2.6"
|
||||
resolved "https://registry.yarnpkg.com/web3-utils/-/web3-utils-1.2.6.tgz#b9a25432da00976457fcc1094c4af8ac6d486db9"
|
||||
integrity sha512-8/HnqG/l7dGmKMgEL9JeKPTtjScxOePTzopv5aaKFExPfaBrYRkgoMqhoowCiAl/s16QaTn4DoIF1QC4YsT7Mg==
|
||||
dependencies:
|
||||
bn.js "4.11.8"
|
||||
eth-lib "0.2.7"
|
||||
ethereum-bloom-filters "^1.0.6"
|
||||
ethjs-unit "0.1.6"
|
||||
number-to-bn "1.7.0"
|
||||
randombytes "^2.1.0"
|
||||
underscore "1.9.1"
|
||||
utf8 "3.0.0"
|
||||
|
||||
web3@1.2.4:
|
||||
version "1.2.4"
|
||||
resolved "https://registry.yarnpkg.com/web3/-/web3-1.2.4.tgz#6e7ab799eefc9b4648c2dab63003f704a1d5e7d9"
|
||||
|
|
Loading…
Reference in New Issue