This commit is contained in:
Danil Kovtonyuk 2022-04-22 13:05:56 +10:00
commit 44f31f8b9f
No known key found for this signature in database
GPG key ID: E72A919BF08C3746
402 changed files with 47865 additions and 0 deletions

View file

@ -0,0 +1,45 @@
import { addressType } from '@/constants'
const statusSchema = {
type: 'object',
properties: {
rewardAccount: addressType,
instances: {
type: 'object',
properties: {
xdai: {
type: 'object',
properties: {
instanceAddress: {
type: 'object',
properties: {
'100': addressType,
'1000': addressType,
'10000': addressType,
'100000': addressType
},
required: ['100', '1000', '10000', '100000']
},
decimals: { enum: [18] }
},
required: ['instanceAddress', 'decimals']
}
},
required: ['xdai']
},
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 }