Browse Source

Version 0.4.0

master v0.4.0
Ezerous 4 years ago
parent
commit
e1592f9661
  1. 12
      package.json
  2. 7
      src/accounts/accountsMiddleware.js
  3. 6
      src/accounts/accountsReducer.js
  4. 1
      src/blocks/blocksSaga.js
  5. 25
      src/drizzle/drizzleStatusReducer.js
  6. 5
      src/drizzle/drizzleStatusSaga.js
  7. 4
      src/index.js
  8. 2
      src/mergeOptions.js
  9. 20
      src/transactions/transactionStackReducer.js
  10. 7
      src/web3/web3Actions.js
  11. 8
      src/web3/web3Middleware.js
  12. 16
      src/web3/web3Reducer.js
  13. 1
      src/web3/web3Saga.js
  14. 342
      yarn.lock

12
package.json

@ -1,16 +1,16 @@
{ {
"name": "@ezerous/drizzle", "name": "@ezerous/drizzle",
"version": "0.3.0", "version": "0.4.0",
"description": "A reactive data-store for web3 and smart contracts.", "description": "A reactive data-store for web3 and smart contracts.",
"license": "MIT", "license": "MIT",
"author": "Ezerous <ezerous@gmail.com>", "author": "Ezerous <ezerous@gmail.com>",
"main": "src/index.js", "main": "src/index.js",
"repository": "github:Ezerous/drizzle", "repository": "github:Ezerous/drizzle",
"dependencies": { "dependencies": {
"deepmerge": "4.2.2", "deepmerge": "~4.2.2",
"is-plain-object": "4.1.1", "is-plain-object": "~5.0.0",
"redux": "4.0.5", "redux": "~4.0.5",
"redux-saga": "1.1.3", "redux-saga": "~1.1.3",
"web3": "1.2.11" "web3": "~1.3.0"
} }
} }

7
src/accounts/accountsMiddleware.js

@ -1,5 +1,5 @@
import { networkIdChanged, WEB3_INITIALIZED } from '../web3/web3Actions' import { WEB3_INITIALIZED } from '../web3/web3Actions'
import { accountsChanged, accountsFetched, accountsListening } from './accountsActions' import { accountsChanged, accountsListening } from './accountsActions'
export const accountsMiddleware = web3 => store => next => action => { export const accountsMiddleware = web3 => store => next => action => {
const { type } = action const { type } = action
@ -15,7 +15,8 @@ export const accountsMiddleware = web3 => store => next => action => {
patchedAccounts.forEach((account, i) => patchedAccounts[i] = web3.utils.toChecksumAddress(account)); patchedAccounts.forEach((account, i) => patchedAccounts[i] = web3.utils.toChecksumAddress(account));
const storedAccounts = store.getState().accounts; const storedAccounts = store.getState().accounts;
if(storedAccounts[0] && (patchedAccounts[0] !== storedAccounts[0])) const accountsFailed = store.getState().web3.accountsFailed;
if((storedAccounts[0] || accountsFailed) && (patchedAccounts[0] !== storedAccounts[0]))
store.dispatch(accountsChanged(patchedAccounts)); store.dispatch(accountsChanged(patchedAccounts));
}); });
store.dispatch(accountsListening()); store.dispatch(accountsListening());

6
src/accounts/accountsReducer.js

@ -1,12 +1,8 @@
import { ACCOUNTS_CHANGED, ACCOUNTS_FETCHED, ACCOUNTS_FETCHING } from './accountsActions' import { ACCOUNTS_CHANGED, ACCOUNTS_FETCHED } from './accountsActions'
const initialState = {} const initialState = {}
const accountsReducer = (state = initialState, action) => { const accountsReducer = (state = initialState, action) => {
if (action.type === ACCOUNTS_FETCHING) {
return state
}
if (action.type === ACCOUNTS_FETCHED || action.type === ACCOUNTS_CHANGED) { if (action.type === ACCOUNTS_FETCHED || action.type === ACCOUNTS_CHANGED) {
return Object.assign({}, state, action.accounts) return Object.assign({}, state, action.accounts)
} }

1
src/blocks/blocksSaga.js

@ -1,6 +1,7 @@
import { END, eventChannel } from 'redux-saga' import { END, eventChannel } from 'redux-saga'
import { all, call, put, take, takeEvery, takeLatest } from 'redux-saga/effects' import { all, call, put, take, takeEvery, takeLatest } from 'redux-saga/effects'
import * as BlocksActions from './blockActions' import * as BlocksActions from './blockActions'
import * as ContractActions from '../contracts/constants'
/* /*
* Listen for Blocks * Listen for Blocks

25
src/drizzle/drizzleStatusReducer.js

@ -1,7 +1,9 @@
import * as DrizzleActions from './drizzleActions' import * as DrizzleActions from './drizzleActions'
const initialState = { const initialState = {
initialized: false initializing: true,
initialized: false,
failed: false
} }
const drizzleStatusReducer = (state = initialState, action) => { const drizzleStatusReducer = (state = initialState, action) => {
@ -9,12 +11,31 @@ const drizzleStatusReducer = (state = initialState, action) => {
* Drizzle Status * Drizzle Status
*/ */
if (action.type === DrizzleActions.DRIZZLE_INITIALIZING) {
return {
...state,
...initialState
}
}
if (action.type === DrizzleActions.DRIZZLE_INITIALIZED) { if (action.type === DrizzleActions.DRIZZLE_INITIALIZED) {
return { return {
...state, ...state,
initialized: true initializing: false,
initialized: true,
failed: false
} }
} }
if (action.type === DrizzleActions.DRIZZLE_FAILED) {
return {
...state,
initializing: false,
initialized: false,
failed: true
}
}
return state return state
} }

5
src/drizzle/drizzleStatusSaga.js

@ -54,17 +54,14 @@ export function * initializeDrizzle (action) {
} }
yield put({ type: BlocksActions.BLOCKS_LISTENING, drizzle, web3 }) yield put({ type: BlocksActions.BLOCKS_LISTENING, drizzle, web3 })
yield put({ type: DrizzleActions.DRIZZLE_INITIALIZED, drizzle })
} }
} }
} catch (error) { } catch (error) {
yield put({ type: DrizzleActions.DRIZZLE_FAILED, error }) yield put({ type: DrizzleActions.DRIZZLE_FAILED, error })
console.error('Error initializing Drizzle:') console.error('Error initializing Drizzle:')
console.error(error) console.error(error)
return
} }
yield put({ type: DrizzleActions.DRIZZLE_INITIALIZED })
} }
function * drizzleStatusSaga () { function * drizzleStatusSaga () {

4
src/index.js

@ -3,8 +3,9 @@ import { generateStore } from './generateStore'
import { generateContractsInitialState } from './contractStateUtils' import { generateContractsInitialState } from './contractStateUtils'
// Actions // Actions
import * as EventActions from './contracts/constants'
import * as AccountActions from './accounts/accountsActions' import * as AccountActions from './accounts/accountsActions'
import * as DrizzleActions from './drizzle/drizzleActions'
import * as EventActions from './contracts/constants'
// Reducers // Reducers
import drizzleReducers from './root/rootReducer' import drizzleReducers from './root/rootReducer'
@ -17,6 +18,7 @@ import drizzleSagas from './root/rootSaga'
const drizzleActions = { const drizzleActions = {
account: AccountActions, account: AccountActions,
drizzle: DrizzleActions,
event: EventActions event: EventActions
} }

2
src/mergeOptions.js

@ -1,5 +1,5 @@
const merge = require('deepmerge'); const merge = require('deepmerge');
import isPlainObject from 'is-plain-object' import { isPlainObject } from 'is-plain-object';
export default function (defaultOptions, newOptions) { export default function (defaultOptions, newOptions) {
return merge(defaultOptions, newOptions, { return merge(defaultOptions, newOptions, {

20
src/transactions/transactionStackReducer.js

@ -4,22 +4,26 @@ const initialState = []
const transactionStackReducer = (state = initialState, action) => { const transactionStackReducer = (state = initialState, action) => {
if (action.type === TransactionsActions.PUSH_TO_TXSTACK) { if (action.type === TransactionsActions.PUSH_TO_TXSTACK) {
return [...state, action.stackTempKey] return [...state, action.stackTempKey];
} }
if (action.type === TransactionsActions.POP_FROM_TXSTACK) { if (action.type === TransactionsActions.POP_FROM_TXSTACK) {
state.pop() return [...state.slice(0, -1)];
return [...state]
} }
if (action.type === TransactionsActions.TX_BROADCASTED) { if (action.type === TransactionsActions.TX_BROADCASTED) {
state[action.stackId] = action.txHash return state.map((txHash, index) => {
if (index !== action.stackId) {
return [...state] // This isn't the item we care about - keep it as-is
return txHash;
}
// Otherwise, this is the one we want - return an updated value
return action.txHash;
})
} }
return state return state;
} }
export default transactionStackReducer export default transactionStackReducer

7
src/web3/web3Actions.js

@ -7,6 +7,7 @@ export const WEB3_NETWORK_FETCHING = 'WEB3_NETWORK_FETCHING'
export const WEB3_NETWORK_FETCHED = 'WEB3_NETWORK_FETCHED' export const WEB3_NETWORK_FETCHED = 'WEB3_NETWORK_FETCHED'
export const WEB3_NETWORK_CHANGED = 'WEB3_NETWORK_CHANGED' export const WEB3_NETWORK_CHANGED = 'WEB3_NETWORK_CHANGED'
export const WEB3_NETWORK_FAILED = 'WEB3_NETWORK_FAILED' export const WEB3_NETWORK_FAILED = 'WEB3_NETWORK_FAILED'
export const WEB3_NETWORK_LISTENING = 'WEB3_NETWORK_LISTENING'
export const WEB3_NETWORK_MISMATCH = 'WEB3_NETWORK_MISMATCH' export const WEB3_NETWORK_MISMATCH = 'WEB3_NETWORK_MISMATCH'
export const NETWORK_IDS = { export const NETWORK_IDS = {
@ -30,3 +31,9 @@ export function networkChanged () {
type: WEB3_NETWORK_CHANGED type: WEB3_NETWORK_CHANGED
} }
} }
export function networkListening () {
return {
type: WEB3_NETWORK_LISTENING
}
}

8
src/web3/web3Middleware.js

@ -1,4 +1,4 @@
import { networkChanged, networkInfoFetching, WEB3_INITIALIZED } from './web3Actions' import { networkChanged, networkInfoFetching, networkListening, WEB3_INITIALIZED } from './web3Actions'
export const web3Middleware = web3 => store => next => action => { export const web3Middleware = web3 => store => next => action => {
const { type } = action const { type } = action
@ -9,12 +9,14 @@ export const web3Middleware = web3 => store => next => action => {
else { else {
web3 = action.web3; web3 = action.web3;
window.ethereum.on('chainChanged', (chainId) => { window.ethereum.on('chainChanged', (chainId) => {
const storedNetworkId = store.getState().web3.chainId; const storedChainId = store.getState().web3.chainId;
if(storedNetworkId && (chainId !== storedNetworkId)){ const networkFailed = store.getState().web3.networkFailed;
if((storedChainId || networkFailed) && (chainId !== storedChainId)){
store.dispatch(networkChanged()); store.dispatch(networkChanged());
store.dispatch(networkInfoFetching(web3)); store.dispatch(networkInfoFetching(web3));
} }
}); });
store.dispatch(networkListening());
} }
} }
return next(action) return next(action)

16
src/web3/web3Reducer.js

@ -1,7 +1,8 @@
import * as Action from './web3Actions' import * as Action from './web3Actions'
import { ACCOUNTS_FAILED } from '../accounts/accountsActions'
const initialState = { const initialState = {
status: '' status: 'initializing'
} }
const web3Reducer = (state = initialState, action) => { const web3Reducer = (state = initialState, action) => {
@ -38,14 +39,16 @@ const web3Reducer = (state = initialState, action) => {
...state, ...state,
networkId: action.networkInfo.networkId, networkId: action.networkInfo.networkId,
chainId: action.networkInfo.chainId, chainId: action.networkInfo.chainId,
nodeInfo: action.networkInfo.nodeInfo nodeInfo: action.networkInfo.nodeInfo,
networkFailed: false,
networkMismatch: false
} }
} }
if (action.type === Action.WEB3_NETWORK_FAILED) { if (action.type === Action.WEB3_NETWORK_FAILED) {
return { return {
...state, ...state,
networkId: action.networkId networkFailed: true
} }
} }
if (action.type === Action.WEB3_NETWORK_MISMATCH) { if (action.type === Action.WEB3_NETWORK_MISMATCH) {
@ -55,6 +58,13 @@ const web3Reducer = (state = initialState, action) => {
} }
} }
if (action.type === ACCOUNTS_FAILED) {
return {
...state,
accountsFailed: true
}
}
return state return state
} }

1
src/web3/web3Saga.js

@ -8,6 +8,7 @@ const Web3 = require('web3');
*/ */
export function * initializeWeb3 (options) { export function * initializeWeb3 (options) {
try { try {
yield put({ type: Action.WEB3_INITIALIZING });
let web3 = {} let web3 = {}
if (window.ethereum) { if (window.ethereum) {

342
yarn.lock

@ -1226,10 +1226,10 @@ is-plain-obj@^1.1.0:
resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e"
integrity sha1-caUMhCnfync8kqOQpKA7OfzVHT4= integrity sha1-caUMhCnfync8kqOQpKA7OfzVHT4=
is-plain-object@4.1.1: is-plain-object@5.0.0:
version "4.1.1" version "5.0.0"
resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-4.1.1.tgz#1a14d6452cbd50790edc7fdaa0aed5a40a35ebb5" resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-5.0.0.tgz#4427f50ab3429e9025ea7d52e9043a9ef4159344"
integrity sha512-5Aw8LLVsDlZsETVMhoMXzqsXwQqr/0vlnBYzIXJbYo2F4yYlhLHs+Ez7Bod7IIQKWkJbJfxrWD7pA1Dw1TKrwA== integrity sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==
is-retry-allowed@^1.0.0: is-retry-allowed@^1.0.0:
version "1.2.0" version "1.2.0"
@ -1566,10 +1566,10 @@ object-assign@^4, object-assign@^4.1.0, object-assign@^4.1.1:
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM= integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=
oboe@2.1.4: oboe@2.1.5:
version "2.1.4" version "2.1.5"
resolved "https://registry.yarnpkg.com/oboe/-/oboe-2.1.4.tgz#20c88cdb0c15371bb04119257d4fdd34b0aa49f6" resolved "https://registry.yarnpkg.com/oboe/-/oboe-2.1.5.tgz#5554284c543a2266d7a38f17e073821fbde393cd"
integrity sha1-IMiM2wwVNxuwQRklfU/dNLCqSfY= integrity sha1-VVQoTFQ6ImbXo48X4HOCH73jk80=
dependencies: dependencies:
http-https "^1.0.0" http-https "^1.0.0"
@ -2191,90 +2191,90 @@ verror@1.10.0:
core-util-is "1.0.2" core-util-is "1.0.2"
extsprintf "^1.2.0" extsprintf "^1.2.0"
web3-bzz@1.2.11: web3-bzz@1.3.0:
version "1.2.11" version "1.3.0"
resolved "https://registry.yarnpkg.com/web3-bzz/-/web3-bzz-1.2.11.tgz#41bc19a77444bd5365744596d778b811880f707f" resolved "https://registry.yarnpkg.com/web3-bzz/-/web3-bzz-1.3.0.tgz#83dfd77fa8a64bbb660462dffd0fee2a02ef1051"
integrity sha512-XGpWUEElGypBjeFyUhTkiPXFbDVD6Nr/S5jznE3t8cWUA0FxRf1n3n/NuIZeb0H9RkN2Ctd/jNma/k8XGa3YKg== integrity sha512-ibYAnKab+sgTo/UdfbrvYfWblXjjgSMgyy9/FHa6WXS14n/HVB+HfWqGz2EM3fok8Wy5XoKGMvdqvERQ/mzq1w==
dependencies: dependencies:
"@types/node" "^12.12.6" "@types/node" "^12.12.6"
got "9.6.0" got "9.6.0"
swarm-js "^0.1.40" swarm-js "^0.1.40"
underscore "1.9.1" underscore "1.9.1"
web3-core-helpers@1.2.11: web3-core-helpers@1.3.0:
version "1.2.11" version "1.3.0"
resolved "https://registry.yarnpkg.com/web3-core-helpers/-/web3-core-helpers-1.2.11.tgz#84c681ed0b942c0203f3b324a245a127e8c67a99" resolved "https://registry.yarnpkg.com/web3-core-helpers/-/web3-core-helpers-1.3.0.tgz#697cc3246a7eaaaac64ea506828d861c981c3f31"
integrity sha512-PEPoAoZd5ME7UfbnCZBdzIerpe74GEvlwT4AjOmHeCVZoIFk7EqvOZDejJHt+feJA6kMVTdd0xzRNN295UhC1A== integrity sha512-+MFb1kZCrRctf7UYE7NCG4rGhSXaQJ/KF07di9GVK1pxy1K0+rFi61ZobuV1ky9uQp+uhhSPts4Zp55kRDB5sw==
dependencies: dependencies:
underscore "1.9.1" underscore "1.9.1"
web3-eth-iban "1.2.11" web3-eth-iban "1.3.0"
web3-utils "1.2.11" web3-utils "1.3.0"
web3-core-method@1.2.11: web3-core-method@1.3.0:
version "1.2.11" version "1.3.0"
resolved "https://registry.yarnpkg.com/web3-core-method/-/web3-core-method-1.2.11.tgz#f880137d1507a0124912bf052534f168b8d8fbb6" resolved "https://registry.yarnpkg.com/web3-core-method/-/web3-core-method-1.3.0.tgz#a71387af842aec7dbad5dbbd1130c14cc6c8beb3"
integrity sha512-ff0q76Cde94HAxLDZ6DbdmKniYCQVtvuaYh+rtOUMB6kssa5FX0q3vPmixi7NPooFnbKmmZCM6NvXg4IreTPIw== integrity sha512-h0yFDrYVzy5WkLxC/C3q+hiMnzxdWm9p1T1rslnuHgOp6nYfqzu/6mUIXrsS4h/OWiGJt+BZ0xVZmtC31HDWtg==
dependencies: dependencies:
"@ethersproject/transactions" "^5.0.0-beta.135" "@ethersproject/transactions" "^5.0.0-beta.135"
underscore "1.9.1" underscore "1.9.1"
web3-core-helpers "1.2.11" web3-core-helpers "1.3.0"
web3-core-promievent "1.2.11" web3-core-promievent "1.3.0"
web3-core-subscriptions "1.2.11" web3-core-subscriptions "1.3.0"
web3-utils "1.2.11" web3-utils "1.3.0"
web3-core-promievent@1.2.11: web3-core-promievent@1.3.0:
version "1.2.11" version "1.3.0"
resolved "https://registry.yarnpkg.com/web3-core-promievent/-/web3-core-promievent-1.2.11.tgz#51fe97ca0ddec2f99bf8c3306a7a8e4b094ea3cf" resolved "https://registry.yarnpkg.com/web3-core-promievent/-/web3-core-promievent-1.3.0.tgz#e0442dd0a8989b6bdce09293976cee6d9237a484"
integrity sha512-il4McoDa/Ox9Agh4kyfQ8Ak/9ABYpnF8poBLL33R/EnxLsJOGQG2nZhkJa3I067hocrPSjEdlPt/0bHXsln4qA== integrity sha512-blv69wrXw447TP3iPvYJpllkhW6B18nfuEbrfcr3n2Y0v1Jx8VJacNZFDFsFIcgXcgUIVCtOpimU7w9v4+rtaw==
dependencies: dependencies:
eventemitter3 "4.0.4" eventemitter3 "4.0.4"
web3-core-requestmanager@1.2.11: web3-core-requestmanager@1.3.0:
version "1.2.11" version "1.3.0"
resolved "https://registry.yarnpkg.com/web3-core-requestmanager/-/web3-core-requestmanager-1.2.11.tgz#fe6eb603fbaee18530293a91f8cf26d8ae28c45a" resolved "https://registry.yarnpkg.com/web3-core-requestmanager/-/web3-core-requestmanager-1.3.0.tgz#c5b9a0304504c0e6cce6c90bc1a3bff82732aa1f"
integrity sha512-oFhBtLfOiIbmfl6T6gYjjj9igOvtyxJ+fjS+byRxiwFJyJ5BQOz4/9/17gWR1Cq74paTlI7vDGxYfuvfE/mKvA== integrity sha512-3yMbuGcomtzlmvTVqNRydxsx7oPlw3ioRL6ReF9PeNYDkUsZaUib+6Dp5eBt7UXh5X+SIn/xa1smhDHz5/HpAw==
dependencies: dependencies:
underscore "1.9.1" underscore "1.9.1"
web3-core-helpers "1.2.11" web3-core-helpers "1.3.0"
web3-providers-http "1.2.11" web3-providers-http "1.3.0"
web3-providers-ipc "1.2.11" web3-providers-ipc "1.3.0"
web3-providers-ws "1.2.11" web3-providers-ws "1.3.0"
web3-core-subscriptions@1.2.11: web3-core-subscriptions@1.3.0:
version "1.2.11" version "1.3.0"
resolved "https://registry.yarnpkg.com/web3-core-subscriptions/-/web3-core-subscriptions-1.2.11.tgz#beca908fbfcb050c16f45f3f0f4c205e8505accd" resolved "https://registry.yarnpkg.com/web3-core-subscriptions/-/web3-core-subscriptions-1.3.0.tgz#c2622ccd2b84f4687475398ff966b579dba0847e"
integrity sha512-qEF/OVqkCvQ7MPs1JylIZCZkin0aKK9lDxpAtQ1F8niEDGFqn7DT8E/vzbIa0GsOjL2fZjDhWJsaW+BSoAW1gg== integrity sha512-MUUQUAhJDb+Nz3S97ExVWveH4utoUnsbPWP+q1HJH437hEGb4vunIb9KvN3hFHLB+aHJfPeStM/4yYTz5PeuyQ==
dependencies: dependencies:
eventemitter3 "4.0.4" eventemitter3 "4.0.4"
underscore "1.9.1" underscore "1.9.1"
web3-core-helpers "1.2.11" web3-core-helpers "1.3.0"
web3-core@1.2.11: web3-core@1.3.0:
version "1.2.11" version "1.3.0"
resolved "https://registry.yarnpkg.com/web3-core/-/web3-core-1.2.11.tgz#1043cacc1becb80638453cc5b2a14be9050288a7" resolved "https://registry.yarnpkg.com/web3-core/-/web3-core-1.3.0.tgz#b818903738461c1cca0163339e1d6d3fa51242cf"
integrity sha512-CN7MEYOY5ryo5iVleIWRE3a3cZqVaLlIbIzDPsvQRUfzYnvzZQRZBm9Mq+ttDi2STOOzc1MKylspz/o3yq/LjQ== integrity sha512-BwWvAaKJf4KFG9QsKRi3MNoNgzjI6szyUlgme1qNPxUdCkaS3Rdpa0VKYNHP7M/YTk82/59kNE66mH5vmoaXjA==
dependencies: dependencies:
"@types/bn.js" "^4.11.5" "@types/bn.js" "^4.11.5"
"@types/node" "^12.12.6" "@types/node" "^12.12.6"
bignumber.js "^9.0.0" bignumber.js "^9.0.0"
web3-core-helpers "1.2.11" web3-core-helpers "1.3.0"
web3-core-method "1.2.11" web3-core-method "1.3.0"
web3-core-requestmanager "1.2.11" web3-core-requestmanager "1.3.0"
web3-utils "1.2.11" web3-utils "1.3.0"
web3-eth-abi@1.2.11: web3-eth-abi@1.3.0:
version "1.2.11" version "1.3.0"
resolved "https://registry.yarnpkg.com/web3-eth-abi/-/web3-eth-abi-1.2.11.tgz#a887494e5d447c2926d557a3834edd66e17af9b0" resolved "https://registry.yarnpkg.com/web3-eth-abi/-/web3-eth-abi-1.3.0.tgz#387b7ea9b38be69ad8856bc7b4e9a6a69bb4d22b"
integrity sha512-PkRYc0+MjuLSgg03QVWqWlQivJqRwKItKtEpRUaxUAeLE7i/uU39gmzm2keHGcQXo3POXAbOnMqkDvOep89Crg== integrity sha512-1OrZ9+KGrBeBRd3lO8upkpNua9+7cBsQAgor9wbA25UrcUYSyL8teV66JNRu9gFxaTbkpdrGqM7J/LXpraXWrg==
dependencies: dependencies:
"@ethersproject/abi" "5.0.0-beta.153" "@ethersproject/abi" "5.0.0-beta.153"
underscore "1.9.1" underscore "1.9.1"
web3-utils "1.2.11" web3-utils "1.3.0"
web3-eth-accounts@1.2.11: web3-eth-accounts@1.3.0:
version "1.2.11" version "1.3.0"
resolved "https://registry.yarnpkg.com/web3-eth-accounts/-/web3-eth-accounts-1.2.11.tgz#a9e3044da442d31903a7ce035a86d8fa33f90520" resolved "https://registry.yarnpkg.com/web3-eth-accounts/-/web3-eth-accounts-1.3.0.tgz#010acf389b2bee6d5e1aecb2fe78bfa5c8f26c7a"
integrity sha512-6FwPqEpCfKIh3nSSGeo3uBm2iFSnFJDfwL3oS9pyegRBXNsGRVpgiW63yhNzL0796StsvjHWwQnQHsZNxWAkGw== integrity sha512-/Q7EVW4L2wWUbNRtOTwAIrYvJid/5UnKMw67x/JpvRMwYC+e+744P536Ja6SG4X3MnzFvd3E/jruV4qa6k+zIw==
dependencies: dependencies:
crypto-browserify "3.12.0" crypto-browserify "3.12.0"
eth-lib "0.2.8" eth-lib "0.2.8"
@ -2283,130 +2283,130 @@ web3-eth-accounts@1.2.11:
scrypt-js "^3.0.1" scrypt-js "^3.0.1"
underscore "1.9.1" underscore "1.9.1"
uuid "3.3.2" uuid "3.3.2"
web3-core "1.2.11" web3-core "1.3.0"
web3-core-helpers "1.2.11" web3-core-helpers "1.3.0"
web3-core-method "1.2.11" web3-core-method "1.3.0"
web3-utils "1.2.11" web3-utils "1.3.0"
web3-eth-contract@1.2.11: web3-eth-contract@1.3.0:
version "1.2.11" version "1.3.0"
resolved "https://registry.yarnpkg.com/web3-eth-contract/-/web3-eth-contract-1.2.11.tgz#917065902bc27ce89da9a1da26e62ef663663b90" resolved "https://registry.yarnpkg.com/web3-eth-contract/-/web3-eth-contract-1.3.0.tgz#c758340ac800788e29fa29edc8b0c0ac957b741c"
integrity sha512-MzYuI/Rq2o6gn7vCGcnQgco63isPNK5lMAan2E51AJLknjSLnOxwNY3gM8BcKoy4Z+v5Dv00a03Xuk78JowFow== integrity sha512-3SCge4SRNCnzLxf0R+sXk6vyTOl05g80Z5+9/B5pERwtPpPWaQGw8w01vqYqsYBKC7zH+dxhMaUgVzU2Dgf7bQ==
dependencies: dependencies:
"@types/bn.js" "^4.11.5" "@types/bn.js" "^4.11.5"
underscore "1.9.1" underscore "1.9.1"
web3-core "1.2.11" web3-core "1.3.0"
web3-core-helpers "1.2.11" web3-core-helpers "1.3.0"
web3-core-method "1.2.11" web3-core-method "1.3.0"
web3-core-promievent "1.2.11" web3-core-promievent "1.3.0"
web3-core-subscriptions "1.2.11" web3-core-subscriptions "1.3.0"
web3-eth-abi "1.2.11" web3-eth-abi "1.3.0"
web3-utils "1.2.11" web3-utils "1.3.0"
web3-eth-ens@1.2.11: web3-eth-ens@1.3.0:
version "1.2.11" version "1.3.0"
resolved "https://registry.yarnpkg.com/web3-eth-ens/-/web3-eth-ens-1.2.11.tgz#26d4d7f16d6cbcfff918e39832b939edc3162532" resolved "https://registry.yarnpkg.com/web3-eth-ens/-/web3-eth-ens-1.3.0.tgz#0887ba38473c104cf5fb8a715828b3b354fa02a2"
integrity sha512-dbW7dXP6HqT1EAPvnniZVnmw6TmQEKF6/1KgAxbo8iBBYrVTMDGFQUUnZ+C4VETGrwwaqtX4L9d/FrQhZ6SUiA== integrity sha512-WnOru+EcuM5dteiVYJcHXo/I7Wq+ei8RrlS2nir49M0QpYvUPGbCGgTbifcjJQTWamgORtWdljSA1s2Asdb74w==
dependencies: dependencies:
content-hash "^2.5.2" content-hash "^2.5.2"
eth-ens-namehash "2.0.8" eth-ens-namehash "2.0.8"
underscore "1.9.1" underscore "1.9.1"
web3-core "1.2.11" web3-core "1.3.0"
web3-core-helpers "1.2.11" web3-core-helpers "1.3.0"
web3-core-promievent "1.2.11" web3-core-promievent "1.3.0"
web3-eth-abi "1.2.11" web3-eth-abi "1.3.0"
web3-eth-contract "1.2.11" web3-eth-contract "1.3.0"
web3-utils "1.2.11" web3-utils "1.3.0"
web3-eth-iban@1.2.11: web3-eth-iban@1.3.0:
version "1.2.11" version "1.3.0"
resolved "https://registry.yarnpkg.com/web3-eth-iban/-/web3-eth-iban-1.2.11.tgz#f5f73298305bc7392e2f188bf38a7362b42144ef" resolved "https://registry.yarnpkg.com/web3-eth-iban/-/web3-eth-iban-1.3.0.tgz#15b782dfaf273ebc4e3f389f1367f4e88ddce4a5"
integrity sha512-ozuVlZ5jwFC2hJY4+fH9pIcuH1xP0HEFhtWsR69u9uDIANHLPQQtWYmdj7xQ3p2YT4bQLq/axKhZi7EZVetmxQ== integrity sha512-v9mZWhR4fPF17/KhHLiWir4YHWLe09O3B/NTdhWqw3fdAMJNztzMHGzgHxA/4fU+rhrs/FhDzc4yt32zMEXBZw==
dependencies: dependencies:
bn.js "^4.11.9" bn.js "^4.11.9"
web3-utils "1.2.11" web3-utils "1.3.0"
web3-eth-personal@1.2.11: web3-eth-personal@1.3.0:
version "1.2.11" version "1.3.0"
resolved "https://registry.yarnpkg.com/web3-eth-personal/-/web3-eth-personal-1.2.11.tgz#a38b3942a1d87a62070ce0622a941553c3d5aa70" resolved "https://registry.yarnpkg.com/web3-eth-personal/-/web3-eth-personal-1.3.0.tgz#d376e03dc737d961ff1f8d1aca866efad8477135"
integrity sha512-42IzUtKq9iHZ8K9VN0vAI50iSU9tOA1V7XU2BhF/tb7We2iKBVdkley2fg26TxlOcKNEHm7o6HRtiiFsVK4Ifw== integrity sha512-2czUhElsJdLpuNfun9GeLiClo5O6Xw+bLSjl3f4bNG5X2V4wcIjX2ygep/nfstLLtkz8jSkgl/bV7esANJyeRA==
dependencies: dependencies:
"@types/node" "^12.12.6" "@types/node" "^12.12.6"
web3-core "1.2.11" web3-core "1.3.0"
web3-core-helpers "1.2.11" web3-core-helpers "1.3.0"
web3-core-method "1.2.11" web3-core-method "1.3.0"
web3-net "1.2.11" web3-net "1.3.0"
web3-utils "1.2.11" web3-utils "1.3.0"
web3-eth@1.2.11: web3-eth@1.3.0:
version "1.2.11" version "1.3.0"
resolved "https://registry.yarnpkg.com/web3-eth/-/web3-eth-1.2.11.tgz#4c81fcb6285b8caf544058fba3ae802968fdc793" resolved "https://registry.yarnpkg.com/web3-eth/-/web3-eth-1.3.0.tgz#898e5f5a8827f9bc6844e267a52eb388916a6771"
integrity sha512-REvxW1wJ58AgHPcXPJOL49d1K/dPmuw4LjPLBPStOVkQjzDTVmJEIsiLwn2YeuNDd4pfakBwT8L3bz1G1/wVsQ== integrity sha512-/bzJcxXPM9EM18JM5kO2JjZ3nEqVo3HxqU93aWAEgJNqaP/Lltmufl2GpvIB2Hvj+FXAjAXquxUdQ2/xP7BzHQ==
dependencies: dependencies:
underscore "1.9.1" underscore "1.9.1"
web3-core "1.2.11" web3-core "1.3.0"
web3-core-helpers "1.2.11" web3-core-helpers "1.3.0"
web3-core-method "1.2.11" web3-core-method "1.3.0"
web3-core-subscriptions "1.2.11" web3-core-subscriptions "1.3.0"
web3-eth-abi "1.2.11" web3-eth-abi "1.3.0"
web3-eth-accounts "1.2.11" web3-eth-accounts "1.3.0"
web3-eth-contract "1.2.11" web3-eth-contract "1.3.0"
web3-eth-ens "1.2.11" web3-eth-ens "1.3.0"
web3-eth-iban "1.2.11" web3-eth-iban "1.3.0"
web3-eth-personal "1.2.11" web3-eth-personal "1.3.0"
web3-net "1.2.11" web3-net "1.3.0"
web3-utils "1.2.11" web3-utils "1.3.0"
web3-net@1.2.11: web3-net@1.3.0:
version "1.2.11" version "1.3.0"
resolved "https://registry.yarnpkg.com/web3-net/-/web3-net-1.2.11.tgz#eda68ef25e5cdb64c96c39085cdb74669aabbe1b" resolved "https://registry.yarnpkg.com/web3-net/-/web3-net-1.3.0.tgz#b69068cccffab58911c2f08ca4abfbefb0f948c6"
integrity sha512-sjrSDj0pTfZouR5BSTItCuZ5K/oZPVdVciPQ6981PPPIwJJkCMeVjD7I4zO3qDPCnBjBSbWvVnLdwqUBPtHxyg== integrity sha512-Xz02KylOyrB2YZzCkysEDrY7RbKxb7LADzx3Zlovfvuby7HBwtXVexXKtoGqksa+ns1lvjQLLQGb+OeLi7Sr7w==
dependencies: dependencies:
web3-core "1.2.11" web3-core "1.3.0"
web3-core-method "1.2.11" web3-core-method "1.3.0"
web3-utils "1.2.11" web3-utils "1.3.0"
web3-providers-http@1.2.11: web3-providers-http@1.3.0:
version "1.2.11" version "1.3.0"
resolved "https://registry.yarnpkg.com/web3-providers-http/-/web3-providers-http-1.2.11.tgz#1cd03442c61670572d40e4dcdf1faff8bd91e7c6" resolved "https://registry.yarnpkg.com/web3-providers-http/-/web3-providers-http-1.3.0.tgz#88227f64c88b32abed4359383c2663616e0dc531"
integrity sha512-psh4hYGb1+ijWywfwpB2cvvOIMISlR44F/rJtYkRmQ5jMvG4FOCPlQJPiHQZo+2cc3HbktvvSJzIhkWQJdmvrA== integrity sha512-cMKhUI6PqlY/EC+ZDacAxajySBu8AzW8jOjt1Pe/mbRQgS0rcZyvLePGTTuoyaA8C21F8UW+EE5jj7YsNgOuqA==
dependencies: dependencies:
web3-core-helpers "1.2.11" web3-core-helpers "1.3.0"
xhr2-cookies "1.1.0" xhr2-cookies "1.1.0"
web3-providers-ipc@1.2.11: web3-providers-ipc@1.3.0:
version "1.2.11" version "1.3.0"
resolved "https://registry.yarnpkg.com/web3-providers-ipc/-/web3-providers-ipc-1.2.11.tgz#d16d6c9be1be6e0b4f4536c4acc16b0f4f27ef21" resolved "https://registry.yarnpkg.com/web3-providers-ipc/-/web3-providers-ipc-1.3.0.tgz#d7c2b203733b46f7b4e7b15633d891648cf9a293"
integrity sha512-yhc7Y/k8hBV/KlELxynWjJDzmgDEDjIjBzXK+e0rHBsYEhdCNdIH5Psa456c+l0qTEU2YzycF8VAjYpWfPnBpQ== integrity sha512-0CrLuRofR+1J38nEj4WsId/oolwQEM6Yl1sOt41S/6bNI7htdkwgVhSloFIMJMDFHtRw229QIJ6wIaKQz0X1Og==
dependencies: dependencies:
oboe "2.1.4" oboe "2.1.5"
underscore "1.9.1" underscore "1.9.1"
web3-core-helpers "1.2.11" web3-core-helpers "1.3.0"
web3-providers-ws@1.2.11: web3-providers-ws@1.3.0:
version "1.2.11" version "1.3.0"
resolved "https://registry.yarnpkg.com/web3-providers-ws/-/web3-providers-ws-1.2.11.tgz#a1dfd6d9778d840561d9ec13dd453046451a96bb" resolved "https://registry.yarnpkg.com/web3-providers-ws/-/web3-providers-ws-1.3.0.tgz#84adeff65acd4624d7f5bb43c5b2b22d8f0f63a4"
integrity sha512-ZxnjIY1Er8Ty+cE4migzr43zA/+72AF1myzsLaU5eVgdsfV7Jqx7Dix1hbevNZDKFlSoEyq/3j/jYalh3So1Zg== integrity sha512-Im5MthhJnJst8nSoq0TgbyOdaiFQFa5r6sHPOVllhgIgViDqzbnlAFW9sNzQ0Q8VXPNfPIQKi9cOrHlSRNPjRw==
dependencies: dependencies:
eventemitter3 "4.0.4" eventemitter3 "4.0.4"
underscore "1.9.1" underscore "1.9.1"
web3-core-helpers "1.2.11" web3-core-helpers "1.3.0"
websocket "^1.0.31" websocket "^1.0.32"
web3-shh@1.2.11: web3-shh@1.3.0:
version "1.2.11" version "1.3.0"
resolved "https://registry.yarnpkg.com/web3-shh/-/web3-shh-1.2.11.tgz#f5d086f9621c9a47e98d438010385b5f059fd88f" resolved "https://registry.yarnpkg.com/web3-shh/-/web3-shh-1.3.0.tgz#62d15297da8fb5f733dd1b98f9ade300590f4d49"
integrity sha512-B3OrO3oG1L+bv3E1sTwCx66injW1A8hhwpknDUbV+sw3fehFazA06z9SGXUefuFI1kVs4q2vRi0n4oCcI4dZDg== integrity sha512-IZTojA4VCwVq+7eEIHuL1tJXtU+LJDhO8Y2QmuwetEWW1iBgWCGPHZasipWP+7kDpSm/5lo5GRxL72FF/Os/tA==
dependencies: dependencies:
web3-core "1.2.11" web3-core "1.3.0"
web3-core-method "1.2.11" web3-core-method "1.3.0"
web3-core-subscriptions "1.2.11" web3-core-subscriptions "1.3.0"
web3-net "1.2.11" web3-net "1.3.0"
web3-utils@1.2.11: web3-utils@1.3.0:
version "1.2.11" version "1.3.0"
resolved "https://registry.yarnpkg.com/web3-utils/-/web3-utils-1.2.11.tgz#af1942aead3fb166ae851a985bed8ef2c2d95a82" resolved "https://registry.yarnpkg.com/web3-utils/-/web3-utils-1.3.0.tgz#5bac16e5e0ec9fe7bdcfadb621655e8aa3cf14e1"
integrity sha512-3Tq09izhD+ThqHEaWYX4VOT7dNPdZiO+c/1QMA0s5X2lDFKK/xHJb7cyTRRVzN2LvlHbR7baS1tmQhSua51TcQ== integrity sha512-2mS5axFCbkhicmoDRuJeuo0TVGQDgC2sPi/5dblfVC+PMtX0efrb8Xlttv/eGkq7X4E83Pds34FH98TP2WOUZA==
dependencies: dependencies:
bn.js "^4.11.9" bn.js "^4.11.9"
eth-lib "0.2.8" eth-lib "0.2.8"
@ -2417,20 +2417,20 @@ web3-utils@1.2.11:
underscore "1.9.1" underscore "1.9.1"
utf8 "3.0.0" utf8 "3.0.0"
web3@1.2.11: web3@1.3.0:
version "1.2.11" version "1.3.0"
resolved "https://registry.yarnpkg.com/web3/-/web3-1.2.11.tgz#50f458b2e8b11aa37302071c170ed61cff332975" resolved "https://registry.yarnpkg.com/web3/-/web3-1.3.0.tgz#8fe4cd6e2a21c91904f343ba75717ee4c76bb349"
integrity sha512-mjQ8HeU41G6hgOYm1pmeH0mRAeNKJGnJEUzDMoerkpw7QUQT4exVREgF1MYPvL/z6vAshOXei25LE/t/Bxl8yQ== integrity sha512-4q9dna0RecnrlgD/bD1C5S+81Untbd6Z/TBD7rb+D5Bvvc0Wxjr4OP70x+LlnwuRDjDtzBwJbNUblh2grlVArw==
dependencies: dependencies:
web3-bzz "1.2.11" web3-bzz "1.3.0"
web3-core "1.2.11" web3-core "1.3.0"
web3-eth "1.2.11" web3-eth "1.3.0"
web3-eth-personal "1.2.11" web3-eth-personal "1.3.0"
web3-net "1.2.11" web3-net "1.3.0"
web3-shh "1.2.11" web3-shh "1.3.0"
web3-utils "1.2.11" web3-utils "1.3.0"
websocket@^1.0.31: websocket@^1.0.32:
version "1.0.32" version "1.0.32"
resolved "https://registry.yarnpkg.com/websocket/-/websocket-1.0.32.tgz#1f16ddab3a21a2d929dec1687ab21cfdc6d3dbb1" resolved "https://registry.yarnpkg.com/websocket/-/websocket-1.0.32.tgz#1f16ddab3a21a2d929dec1687ab21cfdc6d3dbb1"
integrity sha512-i4yhcllSP4wrpoPMU2N0TQ/q0O94LRG/eUQjEAamRltjQ1oT1PFFKOG4i877OlJgCG8rw6LrrowJp+TYCEWF7Q== integrity sha512-i4yhcllSP4wrpoPMU2N0TQ/q0O94LRG/eUQjEAamRltjQ1oT1PFFKOG4i877OlJgCG8rw6LrrowJp+TYCEWF7Q==

Loading…
Cancel
Save