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:
OldNewDifferences
66 @Callable(b)
77 func getLock (c,d) = {
88 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))
1020 then throw("Supplied until value is too low")
1121 else true
12- let g = if ((d > (height + 10)))
22+ let k = if ((d > (g + 600)))
1323 then throw("Supplied until value is too high")
1424 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"))
1828 then {
19- let j = i
20- (j == b.caller.bytes)
29+ let m = h
30+ (m == b.caller.bytes)
2131 }
2232 else {
23- let k = i
33+ let n = h
2434 true
2535 }
2636 }
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"))
3040 then {
31- let m = i
32- m
41+ let i = h
42+ i
3343 }
3444 else {
35- let k = i
45+ let n = h
3646 0
3747 }
3848 }
39- if (if (if (f)
40- then g
49+ if (if (if (j)
50+ then k
4151 else false)
42- then if (h)
52+ then if (l)
4353 then true
44- else (height >= l)
54+ else (height >= o)
4555 else false)
4656 then WriteSet([DataEntry(c, b.caller.bytes), DataEntry(e, d)])
4757 else throw("Lock cant be locked")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = ":until"
55
66 @Callable(b)
77 func getLock (c,d) = {
88 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))
1020 then throw("Supplied until value is too low")
1121 else true
12- let g = if ((d > (height + 10)))
22+ let k = if ((d > (g + 600)))
1323 then throw("Supplied until value is too high")
1424 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"))
1828 then {
19- let j = i
20- (j == b.caller.bytes)
29+ let m = h
30+ (m == b.caller.bytes)
2131 }
2232 else {
23- let k = i
33+ let n = h
2434 true
2535 }
2636 }
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"))
3040 then {
31- let m = i
32- m
41+ let i = h
42+ i
3343 }
3444 else {
35- let k = i
45+ let n = h
3646 0
3747 }
3848 }
39- if (if (if (f)
40- then g
49+ if (if (if (j)
50+ then k
4151 else false)
42- then if (h)
52+ then if (l)
4353 then true
44- else (height >= l)
54+ else (height >= o)
4555 else false)
4656 then WriteSet([DataEntry(c, b.caller.bytes), DataEntry(e, d)])
4757 else throw("Lock cant be locked")
4858 }
4959
5060

github/deemru/w8io/026f985 
26.87 ms