This commit is contained in:
Josh Harvey 2016-09-08 15:17:38 +03:00
parent dfa873687a
commit c91106f56f
2 changed files with 83 additions and 84 deletions

View file

@ -27,8 +27,10 @@ db.many('select data from user_config', 'exchanges')
topCashOutDenomination: settings.cartridges[0], topCashOutDenomination: settings.cartridges[0],
bottomCashOutDenomination: settings.cartridges[1], bottomCashOutDenomination: settings.cartridges[1],
virtualCashOutDenomination: settings.virtualCartridges[0], virtualCashOutDenomination: settings.virtualCartridges[0],
machineLanguages: brain.locale.localeInfo.primaryLocales machineLanguages: brain.locale.localeInfo.primaryLocales,
} coins: settings.coins
},
accounts: settings.plugins.settings
} }
db.none('insert into user_config (type, data) values ($1, $2)', ['global', newConfig]) db.none('insert into user_config (type, data) values ($1, $2)', ['global', newConfig])

View file

@ -1,201 +1,198 @@
[ [
{ {
"group": { "code": "cryptos",
"code": "commissions", "display": "Supported cryptocurrencies",
"display": "Commissions" "cryptoScope": "global",
}, "machineScope": "both",
"crypto": "both", "entries": [
"machines": "both", {
"code": "cryptos",
"display": "Cryptocurrencies",
"fieldType": "crypto"
}
]
},
{
"code": "commissions",
"display": "Commissions",
"cryptoScope": "both",
"machineScope": "both",
"entries": [ "entries": [
{ {
"code": "cashInCommission", "code": "cashInCommission",
"display": "Cash-in commission", "display": "Cash-in commission",
"type": "percentage" "fieldType": "percentage"
}, },
{ {
"code": "cashOutCommission", "code": "cashOutCommission",
"display": "Cash-out commission", "display": "Cash-out commission",
"type": "percentage" "fieldType": "percentage"
}, },
{ {
"code": "lowBalanceMargin", "code": "lowBalanceMargin",
"display": "Low balance margin", "display": "Low balance margin",
"type": "percentage" "fieldType": "percentage"
}, },
{ {
"code": "zeroConfLimit", "code": "zeroConfLimit",
"display": "Zero conf limit", "display": "Zero conf limit",
"type": "integer" "fieldType": "integer"
} }
] ]
}, },
{ {
"group": { "code": "crypto-services",
"code": "crypto-services", "display": "Crypto services",
"display": "Crypto services" "cryptoScope": "specific",
}, "machineScope": "both",
"crypto": "specific",
"machines": "both",
"entries": [ "entries": [
{ {
"code": "ticker", "code": "ticker",
"display": "Ticker", "display": "Ticker",
"type": "plugin", "fieldType": "account",
"pluginCode": "ticker" "accountClass": "ticker"
}, },
{ {
"code": "wallet", "code": "wallet",
"display": "Wallet", "display": "Wallet",
"type": "plugin", "fieldType": "account",
"pluginCode": "wallet" "accountClass": "wallet"
}, },
{ {
"code": "exchange", "code": "exchange",
"display": "Exchange", "display": "Exchange",
"type": "plugin", "fieldType": "account",
"pluginCode": "exchange" "accountClass": "exchange"
} }
] ]
}, },
{ {
"group": { "code": "fiat",
"code": "fiat", "display": "Fiat",
"display": "Fiat" "cryptoScope": "global",
}, "machineScope": "both",
"crypto": "global",
"machines": "both",
"entries": [ "entries": [
{ {
"code": "fiatCurrency", "code": "fiatCurrency",
"display": "Fiat Currency", "display": "Fiat Currency",
"type": "currency" "fieldType": "currency"
}, },
{ {
"code": "topCashOutDenomination", "code": "topCashOutDenomination",
"display": "Top cash-out denominations", "display": "Top cash-out denomination",
"type": "integer" "fieldType": "integer"
}, },
{ {
"code": "bottomCashOutDenomination", "code": "bottomCashOutDenomination",
"display": "Bottom cash-out denominations", "display": "Bottom cash-out denomination",
"type": "integer" "fieldType": "integer"
},
{
"code": "virtualCashOutDenomination",
"display": "Virtual cash-out denomination",
"fieldType": "integer"
} }
] ]
}, },
{ {
"group": { "code": "limits",
"code": "limits", "display": "Limits",
"display": "Limits" "cryptoScope": "global",
}, "machineScope": "both",
"crypto": "global",
"machines": "both",
"entries": [ "entries": [
{ {
"code": "cashInTransactionLimit", "code": "cashInTransactionLimit",
"display": "Cash-in tx limit", "display": "Cash-in tx limit",
"type": "integer" "fieldType": "integer"
}, },
{ {
"code": "cashOutTransactionLimit", "code": "cashOutTransactionLimit",
"display": "Cash-out tx limit", "display": "Cash-out tx limit",
"type": "integer" "fieldType": "integer"
} }
] ]
}, },
{ {
"group": { "code": "compliance",
"code": "compliance", "display": "Compliance",
"display": "Compliance" "cryptoScope": "global",
}, "machineScope": "both",
"crypto": "global",
"machines": "both",
"entries": [ "entries": [
{ {
"code": "idVerificationEnabled", "code": "idVerificationEnabled",
"display": "ID verification", "display": "ID verification",
"type": "bool" "fieldType": "bool"
}, },
{ {
"code": "idVerificationLimit", "code": "idVerificationLimit",
"display": "ID Verification Limit", "display": "ID Verification Limit",
"type": "integer" "fieldType": "integer"
} }
] ]
}, },
{ {
"group": { "code": "languages",
"code": "languages", "display": "Languages",
"display": "Languages" "cryptoScope": "global",
}, "machineScope": "both",
"crypto": "global",
"machines": "both",
"entries": [ "entries": [
{ {
"code": "machineLanguages", "code": "machineLanguages",
"display": "Languages", "display": "Languages",
"type": "languages" "fieldType": "languages"
} }
] ]
}, },
{ {
"group": { "code": "machines",
"code": "machines", "display": "Machines",
"display": "Machines" "cryptoScope": "global",
}, "machineScope": "specific",
"crypto": "global",
"machines": "specific",
"entries": [ "entries": [
{ {
"code": "machineName", "code": "machineName",
"display": "Name", "display": "Name",
"type": "string" "fieldType": "string"
}, },
{ {
"code": "machineLocation", "code": "machineLocation",
"display": "Location", "display": "Location",
"type": "string" "fieldType": "string"
},
{
"code": "machineLocationCoordinates",
"display": "Location (GPS)",
"type": "coordinates"
} }
] ]
}, },
{ {
"group": { "code": "notifications",
"code": "notifications", "display": "Notifications",
"display": "Notifications" "cryptoScope": "global",
}, "machineScope": "global",
"crypto": "global",
"machines": "global",
"entries": [ "entries": [
{ {
"code": "notificationsEnabled", "code": "notificationsEnabled",
"display": "Notifications", "display": "Notifications",
"type": "onOff" "fieldType": "onOff"
}, },
{ {
"code": "notificationsEmailEnabled", "code": "notificationsEmailEnabled",
"display": "Email notifications", "display": "Email notifications",
"type": "onOff" "fieldType": "onOff"
}, },
{ {
"code": "notificationsSMSEnabled", "code": "notificationsSMSEnabled",
"display": "SMS notifications", "display": "SMS notifications",
"type": "onOff" "fieldType": "onOff"
}, },
{ {
"code": "email", "code": "email",
"display": "Email", "display": "Email",
"type": "plugin", "fieldType": "account",
"pluginCode": "email" "accountClass": "email"
}, },
{ {
"code": "sms", "code": "sms",
"display": "SMS", "display": "SMS",
"type": "plugin", "fieldType": "account",
"pluginCode": "sms" "accountClass": "sms"
} }
] ]
} }