Fulfillments

Description

The fulfillments module is used to query the Bounties Network's hosted API. Fulfillments can be filtered using the actions below. Unlike the bounties modules, adding a filter does not implicitly reload based on the newly added filter. The loadFulfillments action must be explicitly dispatched.

Actions

loadFulfillments()

Load fulfillments matching current filters

loadMoreFulfillments()

Load the next chunk of total matching fulfillments

addIssuerFilter(address)

Filter fulfillments based on the issuer's address

addFulfillerFilter(address)

Filter fulfillments based on the fulfiller's address

addBountyFilter(id)

Filter fulfillments to only retrieve fulfillments on a bounty associated with id

resetFilters

Reset all filters to default

resetState

Reset state to initial state

State

{
  "loading": bool,
  "loaded": bool,
  "error": bool,
  "loadingMore": bool,
  "loadingMoreError": bool,
  "fulfillments": array,
  "count": number,
  "filters": {
    "issuer": string,
    "fulfiller": string,
    "bounty_id": string
  }
}

Selectors

fulfillmentsSelector(state)

Retrieve the entire state described above