lamassu-server/new-lamassu-admin/src/pages/Services/schemas/infura.js
2024-08-12 17:42:59 +01:00

24 lines
556 B
JavaScript

import * as Yup from 'yup'
import TextInputFormik from 'src/components/inputs/formik/TextInput'
export default {
code: 'infura',
name: 'Infura/Alchemy',
title: 'Infura/Alchemy (Wallet)',
elements: [
{
code: 'endpoint',
display: 'Endpoint',
component: TextInputFormik,
face: true
}
],
getValidationSchema: () => {
return Yup.object().shape({
endpoint: Yup.string('The endpoint must be a string')
.max(100, 'The endpoint is too long')
.required('The endpoint is required')
})
}
}