Documentation ¶
Index ¶
- func AddDeposit(stateDB vm.StateDB, address common.Address) error
- func AddInterest(stateDB vm.StateDB, address common.Address, reward *big.Int) error
- func AddOnlineTime(stateDB vm.StateDB, address common.Address, ot *big.Int) error
- func AddSlash(stateDB vm.StateDB, address common.Address, slash *big.Int) error
- func GetAllDeposit(tm *big.Int) ([]vm.DepositDetail, error)
- func GetAllDepositByHash(hash common.Hash) ([]vm.DepositDetail, error)
- func GetAllInterest(stateDB vm.StateDB) map[common.Address]*big.Int
- func GetAllSlash(stateDB vm.StateDB) map[common.Address]*big.Int
- func GetAuthAccount(stateDB vm.StateDB, depositAccount common.Address) common.Address
- func GetDeposit(stateDB vm.StateDB, address common.Address) *big.Int
- func GetDepositAccount(stateDB vm.StateDB, authAccount common.Address) common.Address
- func GetDepositAndWithDrawList(tm *big.Int) ([]vm.DepositDetail, error)
- func GetDepositAndWithDrawListByHash(hash common.Hash) ([]vm.DepositDetail, error)
- func GetDepositList(tm *big.Int, getDeposit common.RoleType) ([]vm.DepositDetail, error)
- func GetDepositListByHash(hash common.Hash, getDeposit common.RoleType) ([]vm.DepositDetail, error)
- func GetInterest(stateDB vm.StateDB, address common.Address) (*big.Int, error)
- func GetOnlineTime(stateDB vm.StateDB, address common.Address) (*big.Int, error)
- func GetSlash(stateDB vm.StateDB, address common.Address) (*big.Int, error)
- func NewDepositInfo(manApi manBackend)
- func ResetInterest(stateDB vm.StateDB, address common.Address) error
- func ResetSlash(stateDB vm.StateDB, address common.Address) error
- func SetDeposit(stateDB vm.StateDB, address common.Address) error
- func SetInterest(stateDB vm.StateDB, address common.Address, reward *big.Int) error
- func SetOnlineTime(stateDB vm.StateDB, address common.Address, ot *big.Int) error
- func SetSlash(stateDB vm.StateDB, address common.Address, slash *big.Int) error
- type DepositInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddInterest ¶
func AddOnlineTime ¶
func GetAllDeposit ¶
func GetAllDeposit(tm *big.Int) ([]vm.DepositDetail, error)
func GetAllDepositByHash ¶
func GetAllDepositByHash(hash common.Hash) ([]vm.DepositDetail, error)
func GetAuthAccount ¶
获取A1账户
func GetDepositAccount ¶
获取A0账户
func GetDepositAndWithDrawList ¶
func GetDepositAndWithDrawList(tm *big.Int) ([]vm.DepositDetail, error)
func GetDepositAndWithDrawListByHash ¶
func GetDepositAndWithDrawListByHash(hash common.Hash) ([]vm.DepositDetail, error)
func GetDepositList ¶
func GetDepositListByHash ¶
func GetOnlineTime ¶
func NewDepositInfo ¶
func NewDepositInfo(manApi manBackend)
func SetInterest ¶
func SetOnlineTime ¶
Types ¶
type DepositInfo ¶
type DepositInfo struct { MatrixDeposit vm.MatrixDeposit Contract *vm.Contract // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.