def bounty_killed(self, bounty): message = pipe(bounty, [ get_base_bounty_values, wrapped_partial(pluck, fields=['title', 'bounty_id', 'link']), wrapped_partial(format_message, msg_string=BOUNTY_KILLED_SLACK_STR) ]) notify_slack(sc, channel, 'Bounty Killed', message)
def payout_increased(self, bounty): message = pipe(bounty, [ get_base_bounty_values, wrapped_partial(pluck, fields=['title', 'bounty_id', 'link']), wrapped_partial(format_message, msg_string=templates['PayoutIncreased']) ]) notify_slack(sc, channel, 'Payout Increased', message)
def issuer_transferred(self, bounty): message = pipe(bounty, [ get_base_bounty_values, wrapped_partial(pluck, fields=['title', 'bounty_id', 'link']), wrapped_partial(format_message, msg_string=templates['IssuerTransferred']) ]) notify_slack(sc, channel, 'Issuer Transferred', message)
def contribution_added(self, bounty): message = pipe(bounty, [ get_base_bounty_values, wrapped_partial(pluck, fields=['title', 'bounty_id', 'link']), wrapped_partial(format_message, msg_string=templates['ContributionAdded']) ]) notify_slack(sc, channel, 'Contribution Added', message)
def bounty_killed(self, bounty): message = pipe(bounty, [ get_base_bounty_values, wrapped_partial(pluck, fields=['title', 'id', 'link']), wrapped_partial(format_message, msg_string=templates['BountyKilled']) ]) notify_slack(sc, channel, 'Bounty Killed', message)
def fulfillment_updated(self, bounty, fulfillment_id): message = pipe(bounty, [ get_base_bounty_values, wrapped_partial(pluck, fields=['title', 'bounty_id', 'link']), wrapped_partial(format_message, msg_string=templates['FulfillmentUpdated'], fulfillment_id=fulfillment_id) ]) notify_slack(sc, channel, 'Fulfillment Updated', message)
def deadline_extended(self, bounty): message = pipe(bounty, [ get_base_bounty_values, wrapped_partial(pluck, fields=['title', 'bounty_id', 'deadline', 'link']), wrapped_partial(format_message, msg_string=templates['DeadlineExtended']) ]) notify_slack(sc, channel, 'Deadline Extended', message)
def bounty_activated(self, bounty): message = pipe(bounty, [ get_base_bounty_values, wrapped_partial(pluck, fields=[ 'title', 'id', 'usd_price', 'total_value', 'token_symbol', 'token_price', 'link' ]), wrapped_partial(format_message, msg_string=templates['BountyActivated']) ]) notify_slack(sc, channel, 'Bounty Activated', message)
def bounty_issued_and_activated(self, bounty): message = pipe(bounty, [ get_base_bounty_values, wrapped_partial(pluck, fields=[ 'title', 'bounty_id', 'usd_price', 'total_value', 'tokenSymbol', 'token_price', 'deadline', 'link', 'total_value' ]), wrapped_partial(format_message, msg_string=BOUNTY_ISSUED_SLACK_STR) ]) notify_slack(sc, channel, 'Bounty Issued and Activated', message)
def fulfillment_accepted(self, bounty, fulfillment_id): message = pipe(bounty, [ get_base_bounty_values, wrapped_partial(pluck, fields=[ 'title', 'bounty_id', 'usd_price', 'total_value', 'tokenSymbol', 'token_price', 'deadline', 'link', 'token_lock_price' ]), wrapped_partial(format_message, msg_string=templates['FulfillmentAccepted'], fulfillment_id=fulfillment_id) ]) notify_slack(sc, channel, 'Fulfillment Accepted', message)