forked from VerusCoin/Verusbridgekeeper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapiFunctions.js
26 lines (20 loc) · 825 Bytes
/
apiFunctions.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
exports.APIs = (api) => {
let validCalls = {
'submitimports' : "submitImports",
"getinfo" : "getInfo",
'getexports' : "getExports",
'getcurrency' : "getCurrency",
'submitacceptednotarization' : "submitAcceptedNotarization",
'getnotarizationdata' : "getNotarizationData",
'getbestproofroot' : "getBestProofRoot",
'getlastimportfrom' : "getLastImportFrom",
'getclaimablefees' : "getclaimablefees",
'revokeidentity' : "revokeidentity",
}
for ( var property in validCalls ) {
if(api == property) {
return validCalls[property];
}
}
return "invalid"
}