-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
74 lines (71 loc) · 2.41 KB
/
config.js
File metadata and controls
74 lines (71 loc) · 2.41 KB
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
69
70
71
72
73
74
// const baseURL = 'http://95.216.99.122:9000'
import configParser from "./libs/config-parser"
let baseURL = 'https://node1.0xecho.com'
export default {
common: {
PROTOCOL_VERSION: '0.1'
},
supportedNetworks: {
'EVM/1': 'eth',
'EVM/137': 'polygon',
'EVM/10': 'optimism',
'EVM/1284': 'moonbeam',
'EVM/56': 'bsc'
},
api: () => {
const config = configParser()
if (config.rpc_url) {
// third.chat => sandbox
if (config.rpc_url.includes('third.chat')) {
config.rpc_url = 'https://sandbox.0xecho.com'
}
baseURL = config.rpc_url.replace(/\/$/, '')
}
return {
BASE_URL: baseURL,
GET_POST: baseURL + '/api/v1/posts',
CREATE_POST: baseURL + '/api/v1/posts',
CHECK_POST: baseURL + '/api/v1/posts/update_check',
GET_TARGET_SUMMARY: baseURL + '/api/v1/target/summary',
CREATE_USER: baseURL + '/api/v1/users',
GET_USER_SCREEN_NAME: baseURL + '/api/v1/users/reverse_records',
GET_USER_INFO: baseURL + '/api/v1/users/info',
GET_REACTIONS: baseURL + '/api/v1/reactions',
SYNC_BALANCE: baseURL + '/api/v1/modules/wallet-balance',
TIP: baseURL + '/api/v1/tips',
GET_TIPS: baseURL + '/api/v1/tips',
CURRENCY: baseURL + '/api/v1/common/currency',
DELETE_POST: baseURL + '/api/v1/posts/',
GET_AUTHORSHIP: baseURL + '/api/v1/authorships',
PIN_COMMENT: baseURL + '/api/v1/pins',
UNPIN_COMMENT: baseURL + '/api/v1/unpins',
GET_SUBDIDS: baseURL + '/api/v1/users/subdids'
}
},
types: {
COMMENT: 'comment'
},
report: {
reasons: [ // refer to Youtube report reasons.
`Unwanted commercial content or spam`,
`Abuse or harmful`,
`Pornography or sexually explicit material`,
`Suicide or self injury`,
'Misinformation',
'Other'
]
},
thirdParty: {
WALLET_CONNECT_PROJECT_ID: 'f1605890a1bdc2cab216432b1768356d'
},
wallet: {
// auth_message: `I want to authenticate and generate a JWT token at timestamp - TIMESTAMP. `,
auth_message: `I authorize publishing on ECHO from this device with my account: ADDRESS\n\nI accept the Terms of Service: https://0xecho.com/tos\n\nIssued At: TIMESTAMP\nPublic Key: PUBLIC_KEY`,
transaction_check_interval: 3000
}
}
export const particle = {
projectId: '45b31d03-425f-4b23-b5bd-3398f69576cb',
clientKey: 'cyM4hyK1z2tnkWxthzQrp5xH2JCPNOzr6ibZdNbX',
appId: '915d1c29-9452-4be5-a13f-c414da4cc285'
}