tx · TC76UuZTMeBemQ4NT6WZb8mmQQC4UUgtphHHoyCpTsL 3MuXdKK8eFQDgt41Sberj6N4ZT3TvUk1Mvu: -0.01000000 Waves 2019.03.22 22:41 [547965] smart account 3MuXdKK8eFQDgt41Sberj6N4ZT3TvUk1Mvu > SELF 0.00000000 Waves
{ "type": 13, "id": "TC76UuZTMeBemQ4NT6WZb8mmQQC4UUgtphHHoyCpTsL", "fee": 1000000, "feeAssetId": null, "timestamp": 1553283662744, "version": 1, "sender": "3MuXdKK8eFQDgt41Sberj6N4ZT3TvUk1Mvu", "senderPublicKey": "AaaCPJYoQcvbENwoYrci6RY1TMcuzRdKSTDBGFR5sz1D", "proofs": [ "2avN4usz3vgedSys83DFB3Y1GkA9kiHNcmHDAy74NmoY3VMrKNUNTxsAxfYUnJKfEfL8Yd6PZMNFaPgj3sGNH26C" ], "script": "base64:AgQAAAAERGF0YQkBAAAAB0FkZHJlc3MAAAABAQAAABoBVD2RhFNXyxFcMpzyLAN1lrtcbMCIIroW1gQAAAADQm9iCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUPZGEU1fLEVwynPIsA3WWu1xswIgiuhbWBAAAAAVBbGljZQkBAAAAB0FkZHJlc3MAAAABAQAAABoBVIbGSCoGSssTpaGy3UGiRkLsT1N377gnQQQAAAAMYmVmb3JlSGVpZ2h0AAAAAAAAGSUfBAAAAARsb2NrCQEAAAAHZXh0cmFjdAAAAAEJAAQbAAAAAgUAAAAERGF0YQIAAAAEbG9jawMFAAAABGxvY2sEAAAABnNlY3JldAEAAAAgK93kToFeT682l8fxZpnfZEeR7LPCHYoZtfh8xIn7ZhgEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwBAAAAAd0eFRvQm9iAwMJAAAAAAAAAggFAAAAAXQAAAAJcmVjaXBpZW50BQAAAANCb2IJAAAAAAAAAgkAAfc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 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 = 1647903 | |
7 | + | let lock = extract(getBoolean(Data, "lock")) | |
8 | + | if (lock) | |
9 | + | then { | |
10 | + | let secret = base58'3xEmrEg13dR6thnyGsjUiawYNSpv7Zv2iFi4KYxA8ngf' | |
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'3xEmrEg13dR6thnyGsjUiawYNSpv7Zv2iFi4KYxA8ngf' | |
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 17.95 ms ◑