-
Notifications
You must be signed in to change notification settings - Fork 0
/
.storageConfig.js.example
68 lines (62 loc) · 2.7 KB
/
.storageConfig.js.example
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
module.exports = {
storageType: 0, // 0 for local, 1 for firebase
storageTypes: [ // supported storage types
"local",
"firebase"
],
// Paths for each storage type
// For local, the path is relative to the root directory
// For firebase, the path is relative to the root of the database
storagePaths: [
// Local paths (only used if storageType is 0)
{
"depositData": "/storage/depositData/",
"userDeposits": "/storage/userDeposits/",
"gauges": "/storage/gauges", // no trailing slash because it's a file
"snapshotVoteData": "/storage/snapshotVoteData/",
"l2voteData": "/storage/l2voteData/",
"vlCVXAddresses": "/storage/vlCVXAddresses", // file
"vlCVXMerkles": "/storage/vlCVXMerkles/",
"prismaGauges": "/storage/prismaGauges",
"prismaDepositData": "/storage/prismaDepositData/",
"prismaUserDeposits": "/storage/prismaUserDeposits/",
"prismaSnapshotVoteData": "/storage/prismaSnapshotVoteData/",
"fxGauges": "/storage/fxGauges",
"fxDepositData": "/storage/fxDepositData/",
"fxUserDeposits": "/storage/fxUserDeposits/",
"fxSnapshotVoteData": "/storage/fxSnapshotVoteData/",
},
// Firebase paths (only used if storageType is 1)
{
"depositData": "v2/depositData/",
"userDeposits": "v2/userDeposits/",
"gauges": "v2/gauges", // no trailing slash as we're writing directly to this key
"snapshotVoteData": "v2/snapshotVoteData/",
"l2voteData": "v2/l2voteData/",
"vlCVXAddresses": "v2/vlCVXAddresses", // direct key
"vlCVXMerkles": "v2/vlCVXMerkles/",
"prismaGauges": "v2prisma/gauges",
"prismaDepositData": "v2prisma/depositData/",
"prismaUserDeposits": "v2prisma/userDeposits/",
"prismaSnapshotVoteData": "v2prisma/snapshotVoteData/",
"fxGauges": "v2fxn/gauges",
"fxDepositData": "v2fxn/depositData/",
"fxUserDeposits": "v2fxn/userDeposits/",
"fxSnapshotVoteData": "v2fxn/snapshotVoteData/",
}
],
// Firebase config, only used if storageType is 1
// Firebase URL
firebaseUrl: "https://[YOUR DB HERE].firebaseio.com/",
// Inherit auth from parent
firebaseInherit: false,
// Authenticate locally with Cert or as an uploaded service account
firebaseLocal: true,
// Firebase credentials, only used if firebaseLocal is true
firebaseCert: {
"type": "service_account",
"project_id": "..."
// ...
}
//
}