AugurProject/augur-ui

View on GitHub
src/modules/reports/actions/dispute-crowdsourcer-tokens-management.js

Summary

Maintainability
A
0 mins
Test Coverage
export const UPDATE_DISPUTE_CROWDSOURCERS_DATA =
  "UPDATE_DISPUTE_CROWDSOURCERS_DATA";
export const UPDATE_DISPUTE_CROWDSOURCERS_BALANCE =
  "UPDATE_DISPUTE_CROWDSOURCERS_BALANCE";

export const updateDisputeCrowdsourcersData = disputeCrowdsourcersDataUpdated => ({
  type: UPDATE_DISPUTE_CROWDSOURCERS_DATA,
  data: { disputeCrowdsourcersDataUpdated }
});

export const updateDisputeCrowdsourcersBalance = (
  disputeCrowdsourcerID,
  balance
) => ({
  type: UPDATE_DISPUTE_CROWDSOURCERS_BALANCE,
  data: {
    disputeCrowdsourcerID,
    balance
  }
});