tx · CHkHT3EvitFJfbZy4NJ7PiCV8cwoZkCTYSjhE6ow8gqz
3NCEnW5hTnRQ7J9TFQsHS4W92f54PCCWQvN: -0.01400000 Waves
2020.02.02 17:48 [881676] smart account 3NCEnW5hTnRQ7J9TFQsHS4W92f54PCCWQvN > SELF 0.00000000 Waves
{
"type": 13,
"id": "CHkHT3EvitFJfbZy4NJ7PiCV8cwoZkCTYSjhE6ow8gqz",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1580654917639,
"version": 1,
"sender": "3NCEnW5hTnRQ7J9TFQsHS4W92f54PCCWQvN",
"senderPublicKey": "8PUyJHGVRUxhY118c4H5isGCGLYgRBmcSzNYooDAqwh",
"proofs": [
"2aHqwuJCpD3fSDahe6HjsNvXSF72UqCX7QZnu1FQktcqafhtuX2UugDsPGX8KNxjecLjyDQNQHkxdzh4CWBoN9n7"
],
"script": "base64:AAIDAAAAAAAAAAgIARIECgIIAQAAAAEAAAAAD25hbWVVbnRpbFN1ZmZ1eAIAAAAGOnVudGlsAAAAAQAAAAFpAQAAAAdnZXRMb2NrAAAAAgAAAAhsb2NrTmFtZQAAAAV1bnRpbAQAAAANbG9ja05hbWVVbnRpbAkAASwAAAACBQAAAAhsb2NrTmFtZQUAAAAPbmFtZVVudGlsU3VmZnV4BAAAAAlibG9ja0luZm8JAAPtAAAAAQUAAAAGaGVpZ2h0BAAAAANub3cEAAAAByRtYXRjaDAFAAAACWJsb2NrSW5mbwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAJQmxvY2tJbmZvBAAAAAF0BQAAAAckbWF0Y2gwCAUAAAABdAAAAAl0aW1lc3RhbXAJAAACAAAAAQIAAAAUQ2Fubm90IGdldCBibG9ja2luZm8EAAAACW5vdFRvb0xvdwMJAABnAAAAAgUAAAADbm93BQAAAAV1bnRpbAkAAAIAAAABAgAAAB9TdXBwbGllZCB1bnRpbCB2YWx1ZSBpcyB0b28gbG93BgQAAAAKbm90VG9vSGlnaAMJAABmAAAAAgUAAAAFdW50aWwJAABkAAAAAgUAAAADbm93AAAAAAAAAAJYCQAAAgAAAAECAAAAIFN1cHBsaWVkIHVudGlsIHZhbHVlIGlzIHRvbyBoaWdoBgQAAAALY2FuQmVMb2NrZWQEAAAAByRtYXRjaDAJAAQcAAAAAgUAAAAEdGhpcwUAAAAIbG9ja05hbWUDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAWIFAAAAByRtYXRjaDAJAAAAAAAAAgUAAAABYggIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAEVW5pdAUAAAAHJG1hdGNoMAYEAAAADGxhc3RMb2NrVGltZQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAA1sb2NrTmFtZVVudGlsAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAXQFAAAAByRtYXRjaDAFAAAAAXQEAAAABFVuaXQFAAAAByRtYXRjaDAAAAAAAAAAAAADAwMFAAAACW5vdFRvb0xvdwUAAAAKbm90VG9vSGlnaAcDBQAAAAtjYW5CZUxvY2tlZAYJAABnAAAAAgUAAAAGaGVpZ2h0BQAAAAxsYXN0TG9ja1RpbWUHCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAAhsb2NrTmFtZQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAANbG9ja05hbWVVbnRpbAUAAAAFdW50aWwFAAAAA25pbAkAAAIAAAABAgAAABNMb2NrIGNhbnQgYmUgbG9ja2VkAAAAAHm9VgM=",
"chainId": 84,
"height": 881676,
"spentComplexity": 0
}
View: original | compacted
Prev: BKPqmGGSaD6Wi3XvpKMLX3mGEyXHtvsDQUYCtioJuMFc
Next: 62NBkKVzVyUedufzyNsFtHM357jdfRBtFDi9joAtSvA3
Diff:
Old | New | | Differences |
---|
6 | 6 | | @Callable(b) |
---|
7 | 7 | | func getLock (c,d) = { |
---|
8 | 8 | | let e = (c + a) |
---|
9 | | - | let f = if ((height >= d)) |
---|
| 9 | + | let f = blockInfoByHeight(height) |
---|
| 10 | + | let g = { |
---|
| 11 | + | let h = f |
---|
| 12 | + | if ($isInstanceOf(h, "BlockInfo")) |
---|
| 13 | + | then { |
---|
| 14 | + | let i = h |
---|
| 15 | + | i.timestamp |
---|
| 16 | + | } |
---|
| 17 | + | else throw("Cannot get blockinfo") |
---|
| 18 | + | } |
---|
| 19 | + | let j = if ((g >= d)) |
---|
10 | 20 | | then throw("Supplied until value is too low") |
---|
11 | 21 | | else true |
---|
12 | | - | let g = if ((d > (height + 10))) |
---|
| 22 | + | let k = if ((d > (g + 600))) |
---|
13 | 23 | | then throw("Supplied until value is too high") |
---|
14 | 24 | | else true |
---|
15 | | - | let h = { |
---|
16 | | - | let i = getBinary(this, c) |
---|
17 | | - | if ($isInstanceOf(i, "ByteVector")) |
---|
| 25 | + | let l = { |
---|
| 26 | + | let h = getBinary(this, c) |
---|
| 27 | + | if ($isInstanceOf(h, "ByteVector")) |
---|
18 | 28 | | then { |
---|
19 | | - | let j = i |
---|
20 | | - | (j == b.caller.bytes) |
---|
| 29 | + | let m = h |
---|
| 30 | + | (m == b.caller.bytes) |
---|
21 | 31 | | } |
---|
22 | 32 | | else { |
---|
23 | | - | let k = i |
---|
| 33 | + | let n = h |
---|
24 | 34 | | true |
---|
25 | 35 | | } |
---|
26 | 36 | | } |
---|
27 | | - | let l = { |
---|
28 | | - | let i = getInteger(this, e) |
---|
29 | | - | if ($isInstanceOf(i, "Int")) |
---|
| 37 | + | let o = { |
---|
| 38 | + | let h = getInteger(this, e) |
---|
| 39 | + | if ($isInstanceOf(h, "Int")) |
---|
30 | 40 | | then { |
---|
31 | | - | let m = i |
---|
32 | | - | m |
---|
| 41 | + | let i = h |
---|
| 42 | + | i |
---|
33 | 43 | | } |
---|
34 | 44 | | else { |
---|
35 | | - | let k = i |
---|
| 45 | + | let n = h |
---|
36 | 46 | | 0 |
---|
37 | 47 | | } |
---|
38 | 48 | | } |
---|
39 | | - | if (if (if (f) |
---|
40 | | - | then g |
---|
| 49 | + | if (if (if (j) |
---|
| 50 | + | then k |
---|
41 | 51 | | else false) |
---|
42 | | - | then if (h) |
---|
| 52 | + | then if (l) |
---|
43 | 53 | | then true |
---|
44 | | - | else (height >= l) |
---|
| 54 | + | else (height >= o) |
---|
45 | 55 | | else false) |
---|
46 | 56 | | then WriteSet([DataEntry(c, b.caller.bytes), DataEntry(e, d)]) |
---|
47 | 57 | | else throw("Lock cant be locked") |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = ":until" |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(b) |
---|
7 | 7 | | func getLock (c,d) = { |
---|
8 | 8 | | let e = (c + a) |
---|
9 | | - | let f = if ((height >= d)) |
---|
| 9 | + | let f = blockInfoByHeight(height) |
---|
| 10 | + | let g = { |
---|
| 11 | + | let h = f |
---|
| 12 | + | if ($isInstanceOf(h, "BlockInfo")) |
---|
| 13 | + | then { |
---|
| 14 | + | let i = h |
---|
| 15 | + | i.timestamp |
---|
| 16 | + | } |
---|
| 17 | + | else throw("Cannot get blockinfo") |
---|
| 18 | + | } |
---|
| 19 | + | let j = if ((g >= d)) |
---|
10 | 20 | | then throw("Supplied until value is too low") |
---|
11 | 21 | | else true |
---|
12 | | - | let g = if ((d > (height + 10))) |
---|
| 22 | + | let k = if ((d > (g + 600))) |
---|
13 | 23 | | then throw("Supplied until value is too high") |
---|
14 | 24 | | else true |
---|
15 | | - | let h = { |
---|
16 | | - | let i = getBinary(this, c) |
---|
17 | | - | if ($isInstanceOf(i, "ByteVector")) |
---|
| 25 | + | let l = { |
---|
| 26 | + | let h = getBinary(this, c) |
---|
| 27 | + | if ($isInstanceOf(h, "ByteVector")) |
---|
18 | 28 | | then { |
---|
19 | | - | let j = i |
---|
20 | | - | (j == b.caller.bytes) |
---|
| 29 | + | let m = h |
---|
| 30 | + | (m == b.caller.bytes) |
---|
21 | 31 | | } |
---|
22 | 32 | | else { |
---|
23 | | - | let k = i |
---|
| 33 | + | let n = h |
---|
24 | 34 | | true |
---|
25 | 35 | | } |
---|
26 | 36 | | } |
---|
27 | | - | let l = { |
---|
28 | | - | let i = getInteger(this, e) |
---|
29 | | - | if ($isInstanceOf(i, "Int")) |
---|
| 37 | + | let o = { |
---|
| 38 | + | let h = getInteger(this, e) |
---|
| 39 | + | if ($isInstanceOf(h, "Int")) |
---|
30 | 40 | | then { |
---|
31 | | - | let m = i |
---|
32 | | - | m |
---|
| 41 | + | let i = h |
---|
| 42 | + | i |
---|
33 | 43 | | } |
---|
34 | 44 | | else { |
---|
35 | | - | let k = i |
---|
| 45 | + | let n = h |
---|
36 | 46 | | 0 |
---|
37 | 47 | | } |
---|
38 | 48 | | } |
---|
39 | | - | if (if (if (f) |
---|
40 | | - | then g |
---|
| 49 | + | if (if (if (j) |
---|
| 50 | + | then k |
---|
41 | 51 | | else false) |
---|
42 | | - | then if (h) |
---|
| 52 | + | then if (l) |
---|
43 | 53 | | then true |
---|
44 | | - | else (height >= l) |
---|
| 54 | + | else (height >= o) |
---|
45 | 55 | | else false) |
---|
46 | 56 | | then WriteSet([DataEntry(c, b.caller.bytes), DataEntry(e, d)]) |
---|
47 | 57 | | else throw("Lock cant be locked") |
---|
48 | 58 | | } |
---|
49 | 59 | | |
---|
50 | 60 | | |
---|