From 2f774b38bfc7b71d5f6e83321fa4bd7a82a4f30b Mon Sep 17 00:00:00 2001 From: polluterofminds Date: Mon, 27 Jan 2020 19:59:08 -0500 Subject: [PATCH 1/2] Integrated with SimpleID --- package-lock.json | 188 +++++++++++++++++- package.json | 1 + src/App.jsx | 9 + .../actions/signin/connectProviderToDapp.js | 1 + src/state/actions/signin/openBox.js | 22 ++ 5 files changed, 216 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 410e9d238..ada1df482 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11681,6 +11681,11 @@ } } }, + "crypto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/crypto/-/crypto-1.0.1.tgz", + "integrity": "sha512-VxBKmeNcqQdiUQUW2Tzq0t377b54N2bMtXO/qiLa+6eRRmmC4qT3D4OnTGoT/U6O9aklQ/jTwbOtRMTTY8G0Ig==" + }, "crypto-browserify": { "version": "3.12.0", "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz", @@ -12892,8 +12897,7 @@ "dotenv": { "version": "8.2.0", "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz", - "integrity": "sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==", - "dev": true + "integrity": "sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==" }, "dotenv-expand": { "version": "5.1.0", @@ -33104,11 +33108,21 @@ "uuid": "^3.3.2" } }, + "request-promise": { + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/request-promise/-/request-promise-4.2.5.tgz", + "integrity": "sha512-ZgnepCykFdmpq86fKGwqntyTiUrHycALuGggpyCZwMvGaZWgxW6yagT0FHkgo5LzYvOaCNvxYwWYIjevSH1EDg==", + "requires": { + "bluebird": "^3.5.0", + "request-promise-core": "1.1.3", + "stealthy-require": "^1.1.1", + "tough-cookie": "^2.3.3" + } + }, "request-promise-core": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.3.tgz", "integrity": "sha512-QIs2+ArIGQVp5ZYbWD5ZLCY29D5CfWizP8eWnm8FoGD1TX61veauETVQbrV60662V0oFBkrDOuaBI8XgtuyYAQ==", - "dev": true, "requires": { "lodash": "^4.17.15" } @@ -33597,6 +33611,65 @@ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, + "safer-class": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/safer-class/-/safer-class-0.2.1.tgz", + "integrity": "sha512-NlRgvo5AUo1/LyZ1guq7jGKCU31NkjuFH8/VaLMrVTqfpdziShRuoPjxHvlA4bbjA5qGH51NPbOspsjWsdw/fw==", + "requires": { + "safer-object": "^0.2.1" + } + }, + "safer-crypto": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/safer-crypto/-/safer-crypto-0.2.1.tgz", + "integrity": "sha512-+qqCpKiA9V2mEL1efEeS+0gbPdsFRKTLmjgh+4bgPpPVsDLKNryiE/R7n5r/ZEi/h/xBnJgw5lQiYdU+SNjD/w==", + "requires": { + "safer-function": "^0.1.2", + "safer-promise": "^0.2.1" + } + }, + "safer-function": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/safer-function/-/safer-function-0.1.2.tgz", + "integrity": "sha512-hQ5KW0EM0dxDQFxqbZ2oBoNpHMHZ0kOQ0ck1a8wDu6JPDQmLpZHxNPIra3LSCXnB4DjLsdstgfRFpLiEKQUptw==" + }, + "safer-object": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/safer-object/-/safer-object-0.2.1.tgz", + "integrity": "sha512-W8wkRCrMXgwDpk8fxGXw0JzfeTvye7A1c/0/OMNIMdATMnu/j5rA8ioXvzTGiLyObgJrJ/NyjEWHkC8r1xd1EQ==", + "requires": { + "safer-function": "^0.1.2" + } + }, + "safer-pass": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/safer-pass/-/safer-pass-1.0.3.tgz", + "integrity": "sha512-424T01IomptEddPWltBw1zRUeZYxrYpWd7REclK67VV/sssOGdRoS+IPbKL9ASdzOgHMe+IVX0kQjWO0ImWKOQ==", + "requires": { + "safer-class": "^0.2.1", + "safer-crypto": "^0.2.1", + "safer-function": "^0.1.2", + "safer-promise": "^0.2.1", + "safer-text": "^0.1.2" + } + }, + "safer-promise": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/safer-promise/-/safer-promise-0.2.1.tgz", + "integrity": "sha512-mIuMCmenCcEapM7cVFdMH4ZimWLduxWqehin8IZlErSmK00z6H3HHH0/Sj/Y3bYNKru0OJ7V0h5IlpxlrmH3ZQ==", + "requires": { + "safer-class": "^0.2.1", + "safer-function": "^0.1.2" + } + }, + "safer-text": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/safer-text/-/safer-text-0.1.2.tgz", + "integrity": "sha512-qDhc1nuDAaiGqqIO4383pQWdKGqP4AERLfnbxnakW1Rhlf8KMAlY4UJdG+SGccKks5tUcLiK40xmIAKdBBeHYw==", + "requires": { + "safer-function": "^0.1.2" + } + }, "sane": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/sane/-/sane-2.5.2.tgz", @@ -34647,6 +34720,112 @@ } } }, + "simpleid-js-sdk": { + "version": "0.1.4-beta", + "resolved": "https://registry.npmjs.org/simpleid-js-sdk/-/simpleid-js-sdk-0.1.4-beta.tgz", + "integrity": "sha512-cmAz2Td3+W7vh3xl45SiuEgfxAwam1w55ziuuMAze3Xcp4MTaOBx/ux5yAf7iJ/l4pGDJttHNNxIxPNZlUZ0Cg==", + "requires": { + "crypto": "^1.0.1", + "crypto-browserify": "^3.12.0", + "dotenv": "^8.2.0", + "ethers": "^4.0.33", + "penpal": "^4.1.1", + "pocket-js-core": "0.0.6", + "request": "^2.88.0", + "request-promise": "^4.2.4", + "safer-pass": "^1.0.3", + "web3": "^1.2.2", + "web3-provider-engine": "^15.0.4" + }, + "dependencies": { + "eth-json-rpc-errors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/eth-json-rpc-errors/-/eth-json-rpc-errors-1.1.1.tgz", + "integrity": "sha512-WT5shJ5KfNqHi9jOZD+ID8I1kuYWNrigtZat7GOQkvwo99f8SzAVaEcWhJUv656WiZOAg3P1RiJQANtUmDmbIg==", + "requires": { + "fast-safe-stringify": "^2.0.6" + } + }, + "eth-json-rpc-infura": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/eth-json-rpc-infura/-/eth-json-rpc-infura-4.0.2.tgz", + "integrity": "sha512-dvgOrci9lZqpjpp0hoC3Zfedhg3aIpLFVDH0TdlKxRlkhR75hTrKTwxghDrQwE0bn3eKrC8RsN1m/JdnIWltpw==", + "requires": { + "cross-fetch": "^2.1.1", + "eth-json-rpc-errors": "^1.0.1", + "eth-json-rpc-middleware": "^4.1.4", + "json-rpc-engine": "^5.1.3" + } + }, + "ethereumjs-util": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.0.tgz", + "integrity": "sha512-CJAKdI0wgMbQFLlLRtZKGcy/L6pzVRgelIZqRqNbuVFM3K9VEnyfbcvz0ncWMRNCe4kaHWjwRYQcYMucmwsnWA==", + "requires": { + "bn.js": "^4.11.0", + "create-hash": "^1.1.2", + "ethjs-util": "^0.1.3", + "keccak": "^1.0.2", + "rlp": "^2.0.0", + "safe-buffer": "^5.1.1", + "secp256k1": "^3.0.1" + } + }, + "keccak": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/keccak/-/keccak-1.4.0.tgz", + "integrity": "sha512-eZVaCpblK5formjPjeTBik7TAg+pqnDrMHIffSvi9Lh7PQgM1+hSzakUeZFCk9DVVG0dacZJuaz2ntwlzZUIBw==", + "requires": { + "bindings": "^1.2.1", + "inherits": "^2.0.3", + "nan": "^2.2.1", + "safe-buffer": "^5.1.0" + } + }, + "penpal": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/penpal/-/penpal-4.1.1.tgz", + "integrity": "sha512-6d1f8khVLyBz3DnhLztbfjJ7+ANxdXRM2l6awpnCdEtbrmse4AGTsELOvGuNY0SU7xZw7heGbP6IikVvaVTOWw==" + }, + "pocket-js-core": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/pocket-js-core/-/pocket-js-core-0.0.6.tgz", + "integrity": "sha512-HxJNzQIaSC2Mg8bi37muX8XpkH/qovx3dM9pPwfYPMb/qngM+tH/tkLau/wuPnk3JEP+A0GzIN+sR/l/uA7/rA==", + "requires": { + "axios": "^0.18.1" + } + }, + "web3-provider-engine": { + "version": "15.0.4", + "resolved": "https://registry.npmjs.org/web3-provider-engine/-/web3-provider-engine-15.0.4.tgz", + "integrity": "sha512-Ob9oK0TUZfVC7NXkB7CQSWAiCdCD/Xnlh2zTnV8NdJR8LCrMAy2i6JedU70JHaxw59y7mM4GnsYOTTGkquFnNQ==", + "requires": { + "async": "^2.5.0", + "backoff": "^2.5.0", + "clone": "^2.0.0", + "cross-fetch": "^2.1.0", + "eth-block-tracker": "^4.4.2", + "eth-json-rpc-errors": "^1.0.1", + "eth-json-rpc-filters": "^4.1.1", + "eth-json-rpc-infura": "^4.0.1", + "eth-json-rpc-middleware": "^4.1.5", + "eth-sig-util": "^1.4.2", + "ethereumjs-block": "^1.2.2", + "ethereumjs-tx": "^1.2.0", + "ethereumjs-util": "^5.1.5", + "ethereumjs-vm": "^2.3.4", + "json-stable-stringify": "^1.0.1", + "promise-to-callback": "^1.0.0", + "readable-stream": "^2.2.9", + "request": "^2.85.0", + "semaphore": "^1.0.3", + "ws": "^5.1.1", + "xhr": "^2.2.0", + "xtend": "^4.0.1" + } + } + } + }, "sisteransi": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-0.1.1.tgz", @@ -35554,8 +35733,7 @@ "stealthy-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/stealthy-require/-/stealthy-require-1.1.1.tgz", - "integrity": "sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks=", - "dev": true + "integrity": "sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks=" }, "store": { "version": "2.0.12", diff --git a/package.json b/package.json index c78602759..df0d6c4a3 100644 --- a/package.json +++ b/package.json @@ -52,6 +52,7 @@ "redux": "^4.0.0", "redux-thunk": "^2.3.0", "scrypt-shim": "github:web3-js/scrypt-shim", + "simpleid-js-sdk": "^0.1.4-beta", "source-map-explorer": "^2.1.2", "squarelink": "^1.1.4", "web3": "^1.2.4", diff --git a/src/App.jsx b/src/App.jsx index dc1dd38fe..0e90ea4fa 100755 --- a/src/App.jsx +++ b/src/App.jsx @@ -30,6 +30,15 @@ import { ChatboxComponent, } from './DynamicImports'; import './index.scss'; +import SimpleID from 'simpleid-js-sdk'; + +new SimpleID({ + appOrigin: window.location.origin, + appName: "App Name", + appId: "YOUR APP ID HERE", + useSimpledIdWidget: false, + network: 'mainnet' +}); const { handleSignInModal, diff --git a/src/state/actions/signin/connectProviderToDapp.js b/src/state/actions/signin/connectProviderToDapp.js index 860455d74..c06f4dbdf 100644 --- a/src/state/actions/signin/connectProviderToDapp.js +++ b/src/state/actions/signin/connectProviderToDapp.js @@ -38,6 +38,7 @@ const connectProviderToDapp = async (provider, directLogin, dispatch) => { await web3Obj.currentProvider.enable() : await accountsPromise; const currentAddress = accounts[0]; + //Check if SimpleID data already passed // const currentAddress = provider.isAuthereum ? accounts[0] : accounts.account.accountAddress; window.localStorage.setItem('userEthAddress', currentAddress); diff --git a/src/state/actions/signin/openBox.js b/src/state/actions/signin/openBox.js index a6ff44814..e564dc309 100644 --- a/src/state/actions/signin/openBox.js +++ b/src/state/actions/signin/openBox.js @@ -13,6 +13,15 @@ import { import getCollectibles from '../profile/getCollectibles'; import getGeneralProfile from '../profile/getGeneralProfile'; import fetchEns from '../utils'; +import SimpleID from 'simpleid-js-sdk'; + +const simple = new SimpleID({ + appOrigin: window.location.origin, + appName: "App Name", + appId: "YOUR APP ID HERE", + useSimpledIdWidget: false, + network: 'mainnet' +}); const openBox = (fromSignIn, fromFollowButton) => async (dispatch) => { const { @@ -151,6 +160,19 @@ const openBox = (fromSignIn, fromFollowButton) => async (dispatch) => { isSyncing: true, }); }); + + const userData = simple.getUserData() + if(userData && userData.wallet) { + //Don't do anything here for now + } else { + //Need to pass eth addr (and email if wanted) + const userInfo = { + address: currentAddress + } + console.log("Passing data to simpleid") + const simpleid = await simple.passUserInfo(userInfo) + console.log(simpleid) + } } catch (err) { history.push(routes.LANDING); dispatch({ From 0537d927d284a03f9f6c55f75422abdae0316716 Mon Sep 17 00:00:00 2001 From: polluterofminds Date: Tue, 4 Feb 2020 15:48:03 -0500 Subject: [PATCH 2/2] updated sdk version --- package-lock.json | 265 +++++++++++++++++++--------------------------- package.json | 2 +- 2 files changed, 109 insertions(+), 158 deletions(-) diff --git a/package-lock.json b/package-lock.json index ada1df482..3a0762142 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11681,11 +11681,6 @@ } } }, - "crypto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/crypto/-/crypto-1.0.1.tgz", - "integrity": "sha512-VxBKmeNcqQdiUQUW2Tzq0t377b54N2bMtXO/qiLa+6eRRmmC4qT3D4OnTGoT/U6O9aklQ/jTwbOtRMTTY8G0Ig==" - }, "crypto-browserify": { "version": "3.12.0", "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz", @@ -12989,6 +12984,34 @@ "safer-buffer": "^2.1.0" } }, + "eccrypto": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/eccrypto/-/eccrypto-1.1.3.tgz", + "integrity": "sha512-Xtyj039Xp2NDZwoe9IcD7pT1EwM4DILdxPCN2H7Rk1wgJNtTkFpk+cpX1QpuHTMaIhkatOBlGGKzGw/DUCDdqg==", + "requires": { + "acorn": "7.1.0", + "elliptic": "6.5.1", + "es6-promise": "4.2.8", + "nan": "2.14.0", + "secp256k1": "3.7.1" + }, + "dependencies": { + "elliptic": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.1.tgz", + "integrity": "sha512-xvJINNLbTeWQjrl6X+7eQCrIy/YPv5XCpKW6kB5mKvtnGILoLDcySuwomfdzt0BMdLNVnuRNTuzKNHj0bva1Cg==", + "requires": { + "bn.js": "^4.4.0", + "brorand": "^1.0.1", + "hash.js": "^1.0.0", + "hmac-drbg": "^1.0.0", + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0", + "minimalistic-crypto-utils": "^1.0.0" + } + } + } + }, "ee-first": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", @@ -13413,6 +13436,11 @@ "es6-symbol": "^3.1.1" } }, + "es6-promise": { + "version": "4.2.8", + "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", + "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==" + }, "es6-symbol": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.3.tgz", @@ -25048,8 +25076,12 @@ "loglevel": { "version": "1.6.6", "resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.6.6.tgz", - "integrity": "sha512-Sgr5lbboAUBo3eXCSPL4/KoVz3ROKquOjcctxmHIt+vol2DrqTQe3SwkKKuYhEiWB5kYa13YyopJ69deJ1irzQ==", - "dev": true + "integrity": "sha512-Sgr5lbboAUBo3eXCSPL4/KoVz3ROKquOjcctxmHIt+vol2DrqTQe3SwkKKuYhEiWB5kYa13YyopJ69deJ1irzQ==" + }, + "loglevel-plugin-prefix": { + "version": "0.8.4", + "resolved": "https://registry.npmjs.org/loglevel-plugin-prefix/-/loglevel-plugin-prefix-0.8.4.tgz", + "integrity": "sha512-WpG9CcFAOjz/FtNht+QJeGpvVl/cdR6P0z6OcXSkr8wFJOsV2GRj2j10JLfjuA4aYkcKCNIEqRGCyTife9R8/g==" }, "logplease": { "version": "1.2.15", @@ -33611,65 +33643,6 @@ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, - "safer-class": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/safer-class/-/safer-class-0.2.1.tgz", - "integrity": "sha512-NlRgvo5AUo1/LyZ1guq7jGKCU31NkjuFH8/VaLMrVTqfpdziShRuoPjxHvlA4bbjA5qGH51NPbOspsjWsdw/fw==", - "requires": { - "safer-object": "^0.2.1" - } - }, - "safer-crypto": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/safer-crypto/-/safer-crypto-0.2.1.tgz", - "integrity": "sha512-+qqCpKiA9V2mEL1efEeS+0gbPdsFRKTLmjgh+4bgPpPVsDLKNryiE/R7n5r/ZEi/h/xBnJgw5lQiYdU+SNjD/w==", - "requires": { - "safer-function": "^0.1.2", - "safer-promise": "^0.2.1" - } - }, - "safer-function": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/safer-function/-/safer-function-0.1.2.tgz", - "integrity": "sha512-hQ5KW0EM0dxDQFxqbZ2oBoNpHMHZ0kOQ0ck1a8wDu6JPDQmLpZHxNPIra3LSCXnB4DjLsdstgfRFpLiEKQUptw==" - }, - "safer-object": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/safer-object/-/safer-object-0.2.1.tgz", - "integrity": "sha512-W8wkRCrMXgwDpk8fxGXw0JzfeTvye7A1c/0/OMNIMdATMnu/j5rA8ioXvzTGiLyObgJrJ/NyjEWHkC8r1xd1EQ==", - "requires": { - "safer-function": "^0.1.2" - } - }, - "safer-pass": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/safer-pass/-/safer-pass-1.0.3.tgz", - "integrity": "sha512-424T01IomptEddPWltBw1zRUeZYxrYpWd7REclK67VV/sssOGdRoS+IPbKL9ASdzOgHMe+IVX0kQjWO0ImWKOQ==", - "requires": { - "safer-class": "^0.2.1", - "safer-crypto": "^0.2.1", - "safer-function": "^0.1.2", - "safer-promise": "^0.2.1", - "safer-text": "^0.1.2" - } - }, - "safer-promise": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/safer-promise/-/safer-promise-0.2.1.tgz", - "integrity": "sha512-mIuMCmenCcEapM7cVFdMH4ZimWLduxWqehin8IZlErSmK00z6H3HHH0/Sj/Y3bYNKru0OJ7V0h5IlpxlrmH3ZQ==", - "requires": { - "safer-class": "^0.2.1", - "safer-function": "^0.1.2" - } - }, - "safer-text": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/safer-text/-/safer-text-0.1.2.tgz", - "integrity": "sha512-qDhc1nuDAaiGqqIO4383pQWdKGqP4AERLfnbxnakW1Rhlf8KMAlY4UJdG+SGccKks5tUcLiK40xmIAKdBBeHYw==", - "requires": { - "safer-function": "^0.1.2" - } - }, "sane": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/sane/-/sane-2.5.2.tgz", @@ -34721,108 +34694,83 @@ } }, "simpleid-js-sdk": { - "version": "0.1.4-beta", - "resolved": "https://registry.npmjs.org/simpleid-js-sdk/-/simpleid-js-sdk-0.1.4-beta.tgz", - "integrity": "sha512-cmAz2Td3+W7vh3xl45SiuEgfxAwam1w55ziuuMAze3Xcp4MTaOBx/ux5yAf7iJ/l4pGDJttHNNxIxPNZlUZ0Cg==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/simpleid-js-sdk/-/simpleid-js-sdk-1.0.0.tgz", + "integrity": "sha512-ldX+qUpKntqNx/ZY6cLQLB/L0xIfziTAXywtWfh33ZSTKBCnSeAhvH0lgAiLvzpriqI4LELFaH1ZLQ65h45LmQ==", "requires": { - "crypto": "^1.0.1", - "crypto-browserify": "^3.12.0", + "aws-sdk": "^2.593.0", + "buffer": "^5.4.3", "dotenv": "^8.2.0", - "ethers": "^4.0.33", - "penpal": "^4.1.1", - "pocket-js-core": "0.0.6", + "eccrypto": "^1.1.2", + "loglevel": "^1.6.6", + "loglevel-plugin-prefix": "^0.8.4", "request": "^2.88.0", - "request-promise": "^4.2.4", - "safer-pass": "^1.0.3", - "web3": "^1.2.2", - "web3-provider-engine": "^15.0.4" + "request-promise": "^4.2.5", + "sys": "0.0.1", + "uuid": "^3.3.3" }, "dependencies": { - "eth-json-rpc-errors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/eth-json-rpc-errors/-/eth-json-rpc-errors-1.1.1.tgz", - "integrity": "sha512-WT5shJ5KfNqHi9jOZD+ID8I1kuYWNrigtZat7GOQkvwo99f8SzAVaEcWhJUv656WiZOAg3P1RiJQANtUmDmbIg==", - "requires": { - "fast-safe-stringify": "^2.0.6" - } - }, - "eth-json-rpc-infura": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/eth-json-rpc-infura/-/eth-json-rpc-infura-4.0.2.tgz", - "integrity": "sha512-dvgOrci9lZqpjpp0hoC3Zfedhg3aIpLFVDH0TdlKxRlkhR75hTrKTwxghDrQwE0bn3eKrC8RsN1m/JdnIWltpw==", + "aws-sdk": { + "version": "2.611.0", + "resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.611.0.tgz", + "integrity": "sha512-2Y0vqEUQFRJE/5Ne6IYgP2y+8XEp0jQefHxlwdqwj9n9a8OmdsmBnNaw2IVsyxySgk2ynp38+imBJaceDNKiiQ==", "requires": { - "cross-fetch": "^2.1.1", - "eth-json-rpc-errors": "^1.0.1", - "eth-json-rpc-middleware": "^4.1.4", - "json-rpc-engine": "^5.1.3" + "buffer": "4.9.1", + "events": "1.1.1", + "ieee754": "1.1.13", + "jmespath": "0.15.0", + "querystring": "0.2.0", + "sax": "1.2.1", + "url": "0.10.3", + "uuid": "3.3.2", + "xml2js": "0.4.19" + }, + "dependencies": { + "buffer": { + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.1.tgz", + "integrity": "sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg=", + "requires": { + "base64-js": "^1.0.2", + "ieee754": "^1.1.4", + "isarray": "^1.0.0" + } + }, + "uuid": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", + "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==" + } } }, - "ethereumjs-util": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.0.tgz", - "integrity": "sha512-CJAKdI0wgMbQFLlLRtZKGcy/L6pzVRgelIZqRqNbuVFM3K9VEnyfbcvz0ncWMRNCe4kaHWjwRYQcYMucmwsnWA==", - "requires": { - "bn.js": "^4.11.0", - "create-hash": "^1.1.2", - "ethjs-util": "^0.1.3", - "keccak": "^1.0.2", - "rlp": "^2.0.0", - "safe-buffer": "^5.1.1", - "secp256k1": "^3.0.1" - } + "events": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/events/-/events-1.1.1.tgz", + "integrity": "sha1-nr23Y1rQmccNzEwqH1AEKI6L2SQ=" }, - "keccak": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/keccak/-/keccak-1.4.0.tgz", - "integrity": "sha512-eZVaCpblK5formjPjeTBik7TAg+pqnDrMHIffSvi9Lh7PQgM1+hSzakUeZFCk9DVVG0dacZJuaz2ntwlzZUIBw==", - "requires": { - "bindings": "^1.2.1", - "inherits": "^2.0.3", - "nan": "^2.2.1", - "safe-buffer": "^5.1.0" - } + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" }, - "penpal": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/penpal/-/penpal-4.1.1.tgz", - "integrity": "sha512-6d1f8khVLyBz3DnhLztbfjJ7+ANxdXRM2l6awpnCdEtbrmse4AGTsELOvGuNY0SU7xZw7heGbP6IikVvaVTOWw==" + "sax": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.1.tgz", + "integrity": "sha1-e45lYZCyKOgaZq6nSEgNgozS03o=" }, - "pocket-js-core": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/pocket-js-core/-/pocket-js-core-0.0.6.tgz", - "integrity": "sha512-HxJNzQIaSC2Mg8bi37muX8XpkH/qovx3dM9pPwfYPMb/qngM+tH/tkLau/wuPnk3JEP+A0GzIN+sR/l/uA7/rA==", + "xml2js": { + "version": "0.4.19", + "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.19.tgz", + "integrity": "sha512-esZnJZJOiJR9wWKMyuvSE1y6Dq5LCuJanqhxslH2bxM6duahNZ+HMpCLhBQGZkbX6xRf8x1Y2eJlgt2q3qo49Q==", "requires": { - "axios": "^0.18.1" + "sax": ">=0.6.0", + "xmlbuilder": "~9.0.1" } }, - "web3-provider-engine": { - "version": "15.0.4", - "resolved": "https://registry.npmjs.org/web3-provider-engine/-/web3-provider-engine-15.0.4.tgz", - "integrity": "sha512-Ob9oK0TUZfVC7NXkB7CQSWAiCdCD/Xnlh2zTnV8NdJR8LCrMAy2i6JedU70JHaxw59y7mM4GnsYOTTGkquFnNQ==", - "requires": { - "async": "^2.5.0", - "backoff": "^2.5.0", - "clone": "^2.0.0", - "cross-fetch": "^2.1.0", - "eth-block-tracker": "^4.4.2", - "eth-json-rpc-errors": "^1.0.1", - "eth-json-rpc-filters": "^4.1.1", - "eth-json-rpc-infura": "^4.0.1", - "eth-json-rpc-middleware": "^4.1.5", - "eth-sig-util": "^1.4.2", - "ethereumjs-block": "^1.2.2", - "ethereumjs-tx": "^1.2.0", - "ethereumjs-util": "^5.1.5", - "ethereumjs-vm": "^2.3.4", - "json-stable-stringify": "^1.0.1", - "promise-to-callback": "^1.0.0", - "readable-stream": "^2.2.9", - "request": "^2.85.0", - "semaphore": "^1.0.3", - "ws": "^5.1.1", - "xhr": "^2.2.0", - "xtend": "^4.0.1" - } + "xmlbuilder": { + "version": "9.0.7", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-9.0.7.tgz", + "integrity": "sha1-Ey7mPS7FVlxVfiD0wi35rKaGsQ0=" } } }, @@ -36352,6 +36300,11 @@ "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", "dev": true }, + "sys": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/sys/-/sys-0.0.1.tgz", + "integrity": "sha1-NIDMaVcUkFt6vOUKVaWjmFmX5hk=" + }, "table": { "version": "5.4.6", "resolved": "https://registry.npmjs.org/table/-/table-5.4.6.tgz", @@ -37472,7 +37425,6 @@ "version": "0.10.3", "resolved": "https://registry.npmjs.org/url/-/url-0.10.3.tgz", "integrity": "sha1-Ah5NnHcF8hu/N9A861h2dAJ3TGQ=", - "dev": true, "requires": { "punycode": "1.3.2", "querystring": "0.2.0" @@ -37481,8 +37433,7 @@ "punycode": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", - "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=", - "dev": true + "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=" } } }, diff --git a/package.json b/package.json index df0d6c4a3..c18669641 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "redux": "^4.0.0", "redux-thunk": "^2.3.0", "scrypt-shim": "github:web3-js/scrypt-shim", - "simpleid-js-sdk": "^0.1.4-beta", + "simpleid-js-sdk": "^1.0.0", "source-map-explorer": "^2.1.2", "squarelink": "^1.1.4", "web3": "^1.2.4",