depoistInfo

package
v1.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 AddInterest(stateDB vm.StateDBManager, address common.Address, reward *big.Int) error

func AddOnlineTime

func AddOnlineTime(stateDB vm.StateDBManager, address common.Address, ot *big.Int) error

func AddSlash added in v1.1.1

func AddSlash(stateDB vm.StateDBManager, address common.Address, slash *big.Int) error

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 GetAllInterest(stateDB vm.StateDBManager) map[common.Address]*big.Int

func GetAllSlash added in v1.1.1

func GetAllSlash(stateDB vm.StateDBManager) map[common.Address]*big.Int

func GetAuthAccount added in v1.1.1

func GetAuthAccount(stateDB vm.StateDBManager, depositAccount common.Address) common.Address

获取A1账户

func GetDeposit added in v1.1.1

func GetDeposit(stateDB vm.StateDBManager, address common.Address) *big.Int

func GetDepositAccount added in v1.1.1

func GetDepositAccount(stateDB vm.StateDBManager, authAccount common.Address) common.Address

获取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 GetDepositList(tm *big.Int, getDeposit common.RoleType) ([]vm.DepositDetail, error)

func GetDepositListByHash added in v1.1.2

func GetDepositListByHash(hash common.Hash, getDeposit common.RoleType) ([]vm.DepositDetail, error)

func GetInterest added in v1.1.1

func GetInterest(stateDB vm.StateDBManager, address common.Address) (*big.Int, error)

func GetOnlineTime

func GetOnlineTime(stateDB vm.StateDBManager, address common.Address) (*big.Int, error)

func GetSlash added in v1.1.1

func GetSlash(stateDB vm.StateDBManager, address common.Address) (*big.Int, error)

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 SetInterest(stateDB vm.StateDBManager, address common.Address, reward *big.Int) error

func SetOnlineTime

func SetOnlineTime(stateDB vm.StateDBManager, address common.Address, ot *big.Int) error

func SetSlash added in v1.1.1

func SetSlash(stateDB vm.StateDBManager, address common.Address, slash *big.Int) error

Types

type DepositInfo

type DepositInfo struct {
	MatrixDeposit vm.MatrixDeposit
	Contract      *vm.Contract
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL