Description

The bounty module is the main interface to the Standard Bounties smart contracts and to retrieving any data related to a bounty. It includes all bounty management actions and a selector to get the details of a loaded bounty.

Actions

getBounty(id)

Retrieve bounty data by id

getDraft(id)

Retrieve draft data by id

createBounty(values, balance)

Creates a bounty worth balance based on values. See Bounty for a full list of parameters expected in the values object.

increasePayout(id, fulfillmentAmount, balance, paysTokens, decimals, tokenContract)

Increase payout to the new fulfillmentAmount and balance

activateBounty(id, balance, paysTokens, decimals, tokenContract)

Activate a bounty worth balance

killBounty(id)

Kill the bounty associated with id

transferOwnership(id, address)

Transfer the bounty associated with id to the owner of address

extendDeadline(id, deadline)

Extend a bounty's deadline (in Unix epoch time)

contribute(id, value, paysTokens, decimals, tokenContract)

Contribute to a bounty's balance

updateDraft(bountyId, values)

Update the draft bounty associated with bountyId. See Bounty for a full list of parameters expected in the values object.

createDraft(values)

Create draft bounty based on values object. See Bounty for a full list of parameters expected in the values object.

State

{
  "bounty": Bounty,
  "getBountyState": {
    "loading": bool,
    "error": bool
  },
  "getDraftState": {
    "loading": bool,
    "error": bool
  },
  "createDraftState": {
    "creating": bool,
    "error": bool
  },
  "stdBountyState": {
    "pending": bool,
    "error": bool
  }
}

Selectors

createDraftStateSelector(state)

Retrieves createDraftState from state

stdBountyStateSelector(state)

Retrieves stdBountyState from state

getDraftStateSelector(state)

Retrieves getDraftState from state

getBountyStateSelector(state)

Retrieves getBountyState from state

getBountySelector(state)

Retrieves bounty from state

getDraftBountySelector(state)

Retrieves getDraftBounty from state