Browse Source

fix: update imports to new packages

develop
Ezerous 3 years ago
parent
commit
7de8d97cff
  1. 2
      packages/concordia-app/src/components/InitializationScreen/index.jsx
  2. 2
      packages/concordia-app/src/redux/sagas/eventSaga.js
  3. 6
      packages/concordia-app/src/redux/sagas/orbitSaga.js
  4. 2
      packages/concordia-app/src/redux/sagas/peerDbReplicationSaga.js
  5. 4
      packages/concordia-app/src/redux/sagas/rootSaga.js
  6. 2
      packages/concordia-app/src/redux/sagas/userSaga.js
  7. 6
      packages/concordia-app/src/redux/store.js
  8. 2
      packages/concordia-app/src/utils/orbitUtils.js
  9. 2
      packages/concordia-pinner/src/utils/orbitUtils.js

2
packages/concordia-app/src/components/InitializationScreen/index.jsx

@ -1,5 +1,5 @@
import React, { Children } from 'react'; import React, { Children } from 'react';
import { breezeConstants } from '@ezerous/breeze'; import { breezeConstants } from '@ecentrics/breeze';
import { useSelector } from 'react-redux'; import { useSelector } from 'react-redux';
import { FORUM_CONTRACT } from 'concordia-shared/src/constants/contracts/ContractNames'; import { FORUM_CONTRACT } from 'concordia-shared/src/constants/contracts/ContractNames';
import CustomLoader from './CustomLoader'; import CustomLoader from './CustomLoader';

2
packages/concordia-app/src/redux/sagas/eventSaga.js

@ -1,5 +1,5 @@
import { put, takeEvery } from 'redux-saga/effects'; import { put, takeEvery } from 'redux-saga/effects';
import { CONTRACT_EVENT_FIRED } from '@ezerous/drizzle/src/contracts/constants'; import { CONTRACT_EVENT_FIRED } from '@ecentrics/drizzle/src/contracts/constants';
import eventActionMap from '../actions/contractEventActions'; import eventActionMap from '../actions/contractEventActions';
function* eventBreakDown({ event }) { function* eventBreakDown({ event }) {

6
packages/concordia-app/src/redux/sagas/orbitSaga.js

@ -2,10 +2,10 @@ import {
call, put, all, take, call, put, all, take,
} from 'redux-saga/effects'; } from 'redux-saga/effects';
import { breezeActions } from '@ezerous/breeze'; import { breezeActions } from '@ecentrics/breeze';
import { drizzleActions } from '@ezerous/drizzle'; import { drizzleActions } from '@ecentrics/drizzle';
import { EthereumContractIdentityProvider } from '@ezerous/eth-identity-provider'; import { EthereumContractIdentityProvider } from '@ecentrics/eth-identity-provider';
import { FORUM_CONTRACT } from 'concordia-shared/src/constants/contracts/ContractNames'; import { FORUM_CONTRACT } from 'concordia-shared/src/constants/contracts/ContractNames';
import drizzleOptions from '../../options/drizzleOptions'; import drizzleOptions from '../../options/drizzleOptions';

2
packages/concordia-app/src/redux/sagas/peerDbReplicationSaga.js

@ -6,7 +6,7 @@ import {
ORBIT_DB_READY, ORBIT_DB_READY,
ORBIT_DB_REPLICATED, ORBIT_DB_REPLICATED,
ORBIT_DB_WRITE, ORBIT_DB_WRITE,
} from '@ezerous/breeze/src/orbit/orbitActions'; } from '@ecentrics/breeze/src/orbit/orbitActions';
import { import {
POLLS_DATABASE, POLLS_DATABASE,
POSTS_DATABASE, POSTS_DATABASE,

4
packages/concordia-app/src/redux/sagas/rootSaga.js

@ -1,6 +1,6 @@
import { all, fork } from 'redux-saga/effects'; import { all, fork } from 'redux-saga/effects';
import { drizzleSagas } from '@ezerous/drizzle'; import { drizzleSagas } from '@ecentrics/drizzle';
import { breezeSagas } from '@ezerous/breeze'; import { breezeSagas } from '@ecentrics/breeze';
import orbitSaga from './orbitSaga'; import orbitSaga from './orbitSaga';
import userSaga from './userSaga'; import userSaga from './userSaga';
import peerDbReplicationSaga from './peerDbReplicationSaga'; import peerDbReplicationSaga from './peerDbReplicationSaga';

2
packages/concordia-app/src/redux/sagas/userSaga.js

@ -2,7 +2,7 @@
import { import {
all, call, put, take, takeLatest, all, call, put, take, takeLatest,
} from 'redux-saga/effects'; } from 'redux-saga/effects';
import { drizzleActions } from '@ezerous/drizzle'; import { drizzleActions } from '@ecentrics/drizzle';
import { FORUM_CONTRACT } from 'concordia-shared/src/constants/contracts/ContractNames'; import { FORUM_CONTRACT } from 'concordia-shared/src/constants/contracts/ContractNames';
import { USER_DATA_UPDATED, USER_DATA_ERROR } from '../actions/userActions'; import { USER_DATA_UPDATED, USER_DATA_ERROR } from '../actions/userActions';
import { FORUM_EVENT_USER_SIGNED_UP } from '../actions/contractEventActions'; import { FORUM_EVENT_USER_SIGNED_UP } from '../actions/contractEventActions';

6
packages/concordia-app/src/redux/store.js

@ -1,11 +1,11 @@
import { configureStore, getDefaultMiddleware } from '@reduxjs/toolkit'; import { configureStore, getDefaultMiddleware } from '@reduxjs/toolkit';
import { import {
drizzleReducers, drizzleMiddlewares, generateContractsInitialState, Drizzle, drizzleReducers, drizzleMiddlewares, generateContractsInitialState, Drizzle,
} from '@ezerous/drizzle'; } from '@ecentrics/drizzle';
import { Breeze, breezeReducers } from '@ezerous/breeze'; import { Breeze, breezeReducers } from '@ecentrics/breeze';
import createSagaMiddleware from 'redux-saga'; import createSagaMiddleware from 'redux-saga';
import getBreezeConfiguration from 'concordia-shared/src/configuration/breezeConfiguration'; import getBreezeConfiguration from 'concordia-shared/src/configuration/breezeConfiguration';
import { EthereumContractIdentityProvider } from '@ezerous/eth-identity-provider'; import { EthereumContractIdentityProvider } from '@ecentrics/eth-identity-provider';
import userReducer from './reducers/userReducer'; import userReducer from './reducers/userReducer';
import rootSaga from './sagas/rootSaga'; import rootSaga from './sagas/rootSaga';
import drizzleOptions from '../options/drizzleOptions'; import drizzleOptions from '../options/drizzleOptions';

2
packages/concordia-app/src/utils/orbitUtils.js

@ -1,5 +1,5 @@
// https://github.com/orbitdb/orbit-db/blob/master/GUIDE.md#address // https://github.com/orbitdb/orbit-db/blob/master/GUIDE.md#address
import { EthereumContractIdentityProvider } from '@ezerous/eth-identity-provider'; import { EthereumContractIdentityProvider } from '@ecentrics/eth-identity-provider';
async function determineDBAddress({ async function determineDBAddress({
orbit, dbName, type, identityId, orbit, dbName, type, identityId,

2
packages/concordia-pinner/src/utils/orbitUtils.js

@ -1,6 +1,6 @@
import OrbitDB from 'orbit-db'; import OrbitDB from 'orbit-db';
import Identities from 'orbit-db-identity-provider'; import Identities from 'orbit-db-identity-provider';
import { EthereumContractIdentityProvider } from '@ezerous/eth-identity-provider'; import { EthereumContractIdentityProvider } from '@ecentrics/eth-identity-provider';
import Web3 from 'web3'; import Web3 from 'web3';
import { databaseNames } from 'concordia-shared/src/constants/orbit/OrbitDatabases'; import { databaseNames } from 'concordia-shared/src/constants/orbit/OrbitDatabases';
import { ORBIT_DIRECTORY_DEFAULT } from '../constants'; import { ORBIT_DIRECTORY_DEFAULT } from '../constants';

Loading…
Cancel
Save