Documentation ¶
Index ¶
- type ChannelDetails
- type ContractOnEth
- type MinerData
- type MinerPoolEthApi
- func (pc *MinerPoolEthApi) AllMinerData(pool common.Address) []account.ID
- func (pc *MinerPoolEthApi) Close()
- func (pc *MinerPoolEthApi) MCVer() *Versions
- func (pc *MinerPoolEthApi) MinerData(mid account.ID) *MinerData
- func (pc *MinerPoolEthApi) UserData(userAddr, poolAddr common.Address) *UserData
- func (pc *MinerPoolEthApi) UsersUnderPool(address common.Address) []common.Address
- type PoolData
- type SysSetting
- type UserData
- type Versions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelDetails ¶
type ContractOnEth ¶
type ContractOnEth interface { Close() MCVer() *Versions UsersUnderPool(address common.Address) []common.Address UserData(ua, pool common.Address) *UserData AllMinerData(common.Address) []account.ID MinerData(account.ID) *MinerData }
func NewSessionPayment ¶
func NewSessionPayment() ContractOnEth
type MinerData ¶
type MinerPoolEthApi ¶
type MinerPoolEthApi struct {
// contains filtered or unexported fields
}
func (*MinerPoolEthApi) AllMinerData ¶
func (pc *MinerPoolEthApi) AllMinerData(pool common.Address) []account.ID
func (*MinerPoolEthApi) Close ¶
func (pc *MinerPoolEthApi) Close()
func (*MinerPoolEthApi) MCVer ¶
func (pc *MinerPoolEthApi) MCVer() *Versions
func (*MinerPoolEthApi) UserData ¶
func (pc *MinerPoolEthApi) UserData(userAddr, poolAddr common.Address) *UserData
func (*MinerPoolEthApi) UsersUnderPool ¶
func (pc *MinerPoolEthApi) UsersUnderPool(address common.Address) []common.Address
type PoolData ¶
type SysSetting ¶
type SysSetting struct { MBytesPerToken int64 `json:"MBytesPerToken"` RefundDuration int64 `json:"RefundDuration"` PoolGTN *big.Int `json:"PoolGTN"` MinerGTN *big.Int `json:"MinerGTN"` }
func (*SysSetting) String ¶
func (ss *SysSetting) String() string
type UserData ¶
Click to show internal directories.
Click to hide internal directories.