Documentation ¶
Index ¶
- func AddDeposit(stateDB vm.StateDBManager, address common.Address) error
- func AddInterest(stateDB vm.StateDBManager, address common.Address, reward *big.Int) error
- func AddOnlineTime(stateDB vm.StateDBManager, address common.Address, ot *big.Int) error
- func AddSlash(stateDB vm.StateDBManager, 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.StateDBManager) map[common.Address]*big.Int
- func GetAllSlash(stateDB vm.StateDBManager) map[common.Address]*big.Int
- func GetAuthAccount(stateDB vm.StateDBManager, depositAccount common.Address) common.Address
- func GetDeposit(stateDB vm.StateDBManager, address common.Address) *big.Int
- func GetDepositAccount(stateDB vm.StateDBManager, 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.StateDBManager, address common.Address) (*big.Int, error)
- func GetOnlineTime(stateDB vm.StateDBManager, address common.Address) (*big.Int, error)
- func GetSlash(stateDB vm.StateDBManager, address common.Address) (*big.Int, error)
- func NewDepositInfo(manApi manBackend)
- func ResetInterest(stateDB vm.StateDBManager, address common.Address) error
- func ResetSlash(stateDB vm.StateDBManager, address common.Address) error
- func SetDeposit(stateDB vm.StateDBManager, address common.Address) error
- func SetInterest(stateDB vm.StateDBManager, address common.Address, reward *big.Int) error
- func SetOnlineTime(stateDB vm.StateDBManager, address common.Address, ot *big.Int) error
- func SetSlash(stateDB vm.StateDBManager, address common.Address, slash *big.Int) error
- type DepositInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDeposit ¶ added in v1.1.1
func AddDeposit(stateDB vm.StateDBManager, address common.Address) error
func AddInterest ¶ added in v1.1.1
func AddOnlineTime ¶
func GetAllDeposit ¶
func GetAllDeposit(tm *big.Int) ([]vm.DepositDetail, error)
func GetAllDepositByHash ¶ added in v1.1.2
func GetAllDepositByHash(hash common.Hash) ([]vm.DepositDetail, error)
func GetAllInterest ¶ added in v1.1.1
func GetAllSlash ¶ added in v1.1.1
func GetAuthAccount ¶ added in v1.1.1
获取A1账户
func GetDeposit ¶ added in v1.1.1
func GetDepositAccount ¶ added in v1.1.1
获取A0账户
func GetDepositAndWithDrawList ¶
func GetDepositAndWithDrawList(tm *big.Int) ([]vm.DepositDetail, error)
func GetDepositAndWithDrawListByHash ¶ added in v1.1.2
func GetDepositAndWithDrawListByHash(hash common.Hash) ([]vm.DepositDetail, error)
func GetDepositList ¶
func GetDepositListByHash ¶ added in v1.1.2
func GetInterest ¶ added in v1.1.1
func GetOnlineTime ¶
func NewDepositInfo ¶
func NewDepositInfo(manApi manBackend)
func ResetInterest ¶ added in v1.1.1
func ResetInterest(stateDB vm.StateDBManager, address common.Address) error
func ResetSlash ¶ added in v1.1.1
func ResetSlash(stateDB vm.StateDBManager, address common.Address) error
func SetDeposit ¶ added in v1.1.1
func SetDeposit(stateDB vm.StateDBManager, address common.Address) error
func SetInterest ¶ added in v1.1.1
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.