fix: change validators structure
This commit is contained in:
parent
1f66d5ab5e
commit
05060998c4
|
@ -67,49 +67,41 @@ export const VALIDATORS_DATA = [
|
||||||
{
|
{
|
||||||
number: 1,
|
number: 1,
|
||||||
address: 'zQ3asdf9d4Gs0',
|
address: 'zQ3asdf9d4Gs0',
|
||||||
balance: 100,
|
balance: 32.0786,
|
||||||
income: 100,
|
income: 0.0786,
|
||||||
proposals: 100,
|
proposals: '1/102',
|
||||||
attestations: 100,
|
attestations: '1/102',
|
||||||
effectiveness: 100,
|
effectiveness: 98,
|
||||||
deposits: 100,
|
|
||||||
rank: 100,
|
|
||||||
status: 'Active',
|
status: 'Active',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
number: 1,
|
number: 1,
|
||||||
address: 'zQ3asdf9d4Gs0',
|
address: 'zQ3asdf9d4Gs0',
|
||||||
balance: 100,
|
balance: 32.0786,
|
||||||
income: 100,
|
income: 0.0786,
|
||||||
proposals: 100,
|
proposals: '1/102',
|
||||||
attestations: 100,
|
attestations: '1/102',
|
||||||
effectiveness: 100,
|
effectiveness: 98,
|
||||||
deposits: 100,
|
|
||||||
rank: 100,
|
|
||||||
status: 'Active',
|
status: 'Active',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
number: 1,
|
number: 1,
|
||||||
address: 'zQ3asdf9d4Gs0',
|
address: 'zQ3asdf9d4Gs0',
|
||||||
balance: 100,
|
balance: 32.0786,
|
||||||
income: 100,
|
income: 0.0786,
|
||||||
proposals: 100,
|
proposals: '1/102',
|
||||||
attestations: 100,
|
attestations: '1/102',
|
||||||
effectiveness: 100,
|
effectiveness: 98,
|
||||||
deposits: 100,
|
|
||||||
rank: 100,
|
|
||||||
status: 'Active',
|
status: 'Active',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
number: 1,
|
number: 1,
|
||||||
address: 'zQ3asdf9d4Gs0',
|
address: 'zQ3asdf9d4Gs0',
|
||||||
balance: 100,
|
balance: 32.0786,
|
||||||
income: 100,
|
income: 0.0786,
|
||||||
proposals: 100,
|
proposals: '1/102',
|
||||||
attestations: 100,
|
attestations: '1/102',
|
||||||
effectiveness: 100,
|
effectiveness: 98,
|
||||||
deposits: 100,
|
|
||||||
rank: 100,
|
|
||||||
status: 'Active',
|
status: 'Active',
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
|
@ -17,11 +17,9 @@ type Validator = {
|
||||||
address: string
|
address: string
|
||||||
balance: number
|
balance: number
|
||||||
income: number
|
income: number
|
||||||
proposals: number
|
proposals: string
|
||||||
attestations: number
|
attestations: string
|
||||||
effectiveness: number
|
effectiveness: number
|
||||||
deposits: number
|
|
||||||
rank: number
|
|
||||||
status: string
|
status: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -132,16 +130,6 @@ const ManagementTable = ({ tab }: ManagementTableProps) => {
|
||||||
Effectiveness
|
Effectiveness
|
||||||
</Text>
|
</Text>
|
||||||
</th>
|
</th>
|
||||||
<th>
|
|
||||||
<Text size={15} color={'#647084'}>
|
|
||||||
Deposits
|
|
||||||
</Text>
|
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
<Text size={15} color={'#647084'}>
|
|
||||||
Rank
|
|
||||||
</Text>
|
|
||||||
</th>
|
|
||||||
<th>
|
<th>
|
||||||
<Text size={15} color={'#647084'}>
|
<Text size={15} color={'#647084'}>
|
||||||
Status
|
Status
|
||||||
|
@ -181,17 +169,7 @@ const ManagementTable = ({ tab }: ManagementTableProps) => {
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<Text size={15} color={'#647084'}>
|
<Text size={15} color={'#647084'}>
|
||||||
{validator.effectiveness}
|
{validator.effectiveness}%
|
||||||
</Text>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<Text size={15} color={'#647084'}>
|
|
||||||
{validator.deposits}
|
|
||||||
</Text>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<Text size={15} color={'#647084'}>
|
|
||||||
{validator.rank}
|
|
||||||
</Text>
|
</Text>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
|
Loading…
Reference in New Issue