Home Reference Source
public class | source

PoolSettings

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public get
public
public get

poolFee: *

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

_db: *

private
private
private
private
private
private
private
private
private
private
private

_wallet: *

Method Summary

Public Methods
public
public

async initializePoolSettings(poolFee: *): *

public

async justValidatePoolDetails(poolName: *, poolFee: *, poolWebsite: *, poolServers: *, poolActivated: *, poolReferralFee: *): *

public

poolDigitalSign(message: *): *

public

printPoolSettings(showPoolPrivateKey: boolean)

public

async savePoolPrivateKey(): *

public

async setPoolActivated(newValue: *, skipSaving: boolean, useActivation: boolean)

public

async setPoolFee(newValue: *, skipSaving: boolean)

public

async setPoolName(newValue: *, skipSaving: boolean)

public

async setPoolReferralFee(newValue: *, skipSaving: boolean)

public

async setPoolServers(newValue: *, skipSaving: boolean)

public

async setPoolUsePoolServers(newValue: *, skipSaving: boolean)

public

async setPoolUseSignatures(newValue: *, skipSaving: boolean)

public

async setPoolWebsite(newValue: *, skipSaving: boolean)

Private Methods
private
private
private
private

Public Constructors

public constructor() source

Public Members

public get poolActivated: * source

public poolAddress: string source

public get poolFee: * source

public poolManagement: * source

public get poolName: * source

public get poolPOWValidationProbability: * source

public get poolPrivateKey: * source

public poolPublicKey: * source

public get poolReferralFee: * source

public get poolServers: * source

public poolURL: string source

public get poolUsePoolServers: * source

public get poolUseSignatures: * source

public get poolWebsite: * source

Private Members

private _db: * source

private _poolActivated: boolean source

private _poolFee: number source

private _poolName: string source

private _poolPOWValidationProbability: number source

private _poolPrivateKey: * source

private _poolReferralFee: number source

private _poolServers: *[] source

private _poolUsePoolServers: boolean source

private _poolUseSignatures: boolean source

private _poolWebsite: string source

private _wallet: * source

Public Methods

public getPoolServersText(): * source

Return:

*

public async initializePoolSettings(poolFee: *): * source

Params:

NameTypeAttributeDescription
poolFee *

Return:

*

public async justValidatePoolDetails(poolName: *, poolFee: *, poolWebsite: *, poolServers: *, poolActivated: *, poolReferralFee: *): * source

Params:

NameTypeAttributeDescription
poolName *
poolFee *
poolWebsite *
poolServers *
poolActivated *
poolReferralFee *

Return:

*

public poolDigitalSign(message: *): * source

Params:

NameTypeAttributeDescription
message *

Return:

*

public printPoolSettings(showPoolPrivateKey: boolean) source

Params:

NameTypeAttributeDescription
showPoolPrivateKey boolean
  • optional
  • default: false

public async savePoolPrivateKey(): * source

Return:

*

public async setPoolActivated(newValue: *, skipSaving: boolean, useActivation: boolean) source

Params:

NameTypeAttributeDescription
newValue *
skipSaving boolean
  • optional
  • default: false
useActivation boolean
  • optional
  • default: true

public async setPoolFee(newValue: *, skipSaving: boolean) source

Params:

NameTypeAttributeDescription
newValue *
skipSaving boolean
  • optional
  • default: false

public async setPoolName(newValue: *, skipSaving: boolean) source

Params:

NameTypeAttributeDescription
newValue *
skipSaving boolean
  • optional
  • default: false

public async setPoolReferralFee(newValue: *, skipSaving: boolean) source

Params:

NameTypeAttributeDescription
newValue *
skipSaving boolean
  • optional
  • default: false

public async setPoolServers(newValue: *, skipSaving: boolean) source

Params:

NameTypeAttributeDescription
newValue *
skipSaving boolean
  • optional
  • default: false

public async setPoolUsePoolServers(newValue: *, skipSaving: boolean) source

Params:

NameTypeAttributeDescription
newValue *
skipSaving boolean
  • optional
  • default: false

public async setPoolUseSignatures(newValue: *, skipSaving: boolean) source

Params:

NameTypeAttributeDescription
newValue *
skipSaving boolean
  • optional
  • default: false

public async setPoolWebsite(newValue: *, skipSaving: boolean) source

Params:

NameTypeAttributeDescription
newValue *
skipSaving boolean
  • optional
  • default: false

Private Methods

private _generatePoolURL(): * source

Return:

*

private async _getPoolAddress(): boolean source

Return:

boolean

private async _getPoolDetails(): boolean source

Return:

boolean

private async _getPoolPrivateKey(): boolean source

Return:

boolean