-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconstants.js
44 lines (36 loc) · 932 Bytes
/
constants.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
require('dotenv').config()
const ACCOUNT = process.env.ACCOUNT
const ACCOUNT_PERMISSION = process.env.ACCOUNT_PERMISSION
const CHAIN = process.env.CHAIN
const ENDPOINT = CHAIN === 'proton'
? 'https://proton.eoscafeblock.com'
: 'https://testnet.protonchain.com'
const NFT_API = CHAIN === 'proton'
? 'https://proton.api.atomicassets.io'
: 'https://test.proton.api.atomicassets.io'
const SYSTEM = 'eosio' // don't change
const XPR_TOKEN_CONTRACT = 'eosio.token' // don't change
const TOKEN_PRECISIONS = {
'XPR': 4,
'XUSDC': 6,
'FOOBAR': 6
}
const TOKEN_CONTRACTS = {
'XPR': 'eosio.token',
'XUSDC': 'xtokens',
'XUSDT': 'xtokens',
'FOOBAR': 'xtokens',
}
const COLLECTION = process.env.COLLECTION
module.exports = {
ACCOUNT,
ACCOUNT_PERMISSION,
SYSTEM,
XPR_TOKEN_CONTRACT,
CHAIN,
ENDPOINT,
NFT_API,
COLLECTION,
TOKEN_PRECISIONS,
TOKEN_CONTRACTS
}