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