Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Commit

Permalink
feat(disputes): add new prop to shape
Browse files Browse the repository at this point in the history
  • Loading branch information
epiqueras committed Feb 15, 2018
1 parent d49ad53 commit f8b5a8f
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions src/reducers/dispute.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,27 @@ import createReducer, { createResource } from '../utils/redux'

// Base Shapes
const dispute = PropTypes.shape({
disputeId: PropTypes.number.isRequired,
disputeState: PropTypes.number.isRequired,
disputeStatus: PropTypes.number.isRequired,
description: PropTypes.string.isRequired,
deadline: PropTypes.instanceOf(Date).isRequired,
fee: PropTypes.number.isRequired,
arbitratorAddress: PropTypes.string.isRequired,
// Arbitrable Contract Data
hash: PropTypes.string.isRequired,
arbitrableContractAddress: PropTypes.string.isRequired,
arbitrableContractStatus: PropTypes.number.isRequired,
arbitratorAddress: PropTypes.string.isRequired,
partyA: PropTypes.string.isRequired,
partyB: PropTypes.string.isRequired,

// Dispute Data
disputeId: PropTypes.number.isRequired,
session: PropTypes.number.isRequired,
numberOfAppeals: PropTypes.number.isRequired,
fee: PropTypes.number.isRequired,
deadline: PropTypes.instanceOf(Date).isRequired,
disputeState: PropTypes.number.isRequired,
disputeStatus: PropTypes.number.isRequired,
voteCounters: PropTypes.number.isRequired,
netPNK: PropTypes.number.isRequired,

// Store Data
description: PropTypes.string.isRequired,
email: PropTypes.string.isRequired,
evidence: PropTypes.arrayOf(
PropTypes.shape({
Expand All @@ -24,12 +34,10 @@ const dispute = PropTypes.shape({
url: PropTypes.string.isRequired
}).isRequired
).isRequired,
session: PropTypes.number.isRequired,
isJuror: PropTypes.bool.isRequired,
hasRuled: PropTypes.bool.isRequired,
votes: PropTypes.arrayOf(PropTypes.number.isRequired).isRequired,
ruling: PropTypes.number.isRequired,
hash: PropTypes.string.isRequired
hasRuled: PropTypes.bool.isRequired,
ruling: PropTypes.number.isRequired
})

// Shapes
Expand Down

0 comments on commit f8b5a8f

Please sign in to comment.