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
Index ¶
- func AddInterest(stateDB vm.StateDBManager, address common.Address, reward *big.Int) error
- func AddInterest_v2(stateDB vm.StateDBManager, address common.Address, ...) 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 AddSlash_v2(stateDB vm.StateDBManager, address common.Address, ...) error
- func ConversionDeposit(statedb vm.StateDBManager, t uint64) error
- func GetAllDeposit(tm *big.Int) ([]vm.DepositDetail, error)
- func GetAllDepositByHash(hash common.Hash) ([]vm.DepositDetail, error)
- func GetAllDepositByHash_v2(hash common.Hash) ([]common.DepositBase, error)
- func GetAllInterest(stateDB vm.StateDBManager) map[common.Address]*big.Int
- func GetAllInterest_v2(stateDB vm.StateDBManager, headTime uint64) map[common.Address]common.CalculateDeposit
- func GetAuthAccount(stateDB vm.StateDBManager, depositAccount common.Address) common.Address
- 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 GetDepositBase(statedb vm.StateDBManager, addr0 common.Address) *common.DepositBase
- 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 GetInterest_v2(stateDB vm.StateDBManager, address common.Address) (common.CalculateDeposit, error)
- func GetOnlineTime(stateDB vm.StateDBManager, address common.Address) (*big.Int, error)
- func GetSlash(stateDB vm.StateDBManager, address common.Address) (*big.Int, error)
- func GetSlash_v2(stateDB vm.StateDBManager, address common.Address) (common.CalculateDeposit, error)
- func NewDepositInfo(manApi manBackend)
- func PayInterest(stateDB vm.StateDBManager, time uint64, addrA0 common.Address, position uint64, ...) error
- func ResetSlash(stateDB vm.StateDBManager, address common.Address) error
- func SetOnlineTime(stateDB vm.StateDBManager, address common.Address, ot *big.Int) error
- func SetVersion(statedb vm.StateDBManager, t uint64) error
- type DepositInfo
- type DepositInterfaceer
- type DepositMnger_v1
- func (v1 *DepositMnger_v1) AddDeposit(stateDB vm.StateDBManager, address common.Address) error
- func (v1 *DepositMnger_v1) AddInterest(stateDB vm.StateDBManager, address common.Address, reward *big.Int) error
- func (v1 *DepositMnger_v1) AddInterest_v2(stateDB vm.StateDBManager, address common.Address, ...) error
- func (v1 *DepositMnger_v1) AddOnlineTime(stateDB vm.StateDBManager, address common.Address, ot *big.Int) error
- func (v1 *DepositMnger_v1) AddSlash(stateDB vm.StateDBManager, address common.Address, slash *big.Int) error
- func (v1 *DepositMnger_v1) AddSlash_v2(stateDB vm.StateDBManager, address common.Address, ...) error
- func (v1 *DepositMnger_v1) ConversionDeposit(statedb vm.StateDBManager, t uint64) map[common.Address]common.CheckDepositInfo
- func (v1 *DepositMnger_v1) GetAllDeposit(tm *big.Int, statedb vm.StateDBManager, headtime uint64) ([]vm.DepositDetail, error)
- func (v1 *DepositMnger_v1) GetAllDepositByHash(hash common.Hash, statedb vm.StateDBManager, headtime uint64) ([]vm.DepositDetail, error)
- func (v1 *DepositMnger_v1) GetAllDepositByHash_v2(hash common.Hash, stateDB vm.StateDBManager, headtime uint64) ([]common.DepositBase, error)
- func (v1 *DepositMnger_v1) GetAllInterest(stateDB vm.StateDBManager) map[common.Address]*big.Int
- func (v1 *DepositMnger_v1) GetAllInterest_v2(stateDB vm.StateDBManager, headTime uint64) map[common.Address]common.CalculateDeposit
- func (v1 *DepositMnger_v1) GetAllSlash(stateDB vm.StateDBManager) map[common.Address]*big.Int
- func (v1 *DepositMnger_v1) GetAuthAccount(stateDB vm.StateDBManager, depositAccount common.Address) common.Address
- func (v1 *DepositMnger_v1) GetDeposit(stateDB vm.StateDBManager, address common.Address) *big.Int
- func (v1 *DepositMnger_v1) GetDepositAccount(stateDB vm.StateDBManager, authAccount common.Address) common.Address
- func (v1 *DepositMnger_v1) GetDepositAndWithDrawList(tm *big.Int, statedb vm.StateDBManager, headtime uint64) ([]vm.DepositDetail, error)
- func (v1 *DepositMnger_v1) GetDepositAndWithDrawListByHash(hash common.Hash, statedb vm.StateDBManager, headtime uint64) ([]vm.DepositDetail, error)
- func (v1 *DepositMnger_v1) GetDepositList(tm *big.Int, getDeposit common.RoleType, statedb vm.StateDBManager, ...) ([]vm.DepositDetail, error)
- func (v1 *DepositMnger_v1) GetDepositListByHash(hash common.Hash, getDeposit common.RoleType, statedb vm.StateDBManager, ...) ([]vm.DepositDetail, error)
- func (v1 *DepositMnger_v1) GetInterest(stateDB vm.StateDBManager, address common.Address) (*big.Int, error)
- func (v1 *DepositMnger_v1) GetInterest_v2(stateDB vm.StateDBManager, address common.Address) (common.CalculateDeposit, error)
- func (v1 *DepositMnger_v1) GetOnlineTime(stateDB vm.StateDBManager, address common.Address) (*big.Int, error)
- func (v1 *DepositMnger_v1) GetSlash(stateDB vm.StateDBManager, address common.Address) (*big.Int, error)
- func (v1 *DepositMnger_v1) GetSlash_v2(stateDB vm.StateDBManager, address common.Address) (common.CalculateDeposit, error)
- func (v1 *DepositMnger_v1) PayInterest(stateDB vm.StateDBManager, addrA0 common.Address, position uint64, ...) error
- func (v1 *DepositMnger_v1) ResetInterest(stateDB vm.StateDBManager, address common.Address) error
- func (v1 *DepositMnger_v1) ResetSlash(stateDB vm.StateDBManager, address common.Address) error
- func (v1 *DepositMnger_v1) SetDeposit(stateDB vm.StateDBManager, address common.Address) error
- func (v1 *DepositMnger_v1) SetInterest(stateDB vm.StateDBManager, address common.Address, reward *big.Int) error
- func (v1 *DepositMnger_v1) SetOnlineTime(stateDB vm.StateDBManager, address common.Address, ot *big.Int) error
- func (v1 *DepositMnger_v1) SetSlash(stateDB vm.StateDBManager, address common.Address, slash *big.Int) error
- type DepositMnger_v2
- func (v2 *DepositMnger_v2) AddInterest(stateDB vm.StateDBManager, address common.Address, reward *big.Int) error
- func (v2 *DepositMnger_v2) AddInterest_v2(stateDB vm.StateDBManager, address common.Address, ...) error
- func (v2 *DepositMnger_v2) AddOnlineTime(stateDB vm.StateDBManager, address common.Address, ot *big.Int) error
- func (v2 *DepositMnger_v2) AddSlash(stateDB vm.StateDBManager, address common.Address, slash *big.Int) error
- func (v2 *DepositMnger_v2) AddSlash_v2(stateDB vm.StateDBManager, address common.Address, ...) error
- func (v2 *DepositMnger_v2) CheckDeposit(statedb vm.StateDBManager) []common.DepositBase
- func (v2 *DepositMnger_v2) GetAllDeposit(tm *big.Int, statedb vm.StateDBManager, headtime uint64) ([]vm.DepositDetail, error)
- func (v2 *DepositMnger_v2) GetAllDepositByHash(hash common.Hash, statedb vm.StateDBManager, headtime uint64) ([]vm.DepositDetail, error)
- func (v2 *DepositMnger_v2) GetAllDepositByHash_v2(hash common.Hash, stateDB vm.StateDBManager, headtime uint64) ([]common.DepositBase, error)
- func (v2 *DepositMnger_v2) GetAllInterest(stateDB vm.StateDBManager) map[common.Address]*big.Int
- func (v2 *DepositMnger_v2) GetAllInterest_v2(stateDB vm.StateDBManager, headTime uint64) map[common.Address]common.CalculateDeposit
- func (v2 *DepositMnger_v2) GetAuthAccount(stateDB vm.StateDBManager, depositAccount common.Address) common.Address
- func (v2 *DepositMnger_v2) GetDepositAccount(stateDB vm.StateDBManager, authAccount common.Address) common.Address
- func (v2 *DepositMnger_v2) GetDepositAndWithDrawList(tm *big.Int, statedb vm.StateDBManager, headtime uint64) ([]vm.DepositDetail, error)
- func (v2 *DepositMnger_v2) GetDepositAndWithDrawListByHash(hash common.Hash, statedb vm.StateDBManager, headtime uint64) ([]vm.DepositDetail, error)
- func (v2 *DepositMnger_v2) GetDepositBase(stateDB vm.StateDBManager, addrA0 common.Address) *common.DepositBase
- func (v2 *DepositMnger_v2) GetDepositList(tm *big.Int, getDeposit common.RoleType, statedb vm.StateDBManager, ...) ([]vm.DepositDetail, error)
- func (v2 *DepositMnger_v2) GetDepositListByHash(hash common.Hash, getDeposit common.RoleType, statedb vm.StateDBManager, ...) ([]vm.DepositDetail, error)
- func (v2 *DepositMnger_v2) GetInterest(stateDB vm.StateDBManager, address common.Address) (*big.Int, error)
- func (v2 *DepositMnger_v2) GetInterest_v2(stateDB vm.StateDBManager, address common.Address) (common.CalculateDeposit, error)
- func (v2 *DepositMnger_v2) GetOnlineTime(stateDB vm.StateDBManager, address common.Address) (*big.Int, error)
- func (v2 *DepositMnger_v2) GetSlash(stateDB vm.StateDBManager, address common.Address) (*big.Int, error)
- func (v2 *DepositMnger_v2) GetSlash_v2(stateDB vm.StateDBManager, address common.Address) (common.CalculateDeposit, error)
- func (v2 *DepositMnger_v2) PayInterest(stateDB vm.StateDBManager, addrA0 common.Address, position uint64, ...) error
- func (v2 *DepositMnger_v2) ResetSlash(stateDB vm.StateDBManager, address common.Address) error
- func (v2 *DepositMnger_v2) SetDeposit(stateDB vm.StateDBManager, address common.Address) error
- func (v2 *DepositMnger_v2) SetOnlineTime(stateDB vm.StateDBManager, address common.Address, ot *big.Int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddInterest ¶
func AddInterest_v2 ¶
func AddInterest_v2(stateDB vm.StateDBManager, address common.Address, reward common.CalculateDeposit) error
func AddOnlineTime ¶
func AddSlash_v2 ¶
func AddSlash_v2(stateDB vm.StateDBManager, address common.Address, slash common.CalculateDeposit) error
func ConversionDeposit ¶
func ConversionDeposit(statedb vm.StateDBManager, t uint64) error
func GetAllDeposit ¶
func GetAllDeposit(tm *big.Int) ([]vm.DepositDetail, error)
func GetAllDepositByHash ¶
func GetAllDepositByHash(hash common.Hash) ([]vm.DepositDetail, error)
func GetAllDepositByHash_v2 ¶
func GetAllDepositByHash_v2(hash common.Hash) ([]common.DepositBase, error)
func GetAllInterest ¶
func GetAllInterest_v2 ¶
func GetAllInterest_v2(stateDB vm.StateDBManager, headTime uint64) map[common.Address]common.CalculateDeposit
headerTime:=0表示获取所有定期的仓位包括退选
func GetAuthAccount ¶
func GetDepositAccount ¶
func GetDepositAndWithDrawList ¶
func GetDepositAndWithDrawList(tm *big.Int) ([]vm.DepositDetail, error)
func GetDepositAndWithDrawListByHash ¶
func GetDepositAndWithDrawListByHash(hash common.Hash) ([]vm.DepositDetail, error)
func GetDepositBase ¶
func GetDepositBase(statedb vm.StateDBManager, addr0 common.Address) *common.DepositBase
func GetDepositList ¶
func GetDepositListByHash ¶
func GetInterest ¶
func GetInterest_v2 ¶
func GetInterest_v2(stateDB vm.StateDBManager, address common.Address) (common.CalculateDeposit, error)
func GetOnlineTime ¶
func GetSlash_v2 ¶
func GetSlash_v2(stateDB vm.StateDBManager, address common.Address) (common.CalculateDeposit, error)
func NewDepositInfo ¶
func NewDepositInfo(manApi manBackend)
func PayInterest ¶
func PayInterest(stateDB vm.StateDBManager, time uint64, addrA0 common.Address, position uint64, amount *big.Int) error
支付利息,合约接口会清除对应账户的累加利息和惩罚
func ResetSlash ¶
func ResetSlash(stateDB vm.StateDBManager, address common.Address) error
func SetOnlineTime ¶
func SetVersion ¶
func SetVersion(statedb vm.StateDBManager, t uint64) error
Types ¶
type DepositInfo ¶
type DepositInfo struct { MatrixDeposit vm.MatrixDeposit001 Contract *vm.Contract // contains filtered or unexported fields }
type DepositInterfaceer ¶
type DepositInterfaceer interface { AddOnlineTime(stateDB vm.StateDBManager, address common.Address, ot *big.Int) error GetOnlineTime(stateDB vm.StateDBManager, address common.Address) (*big.Int, error) SetOnlineTime(stateDB vm.StateDBManager, address common.Address, ot *big.Int) error GetDepositList(tm *big.Int, getDeposit common.RoleType, statedb vm.StateDBManager, headtime uint64) ([]vm.DepositDetail, error) GetDepositAndWithDrawList(tm *big.Int, statedb vm.StateDBManager, headtime uint64) ([]vm.DepositDetail, error) GetAllDeposit(tm *big.Int, statedb vm.StateDBManager, headtime uint64) ([]vm.DepositDetail, error) GetDepositListByHash(hash common.Hash, getDeposit common.RoleType, statedb vm.StateDBManager, headtime uint64) ([]vm.DepositDetail, error) GetDepositAndWithDrawListByHash(hash common.Hash, statedb vm.StateDBManager, headtime uint64) ([]vm.DepositDetail, error) GetAllDepositByHash(hash common.Hash, stateDB vm.StateDBManager, headtime uint64) ([]vm.DepositDetail, error) GetAllDepositByHash_v2(hash common.Hash, stateDB vm.StateDBManager, headtime uint64) ([]common.DepositBase, error) ResetSlash(stateDB vm.StateDBManager, address common.Address) error AddSlash(stateDB vm.StateDBManager, address common.Address, slash *big.Int) error GetSlash(stateDB vm.StateDBManager, address common.Address) (*big.Int, error) AddSlash_v2(stateDB vm.StateDBManager, address common.Address, slash common.CalculateDeposit) error GetSlash_v2(stateDB vm.StateDBManager, address common.Address) (common.CalculateDeposit, error) GetInterest_v2(stateDB vm.StateDBManager, address common.Address) (common.CalculateDeposit, error) GetAllInterest_v2(stateDB vm.StateDBManager, headTime uint64) map[common.Address]common.CalculateDeposit AddInterest_v2(stateDB vm.StateDBManager, address common.Address, reward common.CalculateDeposit) error GetInterest(stateDB vm.StateDBManager, address common.Address) (*big.Int, error) GetAllInterest(stateDB vm.StateDBManager) map[common.Address]*big.Int AddInterest(stateDB vm.StateDBManager, address common.Address, reward *big.Int) error SetDeposit(stateDB vm.StateDBManager, address common.Address) error GetDepositAccount(stateDB vm.StateDBManager, authAccount common.Address) common.Address GetAuthAccount(stateDB vm.StateDBManager, depositAccount common.Address) common.Address PayInterest(stateDB vm.StateDBManager, addrA0 common.Address, position uint64, amount *big.Int) error }
type DepositMnger_v1 ¶
type DepositMnger_v1 struct { }
func (*DepositMnger_v1) AddDeposit ¶
func (v1 *DepositMnger_v1) AddDeposit(stateDB vm.StateDBManager, address common.Address) error
func (*DepositMnger_v1) AddInterest ¶
func (v1 *DepositMnger_v1) AddInterest(stateDB vm.StateDBManager, address common.Address, reward *big.Int) error
func (*DepositMnger_v1) AddInterest_v2 ¶
func (v1 *DepositMnger_v1) AddInterest_v2(stateDB vm.StateDBManager, address common.Address, reward common.CalculateDeposit) error
func (*DepositMnger_v1) AddOnlineTime ¶
func (v1 *DepositMnger_v1) AddOnlineTime(stateDB vm.StateDBManager, address common.Address, ot *big.Int) error
func (*DepositMnger_v1) AddSlash ¶
func (v1 *DepositMnger_v1) AddSlash(stateDB vm.StateDBManager, address common.Address, slash *big.Int) error
func (*DepositMnger_v1) AddSlash_v2 ¶
func (v1 *DepositMnger_v1) AddSlash_v2(stateDB vm.StateDBManager, address common.Address, slash common.CalculateDeposit) error
func (*DepositMnger_v1) ConversionDeposit ¶
func (v1 *DepositMnger_v1) ConversionDeposit(statedb vm.StateDBManager, t uint64) map[common.Address]common.CheckDepositInfo
func (*DepositMnger_v1) GetAllDeposit ¶
func (v1 *DepositMnger_v1) GetAllDeposit(tm *big.Int, statedb vm.StateDBManager, headtime uint64) ([]vm.DepositDetail, error)
func (*DepositMnger_v1) GetAllDepositByHash ¶
func (v1 *DepositMnger_v1) GetAllDepositByHash(hash common.Hash, statedb vm.StateDBManager, headtime uint64) ([]vm.DepositDetail, error)
func (*DepositMnger_v1) GetAllDepositByHash_v2 ¶
func (v1 *DepositMnger_v1) GetAllDepositByHash_v2(hash common.Hash, stateDB vm.StateDBManager, headtime uint64) ([]common.DepositBase, error)
func (*DepositMnger_v1) GetAllInterest ¶
func (v1 *DepositMnger_v1) GetAllInterest(stateDB vm.StateDBManager) map[common.Address]*big.Int
func (*DepositMnger_v1) GetAllInterest_v2 ¶
func (v1 *DepositMnger_v1) GetAllInterest_v2(stateDB vm.StateDBManager, headTime uint64) map[common.Address]common.CalculateDeposit
func (*DepositMnger_v1) GetAllSlash ¶
func (v1 *DepositMnger_v1) GetAllSlash(stateDB vm.StateDBManager) map[common.Address]*big.Int
func (*DepositMnger_v1) GetAuthAccount ¶
func (v1 *DepositMnger_v1) GetAuthAccount(stateDB vm.StateDBManager, depositAccount common.Address) common.Address
获取A1账户
func (*DepositMnger_v1) GetDeposit ¶
func (v1 *DepositMnger_v1) GetDeposit(stateDB vm.StateDBManager, address common.Address) *big.Int
func (*DepositMnger_v1) GetDepositAccount ¶
func (v1 *DepositMnger_v1) GetDepositAccount(stateDB vm.StateDBManager, authAccount common.Address) common.Address
获取A0账户
func (*DepositMnger_v1) GetDepositAndWithDrawList ¶
func (v1 *DepositMnger_v1) GetDepositAndWithDrawList(tm *big.Int, statedb vm.StateDBManager, headtime uint64) ([]vm.DepositDetail, error)
func (*DepositMnger_v1) GetDepositAndWithDrawListByHash ¶
func (v1 *DepositMnger_v1) GetDepositAndWithDrawListByHash(hash common.Hash, statedb vm.StateDBManager, headtime uint64) ([]vm.DepositDetail, error)
func (*DepositMnger_v1) GetDepositList ¶
func (v1 *DepositMnger_v1) GetDepositList(tm *big.Int, getDeposit common.RoleType, statedb vm.StateDBManager, headtime uint64) ([]vm.DepositDetail, error)
func (*DepositMnger_v1) GetDepositListByHash ¶
func (v1 *DepositMnger_v1) GetDepositListByHash(hash common.Hash, getDeposit common.RoleType, statedb vm.StateDBManager, headtime uint64) ([]vm.DepositDetail, error)
func (*DepositMnger_v1) GetInterest ¶
func (v1 *DepositMnger_v1) GetInterest(stateDB vm.StateDBManager, address common.Address) (*big.Int, error)
func (*DepositMnger_v1) GetInterest_v2 ¶
func (v1 *DepositMnger_v1) GetInterest_v2(stateDB vm.StateDBManager, address common.Address) (common.CalculateDeposit, error)
func (*DepositMnger_v1) GetOnlineTime ¶
func (v1 *DepositMnger_v1) GetOnlineTime(stateDB vm.StateDBManager, address common.Address) (*big.Int, error)
func (*DepositMnger_v1) GetSlash ¶
func (v1 *DepositMnger_v1) GetSlash(stateDB vm.StateDBManager, address common.Address) (*big.Int, error)
func (*DepositMnger_v1) GetSlash_v2 ¶
func (v1 *DepositMnger_v1) GetSlash_v2(stateDB vm.StateDBManager, address common.Address) (common.CalculateDeposit, error)
func (*DepositMnger_v1) PayInterest ¶
func (v1 *DepositMnger_v1) PayInterest(stateDB vm.StateDBManager, addrA0 common.Address, position uint64, amount *big.Int) error
func (*DepositMnger_v1) ResetInterest ¶
func (v1 *DepositMnger_v1) ResetInterest(stateDB vm.StateDBManager, address common.Address) error
func (*DepositMnger_v1) ResetSlash ¶
func (v1 *DepositMnger_v1) ResetSlash(stateDB vm.StateDBManager, address common.Address) error
func (*DepositMnger_v1) SetDeposit ¶
func (v1 *DepositMnger_v1) SetDeposit(stateDB vm.StateDBManager, address common.Address) error
func (*DepositMnger_v1) SetInterest ¶
func (v1 *DepositMnger_v1) SetInterest(stateDB vm.StateDBManager, address common.Address, reward *big.Int) error
func (*DepositMnger_v1) SetOnlineTime ¶
func (v1 *DepositMnger_v1) SetOnlineTime(stateDB vm.StateDBManager, address common.Address, ot *big.Int) error
func (*DepositMnger_v1) SetSlash ¶
func (v1 *DepositMnger_v1) SetSlash(stateDB vm.StateDBManager, address common.Address, slash *big.Int) error
type DepositMnger_v2 ¶
type DepositMnger_v2 struct { MatrixDeposit vm.MatrixDeposit002 Contract *vm.Contract }
func (*DepositMnger_v2) AddInterest ¶
func (v2 *DepositMnger_v2) AddInterest(stateDB vm.StateDBManager, address common.Address, reward *big.Int) error
func (*DepositMnger_v2) AddInterest_v2 ¶
func (v2 *DepositMnger_v2) AddInterest_v2(stateDB vm.StateDBManager, address common.Address, reward common.CalculateDeposit) error
func (*DepositMnger_v2) AddOnlineTime ¶
func (v2 *DepositMnger_v2) AddOnlineTime(stateDB vm.StateDBManager, address common.Address, ot *big.Int) error
func (*DepositMnger_v2) AddSlash ¶
func (v2 *DepositMnger_v2) AddSlash(stateDB vm.StateDBManager, address common.Address, slash *big.Int) error
func (*DepositMnger_v2) AddSlash_v2 ¶
func (v2 *DepositMnger_v2) AddSlash_v2(stateDB vm.StateDBManager, address common.Address, slash common.CalculateDeposit) error
func (*DepositMnger_v2) CheckDeposit ¶
func (v2 *DepositMnger_v2) CheckDeposit(statedb vm.StateDBManager) []common.DepositBase
func (*DepositMnger_v2) GetAllDeposit ¶
func (v2 *DepositMnger_v2) GetAllDeposit(tm *big.Int, statedb vm.StateDBManager, headtime uint64) ([]vm.DepositDetail, error)
func (*DepositMnger_v2) GetAllDepositByHash ¶
func (v2 *DepositMnger_v2) GetAllDepositByHash(hash common.Hash, statedb vm.StateDBManager, headtime uint64) ([]vm.DepositDetail, error)
func (*DepositMnger_v2) GetAllDepositByHash_v2 ¶
func (v2 *DepositMnger_v2) GetAllDepositByHash_v2(hash common.Hash, stateDB vm.StateDBManager, headtime uint64) ([]common.DepositBase, error)
func (*DepositMnger_v2) GetAllInterest ¶
func (v2 *DepositMnger_v2) GetAllInterest(stateDB vm.StateDBManager) map[common.Address]*big.Int
func (*DepositMnger_v2) GetAllInterest_v2 ¶
func (v2 *DepositMnger_v2) GetAllInterest_v2(stateDB vm.StateDBManager, headTime uint64) map[common.Address]common.CalculateDeposit
func (*DepositMnger_v2) GetAuthAccount ¶
func (v2 *DepositMnger_v2) GetAuthAccount(stateDB vm.StateDBManager, depositAccount common.Address) common.Address
获取A1账户
func (*DepositMnger_v2) GetDepositAccount ¶
func (v2 *DepositMnger_v2) GetDepositAccount(stateDB vm.StateDBManager, authAccount common.Address) common.Address
获取A0账户
func (*DepositMnger_v2) GetDepositAndWithDrawList ¶
func (v2 *DepositMnger_v2) GetDepositAndWithDrawList(tm *big.Int, statedb vm.StateDBManager, headtime uint64) ([]vm.DepositDetail, error)
func (*DepositMnger_v2) GetDepositAndWithDrawListByHash ¶
func (v2 *DepositMnger_v2) GetDepositAndWithDrawListByHash(hash common.Hash, statedb vm.StateDBManager, headtime uint64) ([]vm.DepositDetail, error)
func (*DepositMnger_v2) GetDepositBase ¶
func (v2 *DepositMnger_v2) GetDepositBase(stateDB vm.StateDBManager, addrA0 common.Address) *common.DepositBase
func (*DepositMnger_v2) GetDepositList ¶
func (v2 *DepositMnger_v2) GetDepositList(tm *big.Int, getDeposit common.RoleType, statedb vm.StateDBManager, headtime uint64) ([]vm.DepositDetail, error)
func (*DepositMnger_v2) GetDepositListByHash ¶
func (v2 *DepositMnger_v2) GetDepositListByHash(hash common.Hash, getDeposit common.RoleType, statedb vm.StateDBManager, headtime uint64) ([]vm.DepositDetail, error)
func (*DepositMnger_v2) GetInterest ¶
func (v2 *DepositMnger_v2) GetInterest(stateDB vm.StateDBManager, address common.Address) (*big.Int, error)
func (*DepositMnger_v2) GetInterest_v2 ¶
func (v2 *DepositMnger_v2) GetInterest_v2(stateDB vm.StateDBManager, address common.Address) (common.CalculateDeposit, error)
func (*DepositMnger_v2) GetOnlineTime ¶
func (v2 *DepositMnger_v2) GetOnlineTime(stateDB vm.StateDBManager, address common.Address) (*big.Int, error)
func (*DepositMnger_v2) GetSlash ¶
func (v2 *DepositMnger_v2) GetSlash(stateDB vm.StateDBManager, address common.Address) (*big.Int, error)
func (*DepositMnger_v2) GetSlash_v2 ¶
func (v2 *DepositMnger_v2) GetSlash_v2(stateDB vm.StateDBManager, address common.Address) (common.CalculateDeposit, error)
func (*DepositMnger_v2) PayInterest ¶
func (v2 *DepositMnger_v2) PayInterest(stateDB vm.StateDBManager, addrA0 common.Address, position uint64, amount *big.Int) error
func (*DepositMnger_v2) ResetSlash ¶
func (v2 *DepositMnger_v2) ResetSlash(stateDB vm.StateDBManager, address common.Address) error
func (*DepositMnger_v2) SetDeposit ¶
func (v2 *DepositMnger_v2) SetDeposit(stateDB vm.StateDBManager, address common.Address) error
func (*DepositMnger_v2) SetOnlineTime ¶
func (v2 *DepositMnger_v2) SetOnlineTime(stateDB vm.StateDBManager, address common.Address, ot *big.Int) error
Click to show internal directories.
Click to hide internal directories.