depoistInfo

package
v0.0.0-...-2f68b9a Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDeposit

func AddDeposit(stateDB vm.StateDB, address common.Address) error

func AddInterest

func AddInterest(stateDB vm.StateDB, address common.Address, reward *big.Int) error

func AddOnlineTime

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

func AddSlash

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

func GetAllDeposit

func GetAllDeposit(tm *big.Int) ([]vm.DepositDetail, error)

func GetAllDepositByHash

func GetAllDepositByHash(hash common.Hash) ([]vm.DepositDetail, error)

func GetAllInterest

func GetAllInterest(stateDB vm.StateDB) map[common.Address]*big.Int

func GetAllSlash

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

func GetAuthAccount

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

获取A1账户

func GetDeposit

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

func GetDepositAccount

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

获取A0账户

func GetDepositAndWithDrawList

func GetDepositAndWithDrawList(tm *big.Int) ([]vm.DepositDetail, error)

func GetDepositAndWithDrawListByHash

func GetDepositAndWithDrawListByHash(hash common.Hash) ([]vm.DepositDetail, error)

func GetDepositList

func GetDepositList(tm *big.Int, getDeposit common.RoleType) ([]vm.DepositDetail, error)

func GetDepositListByHash

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

func GetInterest

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

func GetOnlineTime

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

func GetSlash

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

func NewDepositInfo

func NewDepositInfo(manApi manBackend)

func ResetInterest

func ResetInterest(stateDB vm.StateDB, address common.Address) error

func ResetSlash

func ResetSlash(stateDB vm.StateDB, address common.Address) error

func SetDeposit

func SetDeposit(stateDB vm.StateDB, address common.Address) error

func SetInterest

func SetInterest(stateDB vm.StateDB, address common.Address, reward *big.Int) error

func SetOnlineTime

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

func SetSlash

func SetSlash(stateDB vm.StateDB, 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