tx · ujwXPaje2sLDqU1KunEC6xffCtugYzJJzgwMTkhmjqb
3N428oqzMfFCLgCn8mH4fHqepsPqCWK33tU: -0.01400000 Waves
2021.12.28 05:25 [1853486] smart account 3N428oqzMfFCLgCn8mH4fHqepsPqCWK33tU > SELF 0.00000000 Waves
{
"type": 13,
"id": "ujwXPaje2sLDqU1KunEC6xffCtugYzJJzgwMTkhmjqb",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1640658300093,
"version": 2,
"chainId": 84,
"sender": "3N428oqzMfFCLgCn8mH4fHqepsPqCWK33tU",
"senderPublicKey": "7dMYvyGEDJiErLViTHV8Bkg46pS7ZYZFZLnfXPrRg2QJ",
"proofs": [
"2EUTup3q783RbJ4fDZxpdLhW9fzwzrDAQfQQcQfUzZKJCGMRodC2U9NwZeE2b9fGn7KZuNBLxdCr3Jzf3aqWUuqP"
],
"script": "base64:AAIFAAAAAAAAAAYIAhIAEgAAAAAAAAAAAgAAAAFpAQAAAAh0dXJuT24xNAAAAAAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAABWxlZDE0AAAAAAAAAAABBQAAAANuaWwAAAABaQEAAAAJdHVybk9mZjE0AAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAFbGVkMTQAAAAAAAAAAAAFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5cxHlzA==",
"height": 1853486,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 84K27py4z4oVpynVUoygEpiLNdyEbAnMqNz1XkpkRswB
Next: FBdZixKpzznAAT5A35hFiSWV1AZYMFKLdnrCeb8FmSja
Diff:
Old | New | | Differences |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | | - | func turnOn14 () = { |
---|
8 | | - | let b = { |
---|
9 | | - | let c = getInteger(this, "wait14") |
---|
10 | | - | if ($isInstanceOf(c, "Int")) |
---|
11 | | - | then { |
---|
12 | | - | let d = c |
---|
13 | | - | d |
---|
14 | | - | } |
---|
15 | | - | else 0 |
---|
16 | | - | } |
---|
17 | | - | let e = (lastBlock.height + 100) |
---|
18 | | - | if ((b > lastBlock.height)) |
---|
19 | | - | then throw((("Wait block " + toString(b)) + " to turn On")) |
---|
20 | | - | else [IntegerEntry("wait14", e), IntegerEntry("led14", 1)] |
---|
21 | | - | } |
---|
| 7 | + | func turnOn14 () = [IntegerEntry("led14", 1)] |
---|
22 | 8 | | |
---|
23 | 9 | | |
---|
24 | 10 | | |
---|
25 | 11 | | @Callable(a) |
---|
26 | | - | func turnOff14 () = { |
---|
27 | | - | let b = { |
---|
28 | | - | let c = getInteger(this, "wait14") |
---|
29 | | - | if ($isInstanceOf(c, "Int")) |
---|
30 | | - | then { |
---|
31 | | - | let d = c |
---|
32 | | - | d |
---|
33 | | - | } |
---|
34 | | - | else 0 |
---|
35 | | - | } |
---|
36 | | - | let e = (lastBlock.height + 100) |
---|
37 | | - | if ((b > lastBlock.height)) |
---|
38 | | - | then throw((("Wait block " + toString(b)) + " to turn On")) |
---|
39 | | - | else [IntegerEntry("wait14", e), IntegerEntry("led14", 0)] |
---|
40 | | - | } |
---|
| 12 | + | func turnOff14 () = [IntegerEntry("led14", 0)] |
---|
41 | 13 | | |
---|
42 | 14 | | |
---|
43 | | - | @Verifier(f) |
---|
44 | | - | func g () = sigVerify(f.bodyBytes, f.proofs[0], f.senderPublicKey) |
---|
| 15 | + | @Verifier(b) |
---|
| 16 | + | func c () = sigVerify(b.bodyBytes, b.proofs[0], b.senderPublicKey) |
---|
45 | 17 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | | - | func turnOn14 () = { |
---|
8 | | - | let b = { |
---|
9 | | - | let c = getInteger(this, "wait14") |
---|
10 | | - | if ($isInstanceOf(c, "Int")) |
---|
11 | | - | then { |
---|
12 | | - | let d = c |
---|
13 | | - | d |
---|
14 | | - | } |
---|
15 | | - | else 0 |
---|
16 | | - | } |
---|
17 | | - | let e = (lastBlock.height + 100) |
---|
18 | | - | if ((b > lastBlock.height)) |
---|
19 | | - | then throw((("Wait block " + toString(b)) + " to turn On")) |
---|
20 | | - | else [IntegerEntry("wait14", e), IntegerEntry("led14", 1)] |
---|
21 | | - | } |
---|
| 7 | + | func turnOn14 () = [IntegerEntry("led14", 1)] |
---|
22 | 8 | | |
---|
23 | 9 | | |
---|
24 | 10 | | |
---|
25 | 11 | | @Callable(a) |
---|
26 | | - | func turnOff14 () = { |
---|
27 | | - | let b = { |
---|
28 | | - | let c = getInteger(this, "wait14") |
---|
29 | | - | if ($isInstanceOf(c, "Int")) |
---|
30 | | - | then { |
---|
31 | | - | let d = c |
---|
32 | | - | d |
---|
33 | | - | } |
---|
34 | | - | else 0 |
---|
35 | | - | } |
---|
36 | | - | let e = (lastBlock.height + 100) |
---|
37 | | - | if ((b > lastBlock.height)) |
---|
38 | | - | then throw((("Wait block " + toString(b)) + " to turn On")) |
---|
39 | | - | else [IntegerEntry("wait14", e), IntegerEntry("led14", 0)] |
---|
40 | | - | } |
---|
| 12 | + | func turnOff14 () = [IntegerEntry("led14", 0)] |
---|
41 | 13 | | |
---|
42 | 14 | | |
---|
43 | | - | @Verifier(f) |
---|
44 | | - | func g () = sigVerify(f.bodyBytes, f.proofs[0], f.senderPublicKey) |
---|
| 15 | + | @Verifier(b) |
---|
| 16 | + | func c () = sigVerify(b.bodyBytes, b.proofs[0], b.senderPublicKey) |
---|
45 | 17 | | |
---|