trustwallet-assets/script/generic/validator-models.ts
Adam R ec1fe7f6ee
[internal] Script restructuring/refactoring (#4070)
* Make non-mandatory action interface elements optional.

* Remove one unused import

* Scripts main renamed to entrypoint.

* Script common rename to generic

* Move generic scripts from action to generic.

* Move chain-specific scripts to blockchain.

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2020-09-23 15:47:24 +02:00

27 lines
458 B
TypeScript

export interface ValidatorModel {
id: string,
name: string,
description: string,
website: string,
staking: Staking
payout: Payout
status: ValidatorStatus
}
interface Staking {
freeSpace: number,
minDelegation: number
openForDelegation: boolean
}
interface Payout {
commission: number // in %
payoutDelay: number // in cycles
payoutPeriod: number
}
interface ValidatorStatus {
disabled: boolean;
note: string;
}