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