Example #1
0
 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)
Example #2
0
 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)
Example #3
0
 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)
Example #4
0
 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)
Example #5
0
 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)
Example #6
0
 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)
Example #7
0
 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)
Example #8
0
 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)
Example #9
0
 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)
Example #10
0
 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)