changed lamassu-schema

This commit is contained in:
Josh Harvey 2017-05-08 01:03:13 +03:00
parent a9c2583671
commit 7d82874916

View file

@ -1,12 +1,31 @@
{ {
"groups": [ "groups": [
{ {
"code": "fiat", "code": "setup",
"display": "Fiat currencies", "display": "Setup",
"cryptoScope": "global", "cryptoScope": "global",
"machineScope": "global", "machineScope": "both",
"fields": [ "fields": [
"fiatCurrency" "machineName",
"machineModel",
"fiatCurrency",
"country",
"machineLanguages",
"cryptoCurrencies",
"machineLocation"
]
},
{
"code": "cashOut",
"display": "Cash Out",
"cryptoScope": "global",
"machineScope": "both",
"fields": [
"cashOutEnabled",
"topCashOutDenomination",
"bottomCashOutDenomination",
"virtualCashOutDenomination",
"zeroConfLimit"
] ]
}, },
{ {
@ -16,35 +35,9 @@
"machineScope": "both", "machineScope": "both",
"fields": [ "fields": [
"cashInCommission", "cashInCommission",
"cashInFee",
"cashOutCommission", "cashOutCommission",
"lowBalanceMargin", "cashOutFee"
"zeroConfLimit"
]
},
{
"code": "cryptoServices",
"display": "Crypto services",
"cryptoScope": "specific",
"machineScope": "global",
"fields": [
"ticker",
"wallet",
"exchange"
]
},
{
"code": "machineSettings",
"display": "Machine settings",
"cryptoScope": "global",
"machineScope": "both",
"fields": [
"country",
"machineLanguages",
"cryptoCurrencies",
"topCashOutDenomination",
"bottomCashOutDenomination",
"virtualCashOutDenomination",
"emptyBillMargin"
] ]
}, },
{ {
@ -62,13 +55,14 @@
] ]
}, },
{ {
"code": "machines", "code": "walletSettings",
"display": "Machines", "display": "Wallet Settings",
"cryptoScope": "global", "cryptoScope": "specific",
"machineScope": "specific", "machineScope": "global",
"fields": [ "fields": [
"cashOutEnabled", "ticker",
"machineLocation" "wallet",
"exchange"
] ]
}, },
{ {
@ -82,7 +76,7 @@
"notificationsSMSEnabled", "notificationsSMSEnabled",
"sms", "sms",
"email", "email",
"lowBalanceThreshold" "balanceThreshold"
] ]
} }
], ],
@ -127,6 +121,48 @@
} }
] ]
}, },
{
"code": "cashInFee",
"displayTop": "Fixed Fees",
"displayTopCount": 2,
"displayBottom": "Cash-in",
"fieldType": "integer",
"fieldClass": "fiat",
"cryptoScope": "both",
"machineScope": "both",
"default": 0,
"fieldValidation": [
{
"code": "required"
},
{
"code": "min",
"min": 0
}
]
},
{
"code": "cashOutFee",
"displayBottom": "Cash-out",
"displayTopCount": 0,
"fieldType": "integer",
"fieldClass": "fiat",
"cryptoScope": "both",
"machineScope": "both",
"default": 0,
"enabledIf": [
"cashOutEnabled"
],
"fieldValidation": [
{
"code": "required"
},
{
"code": "min",
"min": 0
}
]
},
{ {
"code": "lowBalanceMargin", "code": "lowBalanceMargin",
"displayTop": "Low balance", "displayTop": "Low balance",
@ -184,6 +220,8 @@
"code": "fiatCurrency", "code": "fiatCurrency",
"displayBottom": "Fiat Currency", "displayBottom": "Fiat Currency",
"fieldType": "fiatCurrency", "fieldType": "fiatCurrency",
"cryptoScope": "both",
"machineScope": "both",
"fieldClass": null, "fieldClass": null,
"fieldValidation": [ "fieldValidation": [
{ {
@ -358,6 +396,21 @@
], ],
"default": false "default": false
}, },
{
"code": "machineName",
"displayBottom": "Name",
"fieldType": "string",
"fieldClass": null,
"fieldValidation": [{"code": "required"}]
},
{
"code": "machineModel",
"displayBottom": "Model",
"fieldType": "string",
"fieldClass": null,
"readOnly": true,
"fieldValidation": []
},
{ {
"code": "machineLocation", "code": "machineLocation",
"displayBottom": "Location", "displayBottom": "Location",