Skip to content
Permalink
Browse files

feat(disputes): return appealsRepartitioned

  • Loading branch information...
epiqueras authored and satello committed Feb 15, 2018
1 parent 98b777d commit 12469686299aaafdc20476939a73564d83a0f9d6
Showing with 18 additions and 9 deletions.
  1. +16 −9 src/abstractWrappers/Disputes.js
  2. +2 −0 src/contractWrappers/KlerosWrapper.js
@@ -541,27 +541,34 @@ class Disputes extends AbstractWrapper {
const ruling = await this._Arbitrator.currentRulingForDispute(arbitratorAddress, disputeId)

return ({
// Arbitrable Contract Data
// FIXME hash not being stored in contract atm
hash: arbitrableContractAddress,
partyA: arbitrableContractData.partyA,
partyB: arbitrableContractData.partyB,
arbitrableContractStatus: arbitrableContractData.status,
disputeState: dispute.state,
disputeStatus: dispute.status,
arbitrableContractAddress: arbitrableContractAddress,
arbitrableContractStatus: arbitrableContractData.status,
arbitratorAddress: arbitratorAddress,
fee: dispute.arbitrationFeePerJuror,
partyA: arbitrableContractData.partyA,
partyB: arbitrableContractData.partyB,

// Dispute Data
disputeId: disputeId,
session: dispute.firstSession + dispute.numberOfAppeals,
numberOfAppeals: dispute.numberOfAppeals,
fee: dispute.arbitrationFeePerJuror,
deadline: deadline,
// store data
disputeState: dispute.state,
disputeStatus: dispute.status,
voteCounters: dispute.voteCounters,
appealsRepartitioned: dispute.appealsRepartitioned,

// Store Data
description: constractStoreData ? constractStoreData.description : undefined,
email: constractStoreData ? constractStoreData.email : undefined,
votes: votes,
evidence: evidence,
isJuror: isJuror,
votes: votes,
hasRuled: hasRuled,
ruling: ruling,
evidence: evidence
})
}
}
@@ -382,6 +382,8 @@ class KlerosWrapper extends ContractWrapper {
initialNumberJurors: dispute[4].toNumber(),
arbitrationFeePerJuror: this._Web3Wrapper.fromWei(dispute[5], 'ether'),
state: dispute[6].toNumber(),
voteCounters: dispute[8],
appealsRepartitioned: dispute[11],
status: (await contractInstance.disputeStatus(disputeId)).toNumber()
}
} catch (e) {

0 comments on commit 1246968

Please sign in to comment.
You can’t perform that action at this time.