-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeta.js
More file actions
42 lines (34 loc) · 731 Bytes
/
meta.js
File metadata and controls
42 lines (34 loc) · 731 Bytes
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
/*
* Note: The scripts only work, if console's jspath is set to its root.
*/
var meta = {}
var contracts = {}
var wallets = []
var tmp = {}
tmp.info = admin.nodeInfo.name
tmp.username = "jikkujose"
if(/linux/.test(tmp.info)){
meta.OS = 'linux'
} else {
meta.OS = 'mac'
}
if(meta.OS == 'linux') {
meta.home = '/home/' + tmp.username + '/'
} else {
meta.home = '/Users/' + tmp.username + '/'
}
meta.scriptDirectory = meta.home + "Ethereum/scripts/"
files = [
'wallets',
'helpers',
'contracts',
'meta/balances',
]
files.forEach(function(file) {
loadScript(meta.scriptDirectory + file + '.js')
});
if(contracts.amIOnTheFork.instance().forked()) {
meta.chain = "Forked"
} else {
meta.chain = "Classic"
}