forked from PrivateSky/OpenDSU
-
Notifications
You must be signed in to change notification settings - Fork 0
/
moduleConstants.js
53 lines (47 loc) · 1.2 KB
/
moduleConstants.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
const ENVIRONMENT_TYPES = require("../overwrite-require/moduleConstants");
let cachedKeySSIResolver = undefined;
module.exports = {
ENVIRONMENT_TYPES,
CODE_FOLDER: "/code",
CONSTITUTION_FOLDER: '/code/constitution',
BLOCKCHAIN_FOLDER: '/blockchain',
APP_FOLDER: '/app',
DOMAIN_IDENTITY_FILE: '/domain_identity',
ASSETS_FOLDER: "/assets",
TRANSACTIONS_FOLDER: "/transactions",
APPS_FOLDER: "/apps",
DATA_FOLDER: "/data",
MANIFEST_FILE: "/manifest",
BDNS_ROOT_HOSTS: "BDNS_ROOT_HOSTS",
CACHE: {
FS: "fs",
MEMORY: "memory",
INDEXED_DB: "cache.indexedDB",
VAULT_TYPE: "cache.vaultType",
BASE_FOLDER: "internal-volume/cache",
BASE_FOLDER_CONFIG_PROPERTY: "fsCache.baseFolder",
ENCRYPTED_BRICKS_CACHE: "encrypted-bricks-cache",
ANCHORING_CACHE: "anchoring-cache",
NO_CACHE: "no-cache"
},
DOMAINS: {
VAULT: "vault"
},
VAULT:{
BRICKS_STORE: "bricks",
ANCHORS_STORE: "anchors"
},
BRICKS_DOMAIN_KEY: "bricksDomain",
LOADER_ENVIRONMENT_JSON:{
AGENT: "agent",
SERVER: "server",
VAULT: "vault",
MOBILE: "mobile",
},
get KEY_SSIS(){
if(cachedKeySSIResolver === undefined){
cachedKeySSIResolver = require("key-ssi-resolver");
}
return cachedKeySSIResolver.SSITypes;
}
}