tx · 9hF4rpoU67bCipbRR4Jtokk6ThugBzksXoWG2u1FSMLF 3MuXdKK8eFQDgt41Sberj6N4ZT3TvUk1Mvu: -1.00000000 Waves 2019.03.22 22:00 [547922] smart asset 3MuXdKK8eFQDgt41Sberj6N4ZT3TvUk1Mvu > SELF 0 atomic
{ "type": 15, "id": "9hF4rpoU67bCipbRR4Jtokk6ThugBzksXoWG2u1FSMLF", "fee": 100000000, "feeAssetId": null, "timestamp": 1553281295116, "version": 1, "sender": "3MuXdKK8eFQDgt41Sberj6N4ZT3TvUk1Mvu", "senderPublicKey": "AaaCPJYoQcvbENwoYrci6RY1TMcuzRdKSTDBGFR5sz1D", "proofs": [ "26g1TAeeuWiELqCdDhJeV1cNBGtsc3H8Gri7djuaogwD2F5c9iyNhRAtDwbRSMe6LUu6EUc8oeV1uGhueoXCpZb5" ], "assetId": "H7vTPaYvZ9B1WHfjpHfSdBzLiH4qeZbAM1yfsSBhUxwB", "script": "base64:AgQAAAAERGF0YQkBAAAAB0FkZHJlc3MAAAABAQAAABoBVD2RhFNXyxFcMpzyLAN1lrtcbMCIIroW1gQAAAADQm9iCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUPZGEU1fLEVwynPIsA3WWu1xswIgiuhbWBAAAAAVBbGljZQkBAAAAB0FkZHJlc3MAAAABAQAAABoBVIbGSCoGSssTpaGy3UGiRkLsT1N377gnQQQAAAAMYmVmb3JlSGVpZ2h0AAAAAAAACFw/BAAAAARsb2NrCQEAAAAHZXh0cmFjdAAAAAEJAAQbAAAAAgUAAAAERGF0YQIAAAAEbG9jawMFAAAABGxvY2sEAAAABnNlY3JldAEAAAAgjlLiWqY9FZEENlBPH2/EWa3Rc3c0/BiCbIQdb/ixSyAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwBAAAAAd0eFRvQm9iAwMJAAAAAAAAAgg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acted Prev: 7byhxfaUJQ14CaZJjWKo6kz6MjTUgHvwt9fz3gY1ut8m Next: 9mJH6VoC9gM4CTUA9EkpELKGZuRLqxbyujtVEHHoF4sp Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 2 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let Data = Address(base58'3MuXdKK8eFQDgt41Sberj6N4ZT3TvUk1Mvu') | |
4 | 4 | let Bob = Address(base58'3MuXdKK8eFQDgt41Sberj6N4ZT3TvUk1Mvu') | |
5 | 5 | let Alice = Address(base58'3N2ChrVZCRqa3ivKjNfMgyxPM9b8wL2AnaU') | |
6 | 6 | let beforeHeight = 547903 | |
7 | 7 | let lock = extract(getBoolean(Data, "lock")) | |
8 | 8 | if (lock) | |
9 | 9 | then { | |
10 | 10 | let secret = base58'AaaCPJYoQcvbENwoYrci6RY1TMcuzRdKSTDBGFR5sz1D' | |
11 | 11 | match tx { | |
12 | 12 | case t: TransferTransaction => | |
13 | 13 | let txToBob = if (if ((t.recipient == Bob)) | |
14 | 14 | then (sha256(t.proofs[0]) == secret) | |
15 | 15 | else false) | |
16 | 16 | then ((20 + beforeHeight) >= height) | |
17 | 17 | else false | |
18 | 18 | let backToAliceAfterHeight = if ((height >= (21 + beforeHeight))) | |
19 | 19 | then (t.recipient == Alice) | |
20 | 20 | else false | |
21 | 21 | if (txToBob) | |
22 | 22 | then true | |
23 | 23 | else backToAliceAfterHeight | |
24 | 24 | case _ => | |
25 | 25 | false | |
26 | 26 | } | |
27 | 27 | } | |
28 | 28 | else { | |
29 | 29 | let secret = base58'AaaCPJYoQcvbENwoYrci6RY1TMcuzRdKSTDBGFR5sz1D' | |
30 | 30 | match tx { | |
31 | 31 | case t: TransferTransaction => | |
32 | 32 | let txToBob = if (if ((t.recipient == Bob)) | |
33 | 33 | then (sha256(t.proofs[0]) == secret) | |
34 | 34 | else false) | |
35 | 35 | then ((20 + beforeHeight) >= height) | |
36 | 36 | else false | |
37 | 37 | let backToAliceAfterHeight = if ((height >= (21 + beforeHeight))) | |
38 | 38 | then (t.recipient == Alice) | |
39 | 39 | else false | |
40 | 40 | if (txToBob) | |
41 | 41 | then true | |
42 | 42 | else backToAliceAfterHeight | |
43 | 43 | case _ => | |
44 | 44 | true | |
45 | 45 | } | |
46 | 46 | } |
github/deemru/w8io/026f985 34.10 ms ◑