Home Reference Source
public class | source

PoolDataMinerReferrals

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

miner: *

public
public

referees: *[]

public
public
public set
public get
public get
public set
public get
public set
Private Members
private
private
private

Method Summary

Public Methods
public

addReferral(refereeAddress: *, refereeMiner: *): *

public

deleteReferral(refereeAddress: *): boolean

public

deserializeReferrals(buffer: *, offset: *): *

public
public

findReferral(refereeAddress: *, returnPos: boolean): *

public
public
public
public

setReferralLink(address: *): boolean

public

toJSON(): {"referees": *, "linkAddress": *, "linkAddressOnline": *, "total": *, "confirmed": *, "sent": *}

Public Constructors

public constructor() source

Public Members

public miner: * source

public poolData: * source

public referees: *[] source

public referralLinkAddress: * source

public referralLinkMiner: * source

public set rewardReferralsConfirmed source

public get rewardReferralsConfirmed: * source

public get rewardReferralsSent: * source

public set rewardReferralsSent source

public get rewardReferralsTotal: * source

public set rewardReferralsTotal source

Private Members

private _rewardReferralsConfirmed: number source

private _rewardReferralsSent: number source

private _rewardReferralsTotal: number source

Public Methods

public addReferral(refereeAddress: *, refereeMiner: *): * source

Params:

NameTypeAttributeDescription
refereeAddress *
refereeMiner *

Return:

*

public deleteReferral(refereeAddress: *): boolean source

Params:

NameTypeAttributeDescription
refereeAddress *

Return:

boolean

public deserializeReferrals(buffer: *, offset: *): * source

Params:

NameTypeAttributeDescription
buffer *
offset *

Return:

*

public destroyPoolDataMinerReferrals() source

public findReferral(refereeAddress: *, returnPos: boolean): * source

Params:

NameTypeAttributeDescription
refereeAddress *
returnPos boolean
  • optional
  • default: false

Return:

*

public findReferralLinkAddress(): * source

Return:

*

public refreshRefereeAddresses() source

public serializeReferrals(): * source

Return:

*

Params:

NameTypeAttributeDescription
address *

Return:

boolean

public toJSON(): {"referees": *, "linkAddress": *, "linkAddressOnline": *, "total": *, "confirmed": *, "sent": *} source

Return:

{"referees": *, "linkAddress": *, "linkAddressOnline": *, "total": *, "confirmed": *, "sent": *}