Browse Source

Add user database

develop
Apostolos Fanakis 4 years ago
parent
commit
faac749906
  1. 20
      packages/concordia-app/src/constants/OrbitDatabases.js
  2. 12
      packages/concordia-app/src/options/breezeOptions.js

20
packages/concordia-app/src/constants/OrbitDatabases.js

@ -0,0 +1,20 @@
export const USER_DATABASE = 'user';
export const TOPICS_DATABASE = 'topics';
export const POSTS_DATABASE = 'posts';
const databases = [
{
address: USER_DATABASE,
type: 'keyvalue',
},
{
address: TOPICS_DATABASE,
type: 'keyvalue',
},
{
address: POSTS_DATABASE,
type: 'keyvalue',
},
];
export default databases;

12
packages/concordia-app/src/options/breezeOptions.js

@ -1,4 +1,5 @@
import { EthereumContractIdentityProvider } from '@ezerous/eth-identity-provider';
import databases from '../constants/OrbitDatabases';
const breezeOptions = {
ipfs: {
@ -24,16 +25,7 @@ const breezeOptions = {
},
orbit: {
identityProvider: EthereumContractIdentityProvider,
databases: [
{
address: 'topics',
type: 'keyvalue',
},
{
address: 'posts',
type: 'keyvalue',
},
],
databases,
},
};

Loading…
Cancel
Save