cosmos-explorer/src/libs/data/valdiator-description.js
2021-08-05 21:11:11 +08:00

21 lines
503 B
JavaScript

export default class ValidatorDescription {
constructor() {
this.moniker = 'Ping'
this.identity = 'string'
this.website = 'https://ping.pub'
this.security_contact = 'string'
this.details = 'string'
}
init(element) {
if (element != null) {
this.moniker = element.moniker
this.identity = element.identity
this.website = element.website
this.security_contact = element.security_contact
this.details = element.details
}
return this
}
}