classic-ui/services/schema/relayer/bsc.js
FreezyEx b32527e057 Revert "minor fixes"
This reverts commit 7f8f7c2aa15c8b8c6a7449d177f46f8a417e2f67.
2022-10-13 16:03:54 +02:00

46 lines
1.1 KiB
JavaScript

import { addressType } from '@/constants'
const statusSchema = {
type: 'object',
properties: {
rewardAccount: addressType,
instances: {
type: 'object',
properties: {
bnb: {
type: 'object',
properties: {
instanceAddress: {
type: 'object',
properties: {
'0.1': addressType,
'1': addressType,
'10': addressType,
'100': addressType
},
required: ['0.1', '1', '10', '100']
},
decimals: { enum: [18] }
},
required: ['instanceAddress', 'decimals']
}
},
required: ['bnb']
},
netId: { type: 'integer' },
tornadoServiceFee: { type: 'number', maximum: 20, minimum: 0 },
health: {
type: 'object',
properties: {
status: { const: 'true' },
error: { type: 'string' }
},
required: ['status']
},
currentQueue: { type: 'number' }
},
required: ['rewardAccount', 'instances', 'netId', 'tornadoServiceFee', 'health']
}
export { statusSchema }