cosmos-explorer/src/libs/data/valdiator-description.js

21 lines
503 B
JavaScript
Raw Normal View History

2021-07-30 15:24:46 +00:00
export default class ValidatorDescription {
constructor() {
2021-07-31 23:13:47 +00:00
this.moniker = 'Ping'
2021-07-30 15:24:46 +00:00
this.identity = 'string'
2021-07-31 23:13:47 +00:00
this.website = 'https://ping.pub'
2021-07-30 15:24:46 +00:00
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
}
}