Advertisement
Guest User

Untitled

a guest
Sep 21st, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. const apiKey = 'tpubD9fidjoMPrsWMvKHTxoru55uFAdKARWmqTQ1TpsaoaVvXu9P4U87Qf83PmkXBfSa4UC3m2eHxaCewNqp8M2TtUsLXMHHD5Q7gtik34n7pNa'
  2. const run = new Run({ network: 'test',
  3. purse: new star.StarPay(apiKey) })
  4.  
  5.  
  6. class LIKE2 extends Jig {
  7.  
  8. init(owner) {
  9. this.hopcount = 0;
  10. this.maxHops = 1;
  11. this.owner = owner;
  12. this.message = "";
  13. //this.icon = {emoji:"👍"};
  14. }
  15.  
  16. send(to, message) {
  17. if (this.hopcount < this.maxHops)
  18. {
  19. this.owner = to;
  20. this.message = message;
  21. this.hopcount = this.hopcount+1;
  22. }else{
  23. return false;
  24. }
  25. }
  26. }
  27. LIKE2.icon = {emoji:"👍"};
  28.  
  29. //User kauft 1 LIKES von Likefactory
  30. const likewise2 = new LIKE2("0240202b4814beff0c2bfd6d695fd9b69ea5e682d9625475114b737ae3c308c461");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement