Documentation
¶
Overview ¶
Copyright (c) 2018 The MATRIX Authors Distributed under the MIT software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php
Copyright (c) 2018 The MATRIX Authors Distributed under the MIT software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php
Index ¶
- Variables
- func EnlargeSlice(val reflect.Value, newLen int)
- func Find(slice SortedSliceInterface, data interface{}) (int, bool)
- func Insert(slice SortedSliceInterface, data interface{})
- func Remove(slice SortedSliceInterface, data interface{}) bool
- type AddressSlice
- type CurrentData
- type DepositPos
- type SortedSliceInterface
- type ValidatorInfo
- type ValidatorInfoSlice
- func (ad *ValidatorInfoSlice) Find(address common.Address) (int, bool)
- func (ad ValidatorInfoSlice) Greater(i int, b interface{}) bool
- func (ad *ValidatorInfoSlice) Insert(info ValidatorInfo)
- func (ad ValidatorInfoSlice) Less(i int, b interface{}) bool
- func (ad *ValidatorInfoSlice) Remove(address common.Address) bool
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func EnlargeSlice ¶
func Find ¶
func Find(slice SortedSliceInterface, data interface{}) (int, bool)
func Insert ¶
func Insert(slice SortedSliceInterface, data interface{})
func Remove ¶
func Remove(slice SortedSliceInterface, data interface{}) bool
Types ¶
type AddressSlice ¶
func (AddressSlice) Greater ¶
func (ad AddressSlice) Greater(i int, b interface{}) bool
func (*AddressSlice) Insert ¶
func (ad *AddressSlice) Insert(address common.Address)
func (AddressSlice) Less ¶
func (ad AddressSlice) Less(i int, b interface{}) bool
type CurrentData ¶
type DepositPos ¶
type DepositPos struct { DType uint64 Position uint64 Amount *big.Int `rlp:"-"` EndTime uint64 `rlp:"-"` }
Participants Deposit info
type SortedSliceInterface ¶
type ValidatorInfo ¶
type ValidatorInfo struct { Address common.Address Reward *big.Int AllAmount *big.Int `rlp:"-"` Current CurrentData Positions []DepositPos }
func NewValidatorInfo ¶
func NewValidatorInfo(address common.Address) *ValidatorInfo
type ValidatorInfoSlice ¶
type ValidatorInfoSlice []ValidatorInfo
func (*ValidatorInfoSlice) Find ¶
func (ad *ValidatorInfoSlice) Find(address common.Address) (int, bool)
func (ValidatorInfoSlice) Greater ¶
func (ad ValidatorInfoSlice) Greater(i int, b interface{}) bool
func (*ValidatorInfoSlice) Insert ¶
func (ad *ValidatorInfoSlice) Insert(info ValidatorInfo)
func (ValidatorInfoSlice) Less ¶
func (ad ValidatorInfoSlice) Less(i int, b interface{}) bool
Click to show internal directories.
Click to hide internal directories.