init
This commit is contained in:
commit
44f31f8b9f
402 changed files with 47865 additions and 0 deletions
44
services/schema/relayer/avalanche.js
Normal file
44
services/schema/relayer/avalanche.js
Normal file
|
@ -0,0 +1,44 @@
|
|||
import { addressType } from '@/constants'
|
||||
|
||||
const statusSchema = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
rewardAccount: addressType,
|
||||
instances: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
avax: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
instanceAddress: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
'10': addressType,
|
||||
'100': addressType,
|
||||
'500': addressType
|
||||
},
|
||||
required: ['10', '100', '500']
|
||||
},
|
||||
decimals: { enum: [18] }
|
||||
},
|
||||
required: ['instanceAddress', 'decimals']
|
||||
}
|
||||
},
|
||||
required: ['avax']
|
||||
},
|
||||
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 }
|
Loading…
Add table
Add a link
Reference in a new issue