Class

Network

Network(options)

Constructor

# new Network(options)

Network Object

Parameters:
Name Type Description
options Network~Options

View Source models/BEPRO/Network.js, line 17

Methods

# __assert() → {Promise.<void>}

Asserts the 2 ERC20Contract on the current address

View Source models/BEPRO/Network.js, line 35

Contract is not deployed, first deploy it and provide a contract address

Error
Promise.<void>

# __assert() → {Promise.<void>}

Asserts the 2 ERC20Contract on the current address

View Source models/BEPRO/NetworkFactory.js, line 35

Contract is not deployed, first deploy it and provide a contract address

Error
Promise.<void>

# approveSettlerERC20Token() → {Promise.<number>}

Approve ERC20 Allowance

View Source models/BEPRO/Network.js, line 448

Promise.<number>

# approveSettlerERC20Token() → {Promise.<number>}

Approve ERC20 Allowance

View Source models/BEPRO/NetworkFactory.js, line 166

Promise.<number>

# approveTransactionalERC20Token() → {Promise.<number>}

Approve ERC20 Allowance

View Source models/BEPRO/Network.js, line 461

Promise.<number>

# async changeCouncilAmount(value) → {Promise.<TransactionObject>}

Change amount needed for Council

Parameters:
Name Type Description
value number

View Source models/BEPRO/Network.js, line 295

Promise.<TransactionObject>

# async closeIssue(params) → {Promise.<TransactionObject>}

close Issue

Parameters:
Name Type Description
params Object
issueID number
mergeID number

View Source models/BEPRO/Network.js, line 648

Promise.<TransactionObject>

# async COUNCIL_AMOUNT() → {Promise.<Integer>}

Get Amount Needed for Council

View Source models/BEPRO/Network.js, line 275

Promise.<Integer>

# async createNetwork(params) → {Promise.<TransactionObject>}

Create Network

Parameters:
Name Type Description
params Object
settlerToken Address
transactionalToken Address

View Source models/BEPRO/NetworkFactory.js, line 225

Promise.<TransactionObject>

# async delegateOracles(params) → {Promise.<TransactionObject>}

Delegated Oracles to others

Parameters:
Name Type Description
params Object
tokenAmount number
delegatedTo Address

View Source models/BEPRO/Network.js, line 541

Promise.<TransactionObject>

# deploy(params) → {Promise.<(*|undefined)>}

Deploys current contract and awaits for TokensNetwork#__assert

Parameters:
Name Type Description
params Object
settlerTokenAddress string
transactionTokenAddress string
governanceAddress string
callback function

View Source models/BEPRO/Network.js, line 677

Promise.<(*|undefined)>

# deploy(params) → {Promise.<(*|undefined)>}

Deploys Contracts

Parameters:
Name Type Description
params Object
beproAddress string
callback function

View Source models/BEPRO/NetworkFactory.js, line 241

Promise.<(*|undefined)>

# async disputableTime() → {Promise.<Date>}

Get Time of disputableTime

View Source models/BEPRO/Network.js, line 161

Promise.<Date>

# async disputeMerge(params) → {Promise.<TransactionObject>}

Dispute Merge

Parameters:
Name Type Description
params Object
issueID number
mergeID number

View Source models/BEPRO/Network.js, line 661

Promise.<TransactionObject>

# async getAmountOfDisputers() → {Promise.<number>}

Get Amount of Disputers (people who locked BEPRO) in the network

View Source models/BEPRO/Network.js, line 108

Promise.<number>

# async getAmountofIssuesClosed() → {Promise.<number>}

Get Amount of Issues Closed in the network

View Source models/BEPRO/Network.js, line 97

Promise.<number>

# async getAmountofIssuesOpened() → {Promise.<number>}

Get Amount of Issues Opened in the network

View Source models/BEPRO/Network.js, line 86

Promise.<number>

# async getAmountofNetworksForked() → {Promise.<number>}

Get Amount of Networks Forked in the Protocol

View Source models/BEPRO/NetworkFactory.js, line 85

Promise.<number>

# async getBEPROLocked() → {Promise.<number>}

Get Total Amount of Tokens Staked in the Protocol

View Source models/BEPRO/NetworkFactory.js, line 119

Promise.<number>

# async getBEPROStaked() → {Promise.<number>}

Get Total Amount of BEPRO Staked for Oracles

View Source models/BEPRO/Network.js, line 215

Promise.<number>

# async getIssueByCID(params) → {Promise.<TokensNetwork~Issue>}

Get Issue By Id

Parameters:
Name Type Description
params Object
issueCID String

View Source models/BEPRO/Network.js, line 373

Promise.<TokensNetwork~Issue>

# async getIssueById(params) → {Promise.<TokensNetwork~Issue>}

Get Issue By Id

Parameters:
Name Type Description
params Object
issueId Integer

View Source models/BEPRO/Network.js, line 398

Promise.<TokensNetwork~Issue>

# async getIssuesByAddress(address) → {Array.<number>}

Get Open Issues Available

Parameters:
Name Type Description
address Address

View Source models/BEPRO/Network.js, line 73

Array.<number>

# async getLockedStakedByAddress(address) → {Promise.<number>}

Get Total Amount of Tokens Locked by Operator in the Network

Parameters:
Name Type Description
address Address

View Source models/BEPRO/NetworkFactory.js, line 95

Promise.<number>

# async getMergeById(params) → {Promise.<TokensNetwork~MergedIssue>}

Get votes, address and amounts for issue

Parameters:
Name Type Description
params Object
issue_id number
merge_id number

View Source models/BEPRO/Network.js, line 425

Promise.<TokensNetwork~MergedIssue>

# async getNetworkByAddress(address) → {Adddress}

Get Network By Creator Address

Parameters:
Name Type Description
address Address

View Source models/BEPRO/NetworkFactory.js, line 62

Adddress

# async getNetworkById(id) → {Adddress}

Get Network By Id

Parameters:
Name Type Description
id number

View Source models/BEPRO/NetworkFactory.js, line 74

Adddress

# async getNetworks(address) → {Array.<Address>}

Get Open Issues Available

Parameters:
Name Type Description
address Address

View Source models/BEPRO/NetworkFactory.js, line 107

Array.<Address>

# async getOraclesByAddress(params) → {Promise.<number>}

Get Issue Id Info

Parameters:
Name Type Description
params Object
address Address

View Source models/BEPRO/Network.js, line 335

Number of votes

Promise.<number>

# async getOraclesSummary(params) → {Integer|Array|Integer|Array|Address|Integer}

Get Oralces By Address

Parameters:
Name Type Description
params Object
address Address

View Source models/BEPRO/Network.js, line 352

oraclesDelegatedByOthers

Integer

amounts

Array | Integer

addresses

Array | Address

tokensLocked

Integer

# async getSettlerTokenAddress() → {Promise.<address>}

Get Settler Token Address

View Source models/BEPRO/Network.js, line 263

Promise.<address>

# async getSettlerTokenAddress() → {Promise.<address>}

Get Settler Token Address

View Source models/BEPRO/NetworkFactory.js, line 140

Promise.<address>

# getSettlerTokenContract()

View Source models/BEPRO/Network.js, line 692

ERC20Contract|null

# getSettlerTokenContract()

View Source models/BEPRO/NetworkFactory.js, line 256

ERC20Contract|null

# async getTokensStaked() → {Promise.<number>}

Get Total Amount of Tokens Staked for Bounties in the Network

View Source models/BEPRO/Network.js, line 204

Promise.<number>

# async getTransactionTokenAddress() → {Promise.<address>}

Get Transaction Token Address

View Source models/BEPRO/Network.js, line 241

Promise.<address>

# getTransactionTokenContract()

View Source models/BEPRO/Network.js, line 699

ERC20Contract|null

# isApprovedSettlerToken(params) → {Promise.<number>}

Verify if Approved

Parameters:
Name Type Description
params Object
amount number
address Address

View Source models/BEPRO/Network.js, line 477

Promise.<number>

# isApprovedSettlerToken(params) → {Promise.<number>}

Verify if Approved

Parameters:
Name Type Description
params Object
amount number
address Address

View Source models/BEPRO/NetworkFactory.js, line 183

Promise.<number>

# isApprovedTransactionalToken(params) → {Promise.<number>}

Verify if Approved

Parameters:
Name Type Description
params Object
amount number
address Address

View Source models/BEPRO/Network.js, line 491

Promise.<number>

# async isCouncil(params) → {Promise.<address>}

Verify if Address is Council

Parameters:
Name Type Description
params Object
address number

View Source models/BEPRO/Network.js, line 255

Promise.<address>

# async isIssueInDraft(params) → {Promise.<boolean>}

Verify if Issue is still in Draft Mode (Available to use the redeemIssue Action)

Parameters:
Name Type Description
params Object
issueId number

View Source models/BEPRO/Network.js, line 307

Promise.<boolean>

# async isMergeDisputed(params) → {Promise.<boolean>}

Verify if Merge is disputed (i.e. was rejected by the network holders)

Parameters:
Name Type Description
params Object
issueId number
mergeId number

View Source models/BEPRO/Network.js, line 322

Promise.<boolean>

# async isOperator(params) → {Promise.<address>}

Verify if Address is Council

Parameters:
Name Type Description
params Object
address number

View Source models/BEPRO/NetworkFactory.js, line 132

Promise.<address>

# async lock(params) → {Promise.<TransactionObject>}

lock tokens for oracles

Parameters:
Name Type Description
params Object

View Source models/BEPRO/Network.js, line 505

Tokens Amount has to be higher than 0

Error

Tokens not approve for tx, first use 'approveERC20'

Error
Promise.<TransactionObject>

# async lock(params) → {Promise.<TransactionObject>}

lock tokens for operator use

Parameters:
Name Type Description
params Object

View Source models/BEPRO/NetworkFactory.js, line 197

Tokens Amount has to be higher than 0

Error

Tokens not approve for tx, first use 'approveERC20'

Error
Promise.<TransactionObject>

# async mergeCreatorFeeShare() → {Promise.<number>}

Get Amount of Merge Fee Share

View Source models/BEPRO/Network.js, line 147

Promise.<number>

# async openIssue(params) → {Promise.<TransactionObject>}

open Issue

Parameters:
Name Type Description
params Object
tokenAmount number
cid String

View Source models/BEPRO/Network.js, line 576

Tokens Amount has to be higher than 0

Error

Tokens not approve for tx, first use 'approveERC20'

Error
Promise.<TransactionObject>

# async OPERATOR_AMOUNT() → {Promise.<Integer>}

Get Amount Needed for Operator

View Source models/BEPRO/NetworkFactory.js, line 151

Promise.<Integer>

# async percentageNeededForApprove() → {Promise.<number>}

Get Amount of Needed for Approve

View Source models/BEPRO/Network.js, line 119

Promise.<number>

# async percentageNeededForDispute() → {Promise.<number>}

Get Amount of % Needed for Dispute

View Source models/BEPRO/Network.js, line 133

Promise.<number>

# async percentageNeededForMerge() → {Promise.<number>}

Get Amount of Needed for Merge

View Source models/BEPRO/Network.js, line 190

Promise.<number>

# async proposeIssueMerge(params) → {Promise.<TransactionObject>}

Propose Merge of Issue

Parameters:
Name Type Description
params Object
issueID number
prAddresses Array.<Address>
prAmounts Array.<number>

View Source models/BEPRO/Network.js, line 628

Promise.<TransactionObject>

# async recognizeAsFinished(params) → {Promise.<TransactionObject>}

Recognize Issue as Resolved

Parameters:
Name Type Description
params Object
issueId Number

View Source models/BEPRO/Network.js, line 559

Promise.<TransactionObject>

# async redeemIssue(params) → {Promise.<TransactionObject>}

redeem Issue

Parameters:
Name Type Description
params Object
issueId number

View Source models/BEPRO/Network.js, line 592

Promise.<TransactionObject>

# async redeemTime() → {Promise.<Date>}

Get Time of redeemTime

View Source models/BEPRO/Network.js, line 175

Promise.<Date>

# async unlock(params) → {Promise.<TransactionObject>}

Unlock Tokens for oracles

Parameters:
Name Type Description
params Object

View Source models/BEPRO/Network.js, line 524

Tokens Amount has to be higher than 0

Error
Promise.<TransactionObject>

# async unlock() → {Promise.<TransactionObject>}

Unlock Tokens for oracles

View Source models/BEPRO/NetworkFactory.js, line 212

Tokens Amount has to be higher than 0

Error
Promise.<TransactionObject>

# async updateIssue(params) → {Promise.<TransactionObject>}

open Issue

Parameters:
Name Type Description
params Object
issueID number
tokenAmount number
address address

View Source models/BEPRO/Network.js, line 607

Promise.<TransactionObject>

# async votesStaked() → {Promise.<number>}

Get Total Amount of Tokens Staked in the network

View Source models/BEPRO/Network.js, line 227

Promise.<number>

Type Definitions

Object

# Options

Properties:
Name Type Attributes Default Description
test Boolean
localtest Boolean

ganache local blockchain

web3Connection Web3Connection <optional>
Web3Connection

created from params: 'test', 'localtest' and optional 'web3Connection' string and 'privateKey'

contractAddress string <optional>

View Source models/BEPRO/Network.js, line 9

Network(options)

Constructor

# new Network(options)

Network Object

Parameters:
Name Type Description
options Network~Options

View Source models/BEPRO/NetworkFactory.js, line 17

Methods

# __assert() → {Promise.<void>}

Asserts the 2 ERC20Contract on the current address

View Source models/BEPRO/Network.js, line 35

Contract is not deployed, first deploy it and provide a contract address

Error
Promise.<void>

# __assert() → {Promise.<void>}

Asserts the 2 ERC20Contract on the current address

View Source models/BEPRO/NetworkFactory.js, line 35

Contract is not deployed, first deploy it and provide a contract address

Error
Promise.<void>

# approveSettlerERC20Token() → {Promise.<number>}

Approve ERC20 Allowance

View Source models/BEPRO/Network.js, line 448

Promise.<number>

# approveSettlerERC20Token() → {Promise.<number>}

Approve ERC20 Allowance

View Source models/BEPRO/NetworkFactory.js, line 166

Promise.<number>

# approveTransactionalERC20Token() → {Promise.<number>}

Approve ERC20 Allowance

View Source models/BEPRO/Network.js, line 461

Promise.<number>

# async changeCouncilAmount(value) → {Promise.<TransactionObject>}

Change amount needed for Council

Parameters:
Name Type Description
value number

View Source models/BEPRO/Network.js, line 295

Promise.<TransactionObject>

# async closeIssue(params) → {Promise.<TransactionObject>}

close Issue

Parameters:
Name Type Description
params Object
issueID number
mergeID number

View Source models/BEPRO/Network.js, line 648

Promise.<TransactionObject>

# async COUNCIL_AMOUNT() → {Promise.<Integer>}

Get Amount Needed for Council

View Source models/BEPRO/Network.js, line 275

Promise.<Integer>

# async createNetwork(params) → {Promise.<TransactionObject>}

Create Network

Parameters:
Name Type Description
params Object
settlerToken Address
transactionalToken Address

View Source models/BEPRO/NetworkFactory.js, line 225

Promise.<TransactionObject>

# async delegateOracles(params) → {Promise.<TransactionObject>}

Delegated Oracles to others

Parameters:
Name Type Description
params Object
tokenAmount number
delegatedTo Address

View Source models/BEPRO/Network.js, line 541

Promise.<TransactionObject>

# deploy(params) → {Promise.<(*|undefined)>}

Deploys current contract and awaits for TokensNetwork#__assert

Parameters:
Name Type Description
params Object
settlerTokenAddress string
transactionTokenAddress string
governanceAddress string
callback function

View Source models/BEPRO/Network.js, line 677

Promise.<(*|undefined)>

# deploy(params) → {Promise.<(*|undefined)>}

Deploys Contracts

Parameters:
Name Type Description
params Object
beproAddress string
callback function

View Source models/BEPRO/NetworkFactory.js, line 241

Promise.<(*|undefined)>

# async disputableTime() → {Promise.<Date>}

Get Time of disputableTime

View Source models/BEPRO/Network.js, line 161

Promise.<Date>

# async disputeMerge(params) → {Promise.<TransactionObject>}

Dispute Merge

Parameters:
Name Type Description
params Object
issueID number
mergeID number

View Source models/BEPRO/Network.js, line 661

Promise.<TransactionObject>

# async getAmountOfDisputers() → {Promise.<number>}

Get Amount of Disputers (people who locked BEPRO) in the network

View Source models/BEPRO/Network.js, line 108

Promise.<number>

# async getAmountofIssuesClosed() → {Promise.<number>}

Get Amount of Issues Closed in the network

View Source models/BEPRO/Network.js, line 97

Promise.<number>

# async getAmountofIssuesOpened() → {Promise.<number>}

Get Amount of Issues Opened in the network

View Source models/BEPRO/Network.js, line 86

Promise.<number>

# async getAmountofNetworksForked() → {Promise.<number>}

Get Amount of Networks Forked in the Protocol

View Source models/BEPRO/NetworkFactory.js, line 85

Promise.<number>

# async getBEPROLocked() → {Promise.<number>}

Get Total Amount of Tokens Staked in the Protocol

View Source models/BEPRO/NetworkFactory.js, line 119

Promise.<number>

# async getBEPROStaked() → {Promise.<number>}

Get Total Amount of BEPRO Staked for Oracles

View Source models/BEPRO/Network.js, line 215

Promise.<number>

# async getIssueByCID(params) → {Promise.<TokensNetwork~Issue>}

Get Issue By Id

Parameters:
Name Type Description
params Object
issueCID String

View Source models/BEPRO/Network.js, line 373

Promise.<TokensNetwork~Issue>

# async getIssueById(params) → {Promise.<TokensNetwork~Issue>}

Get Issue By Id

Parameters:
Name Type Description
params Object
issueId Integer

View Source models/BEPRO/Network.js, line 398

Promise.<TokensNetwork~Issue>

# async getIssuesByAddress(address) → {Array.<number>}

Get Open Issues Available

Parameters:
Name Type Description
address Address

View Source models/BEPRO/Network.js, line 73

Array.<number>

# async getLockedStakedByAddress(address) → {Promise.<number>}

Get Total Amount of Tokens Locked by Operator in the Network

Parameters:
Name Type Description
address Address

View Source models/BEPRO/NetworkFactory.js, line 95

Promise.<number>

# async getMergeById(params) → {Promise.<TokensNetwork~MergedIssue>}

Get votes, address and amounts for issue

Parameters:
Name Type Description
params Object
issue_id number
merge_id number

View Source models/BEPRO/Network.js, line 425

Promise.<TokensNetwork~MergedIssue>

# async getNetworkByAddress(address) → {Adddress}

Get Network By Creator Address

Parameters:
Name Type Description
address Address

View Source models/BEPRO/NetworkFactory.js, line 62

Adddress

# async getNetworkById(id) → {Adddress}

Get Network By Id

Parameters:
Name Type Description
id number

View Source models/BEPRO/NetworkFactory.js, line 74

Adddress

# async getNetworks(address) → {Array.<Address>}

Get Open Issues Available

Parameters:
Name Type Description
address Address

View Source models/BEPRO/NetworkFactory.js, line 107

Array.<Address>

# async getOraclesByAddress(params) → {Promise.<number>}

Get Issue Id Info

Parameters:
Name Type Description
params Object
address Address

View Source models/BEPRO/Network.js, line 335

Number of votes

Promise.<number>

# async getOraclesSummary(params) → {Integer|Array|Integer|Array|Address|Integer}

Get Oralces By Address

Parameters:
Name Type Description
params Object
address Address

View Source models/BEPRO/Network.js, line 352

oraclesDelegatedByOthers

Integer

amounts

Array | Integer

addresses

Array | Address

tokensLocked

Integer

# async getSettlerTokenAddress() → {Promise.<address>}

Get Settler Token Address

View Source models/BEPRO/Network.js, line 263

Promise.<address>

# async getSettlerTokenAddress() → {Promise.<address>}

Get Settler Token Address

View Source models/BEPRO/NetworkFactory.js, line 140

Promise.<address>

# getSettlerTokenContract()

View Source models/BEPRO/Network.js, line 692

ERC20Contract|null

# getSettlerTokenContract()

View Source models/BEPRO/NetworkFactory.js, line 256

ERC20Contract|null

# async getTokensStaked() → {Promise.<number>}

Get Total Amount of Tokens Staked for Bounties in the Network

View Source models/BEPRO/Network.js, line 204

Promise.<number>

# async getTransactionTokenAddress() → {Promise.<address>}

Get Transaction Token Address

View Source models/BEPRO/Network.js, line 241

Promise.<address>

# getTransactionTokenContract()

View Source models/BEPRO/Network.js, line 699

ERC20Contract|null

# isApprovedSettlerToken(params) → {Promise.<number>}

Verify if Approved

Parameters:
Name Type Description
params Object
amount number
address Address

View Source models/BEPRO/Network.js, line 477

Promise.<number>

# isApprovedSettlerToken(params) → {Promise.<number>}

Verify if Approved

Parameters:
Name Type Description
params Object
amount number
address Address

View Source models/BEPRO/NetworkFactory.js, line 183

Promise.<number>

# isApprovedTransactionalToken(params) → {Promise.<number>}

Verify if Approved

Parameters:
Name Type Description
params Object
amount number
address Address

View Source models/BEPRO/Network.js, line 491

Promise.<number>

# async isCouncil(params) → {Promise.<address>}

Verify if Address is Council

Parameters:
Name Type Description
params Object
address number

View Source models/BEPRO/Network.js, line 255

Promise.<address>

# async isIssueInDraft(params) → {Promise.<boolean>}

Verify if Issue is still in Draft Mode (Available to use the redeemIssue Action)

Parameters:
Name Type Description
params Object
issueId number

View Source models/BEPRO/Network.js, line 307

Promise.<boolean>

# async isMergeDisputed(params) → {Promise.<boolean>}

Verify if Merge is disputed (i.e. was rejected by the network holders)

Parameters:
Name Type Description
params Object
issueId number
mergeId number

View Source models/BEPRO/Network.js, line 322

Promise.<boolean>

# async isOperator(params) → {Promise.<address>}

Verify if Address is Council

Parameters:
Name Type Description
params Object
address number

View Source models/BEPRO/NetworkFactory.js, line 132

Promise.<address>

# async lock(params) → {Promise.<TransactionObject>}

lock tokens for oracles

Parameters:
Name Type Description
params Object

View Source models/BEPRO/Network.js, line 505

Tokens Amount has to be higher than 0

Error

Tokens not approve for tx, first use 'approveERC20'

Error
Promise.<TransactionObject>

# async lock(params) → {Promise.<TransactionObject>}

lock tokens for operator use

Parameters:
Name Type Description
params Object

View Source models/BEPRO/NetworkFactory.js, line 197

Tokens Amount has to be higher than 0

Error

Tokens not approve for tx, first use 'approveERC20'

Error
Promise.<TransactionObject>

# async mergeCreatorFeeShare() → {Promise.<number>}

Get Amount of Merge Fee Share

View Source models/BEPRO/Network.js, line 147

Promise.<number>

# async openIssue(params) → {Promise.<TransactionObject>}

open Issue

Parameters:
Name Type Description
params Object
tokenAmount number
cid String

View Source models/BEPRO/Network.js, line 576

Tokens Amount has to be higher than 0

Error

Tokens not approve for tx, first use 'approveERC20'

Error
Promise.<TransactionObject>

# async OPERATOR_AMOUNT() → {Promise.<Integer>}

Get Amount Needed for Operator

View Source models/BEPRO/NetworkFactory.js, line 151

Promise.<Integer>

# async percentageNeededForApprove() → {Promise.<number>}

Get Amount of Needed for Approve

View Source models/BEPRO/Network.js, line 119

Promise.<number>

# async percentageNeededForDispute() → {Promise.<number>}

Get Amount of % Needed for Dispute

View Source models/BEPRO/Network.js, line 133

Promise.<number>

# async percentageNeededForMerge() → {Promise.<number>}

Get Amount of Needed for Merge

View Source models/BEPRO/Network.js, line 190

Promise.<number>

# async proposeIssueMerge(params) → {Promise.<TransactionObject>}

Propose Merge of Issue

Parameters:
Name Type Description
params Object
issueID number
prAddresses Array.<Address>
prAmounts Array.<number>

View Source models/BEPRO/Network.js, line 628

Promise.<TransactionObject>

# async recognizeAsFinished(params) → {Promise.<TransactionObject>}

Recognize Issue as Resolved

Parameters:
Name Type Description
params Object
issueId Number

View Source models/BEPRO/Network.js, line 559

Promise.<TransactionObject>

# async redeemIssue(params) → {Promise.<TransactionObject>}

redeem Issue

Parameters:
Name Type Description
params Object
issueId number

View Source models/BEPRO/Network.js, line 592

Promise.<TransactionObject>

# async redeemTime() → {Promise.<Date>}

Get Time of redeemTime

View Source models/BEPRO/Network.js, line 175

Promise.<Date>

# async unlock(params) → {Promise.<TransactionObject>}

Unlock Tokens for oracles

Parameters:
Name Type Description
params Object

View Source models/BEPRO/Network.js, line 524

Tokens Amount has to be higher than 0

Error
Promise.<TransactionObject>

# async unlock() → {Promise.<TransactionObject>}

Unlock Tokens for oracles

View Source models/BEPRO/NetworkFactory.js, line 212

Tokens Amount has to be higher than 0

Error
Promise.<TransactionObject>

# async updateIssue(params) → {Promise.<TransactionObject>}

open Issue

Parameters:
Name Type Description
params Object
issueID number
tokenAmount number
address address

View Source models/BEPRO/Network.js, line 607

Promise.<TransactionObject>

# async votesStaked() → {Promise.<number>}

Get Total Amount of Tokens Staked in the network

View Source models/BEPRO/Network.js, line 227

Promise.<number>

Type Definitions

Object

# Options

Properties:
Name Type Attributes Default Description
test Boolean
localtest Boolean

ganache local blockchain

web3Connection Web3Connection <optional>
Web3Connection

created from params: 'test', 'localtest' and optional 'web3Connection' string and 'privateKey'

contractAddress string <optional>

View Source models/BEPRO/Network.js, line 9